LatentCodeReference

Environment variables

Variables that change how LatentCode behaves for one process or one shell. Most have a config equivalent; use these for CI, scripts and quick experiments.

Switches are on when set to 1 or true.

Bash
LATENTCODE_DISABLE_AUTOCOMPACT=1 LATENTCODE_PURE=1 latentcode run "…"

Configuration

VariableEffect
LATENTCODE_CONFIGPath to an extra config file, applied after your global config and before project config.
LATENTCODE_TUI_CONFIGPath to an extra tui.json.
LATENTCODE_DISABLE_PROJECT_CONFIGIgnore project config: latentcode.json, .latentcode folders, project tui.json and project rule files.
LATENTCODE_PERMISSIONPermission rules as JSON, merged over the permission config. See Permissions.
XDG_CONFIG_HOME, XDG_DATA_HOME, XDG_CACHE_HOME, XDG_STATE_HOMEMove LatentCode's config, data, cache and state directories. See Files LatentCode keeps.

Behavior

VariableEffect
LATENTCODE_PUREDon't load external plugins. Same as --pure.
LATENTCODE_DISABLE_AUTOCOMPACTDon't summarize the conversation automatically.
LATENTCODE_OS_SANDBOXSet to false to run shell commands without the operating-system sandbox. On by default on macOS and Linux.
LATENTCODE_FUSIONTurn on Fusion. Same as --fusion.
LATENTCODE_SIDEKICK_MODELFusion sidekick model, as provider/model.
LATENTCODE_DISABLE_AUTOUPDATEDon't check for updates.
LATENTCODE_GIT_BASH_PATHWindows: path to Git Bash, used to run shell commands.

Rules and skills from other tools

VariableEffect
LATENTCODE_DISABLE_CLAUDE_CODEIgnore CLAUDE.md files and .claude/skills.
LATENTCODE_DISABLE_CLAUDE_CODE_PROMPTIgnore CLAUDE.md files only.
LATENTCODE_DISABLE_CLAUDE_CODE_SKILLSIgnore .claude/skills only.
LATENTCODE_DISABLE_EXTERNAL_SKILLSIgnore .claude/skills and .agents/skills.

Terminal

VariableEffect
LATENTCODE_DISABLE_MOUSEDon't capture the mouse, so your terminal's own selection works.
LATENTCODE_DISABLE_TERMINAL_TITLEDon't change the terminal window title.
VISUAL, EDITOREditor for /editor and /export.

Server

VariableEffect
LATENTCODE_SERVER_PASSWORDPassword that serve requires (HTTP basic auth), and that attach and run --attach send.
LATENTCODE_SERVER_USERNAMEUsername for the same. Default latentcode.

Tools and language servers

VariableEffect
LATENTCODE_DISABLE_LSP_DOWNLOADDon't download language servers automatically.