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
| Variable | Effect |
|---|---|
| LATENTCODE_CONFIG | Path to an extra config file, applied after your global config and before project config. |
| LATENTCODE_TUI_CONFIG | Path to an extra tui.json. |
| LATENTCODE_DISABLE_PROJECT_CONFIG | Ignore project config: latentcode.json, .latentcode folders, project tui.json and project rule files. |
| LATENTCODE_PERMISSION | Permission rules as JSON, merged over the permission config. See Permissions. |
| XDG_CONFIG_HOME, XDG_DATA_HOME, XDG_CACHE_HOME, XDG_STATE_HOME | Move LatentCode's config, data, cache and state directories. See Files LatentCode keeps. |
Behavior
| Variable | Effect |
|---|---|
| LATENTCODE_PURE | Don't load external plugins. Same as --pure. |
| LATENTCODE_DISABLE_AUTOCOMPACT | Don't summarize the conversation automatically. |
| LATENTCODE_OS_SANDBOX | Set to false to run shell commands without the operating-system sandbox. On by default on macOS and Linux. |
| LATENTCODE_FUSION | Turn on Fusion. Same as --fusion. |
| LATENTCODE_SIDEKICK_MODEL | Fusion sidekick model, as provider/model. |
| LATENTCODE_DISABLE_AUTOUPDATE | Don't check for updates. |
| LATENTCODE_GIT_BASH_PATH | Windows: path to Git Bash, used to run shell commands. |
Rules and skills from other tools
| Variable | Effect |
|---|---|
| LATENTCODE_DISABLE_CLAUDE_CODE | Ignore CLAUDE.md files and .claude/skills. |
| LATENTCODE_DISABLE_CLAUDE_CODE_PROMPT | Ignore CLAUDE.md files only. |
| LATENTCODE_DISABLE_CLAUDE_CODE_SKILLS | Ignore .claude/skills only. |
| LATENTCODE_DISABLE_EXTERNAL_SKILLS | Ignore .claude/skills and .agents/skills. |
Terminal
| Variable | Effect |
|---|---|
| LATENTCODE_DISABLE_MOUSE | Don't capture the mouse, so your terminal's own selection works. |
| LATENTCODE_DISABLE_TERMINAL_TITLE | Don't change the terminal window title. |
| VISUAL, EDITOR | Editor for /editor and /export. |
Server
| Variable | Effect |
|---|---|
| LATENTCODE_SERVER_PASSWORD | Password that serve requires (HTTP basic auth), and that attach and run --attach send. |
| LATENTCODE_SERVER_USERNAME | Username for the same. Default latentcode. |
Tools and language servers
| Variable | Effect |
|---|---|
| LATENTCODE_DISABLE_LSP_DOWNLOAD | Don't download language servers automatically. |