Skip to content
LoopCodeDocs

Reference

Environment variables

The environment variables LoopCode reads — for CI sign-in, where data is kept, updates, the browser, language servers, installers and the terminal screen.

Account and data

VariableEffect
LOOPCODE_TOKENAn access token to sign in with where nobody can sign in, such as CI
LOOPCODE_HOMELoopCode's home folder (default ~/.loopcode): settings, memory, skills, agents, plugins, logs and learned notes
LOOPCODE_STATEWhere the CLI keeps its conversations and sign-in (default ~/.loopcode/cli). --state overrides it

Updates

VariableEffect
LOOPCODE_NO_AUTOUPDATE=1Turn off the CLI's background updates. loopcode update still works

Browser

VariableEffect
LOOPCODE_BROWSER_PATHThe Chrome or Chromium the CLI should drive
LOOPCODE_BROWSERheadless or visible. By default the browser is visible, and headless in CI or on Linux without a display

Tools

VariableEffect
LOOPCODE_RG_PATHThe ripgrep binary to search with
LOOPCODE_LSP_DOWNLOAD=0Don't download language servers; use only those installed
LOOPCODE_IMAGE_PICKERA command that prints an image path, used by /attach (for example an fzf pipeline)

Hooks

Set for every hook command:

VariableValue
LOOPCODE_PROJECT_DIRThe project folder
LOOPCODE_HOOK_EVENTThe event, such as PreToolUse

Commands the agent runs in its terminals see TERM_PROGRAM=LoopCode and LOOPCODE_TERMINAL=1, so your scripts can tell.

The terminal screen

VariableEffect
LOOPCODE_NO_ANIMATION=1No animated banner at start
LOOPCODE_TUI_DISABLE_KEYBOARD_ENHANCEMENT=1Don't use the enhanced keyboard protocol, if keys misbehave in your terminal

Installers

For the CLI installers (cli.sh, cli.ps1):

VariableEffect
LOOPCODE_BIN_DIRWhere to put the loopcode command (default ~/.local/bin)
LOOPCODE_NO_MODIFY_PATH=1Don't add it to your shell profile or PATH
LOOPCODE_NO_LOGIN=1Don't start sign-in at the end
LOOPCODE_NODE=bundledUse LoopCode's own Node.js even when yours is new enough
LOOPCODE_NODE_MIRRORDownload Node.js from a mirror of https://nodejs.org/dist
LOOPCODE_UNINSTALL=1Windows: uninstall instead (macOS and Linux: sh -s -- --uninstall)

For the desktop installers (mac.sh, and loopcode app install):

VariableEffect
LOOPCODE_APP_DIRmacOS: install there instead of /Applications
LOOPCODE_NO_OPEN=1Don't open LoopCode afterwards