Skip to main content

Environment variables

All environment variables recognized by landbase-cli are listed here. Variables are grouped by domain.

Runtime API

These variables control how the CLI connects to the Landbase API.
VariableDescription
LANDBASE_API_KEYAPI key for non-interactive authentication. Prefix: lbk_. Takes precedence over the key stored in ~/.landbase/config.json.
LANDBASE_API_BASE_URLOverride the search API base URL. Must be a *.landbase.com, localhost, or 127.0.0.1 URL. Requires LANDBASE_ALLOW_CUSTOM_API_URL=1 for other hosts.
LANDBASE_API_OAUTH_URLOverride the OAuth base URL.
LANDBASE_PLATFORM_API_URLOverride the platform gateway URL (default: https://api.landbase.com). Setting this opts into platform mode.
LANDBASE_PLATFORM_WEB_URLOverride the platform web URL (default: https://platform.landbase.com).
LANDBASE_LEGACY_MODESet to 1 to force legacy mode (direct AgentOS, API key auth) instead of platform mode.
LANDBASE_ALLOW_CUSTOM_API_URLSet to 1 to bypass the API URL allowlist. Development use only.

Configuration

These variables control CLI behavior and config file locations.
VariableDescription
LANDBASE_CONFIG_DIROverride the config directory (default: ~/.landbase).
LANDBASE_NO_UPDATE_CHECKSet to 1 to disable the daily version-available check. Also disabled when CI=1.
LANDBASE_NO_TELEMETRYSet to 1 to disable anonymous usage telemetry.

Installer only

These variables are used by install.sh and install.ps1 only — they have no effect at runtime.
VariableDescription
LANDBASE_INSTALL_URLOverride the binary download base URL. Must be an allowed URL or LANDBASE_ALLOW_CUSTOM_URL=1 must be set.
LANDBASE_INSTALL_DIROverride the installation directory.
LANDBASE_INSTALL_SKIP_AUTHSet to 1 to skip the post-install browser login prompt.
LANDBASE_INSTALL_SKIP_PATHSet to 1 to skip PATH configuration during install.
LANDBASE_ALLOW_CUSTOM_URLSet to 1 to bypass the installer URL allowlist. Development use only.
LANDBASE_VERSION(PowerShell installer) Pin a specific version to install instead of latest.

External agent detection

These variables are set by external tools and detected by landbase-cli for telemetry.
VariableSet byPurpose
CLAUDE_CODE_SESSION_IDClaude CodeDetected to associate CLI runs with a Claude Code session
CODEX_THREAD_IDCodex CLIDetected to associate CLI runs with a Codex thread
CICI systemsWhen set to 1, disables the update-available check