Answer: You can configure Cline CLI with environment variables including CLINE_DIR, CLINE_DATA_DIR, CLINE_HUB_PORT, CLINE_HUB_ADDRESS, CLINE_SESSION_BACKEND_MODE, CLINE_SANDBOX_DATA_DIR, CLINE_SANDBOX, CLINE_HOOKS_DIR, CLINE_LOG_PATH, CLINE_BUILD_ENV, and CLINE_DEBUG_PORT_BASE. Status: Confirmed Entry: tool/cline/settings/environment-variables Revision: 1 Digest: sha256:93b4b9b0bac13ae8 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:06:20Z Last changed: 2026-11-13T03:06:20Z Last verified: 2026-11-20T12:26:53Z Next check: 2026-11-21T12:26:53Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of CLINE_DIR | CLINE_DIR | [1] | 2026-11-20 CLINE_DATA_DIR | CLINE_DATA_DIR | [1] | 2026-11-20 CLINE_HUB_PORT | CLINE_HUB_PORT | [1] | 2026-11-20 CLINE_HUB_ADDRESS | CLINE_HUB_ADDRESS | [1] | 2026-11-20 CLINE_SESSION_BACKEND_MODE | CLINE_SESSION_BACKEND_MODE | [1] | 2026-11-20 CLINE_SANDBOX_DATA_DIR | CLINE_SANDBOX_DATA_DIR | [1] | 2026-11-20 CLINE_SANDBOX | CLINE_SANDBOX | [1] | 2026-11-20 CLINE_HOOKS_DIR | CLINE_HOOKS_DIR | [1] | 2026-11-20 Sources: [1] Cline. "CLI Reference". https://docs.cline.bot/cli/cli-reference.md Role: primary. Accessed: 2026-11-20T12:26:53Z Quote: "| `CLINE_DIR` | Custom configuration directory (replaces `~/.cline/`), like `--config` |" (Supports: CLINE_DIR) Quote: "| `CLINE_DATA_DIR` | Custom data directory (replaces `~/.cline/data/`) |" (Supports: CLINE_DATA_DIR) Quote: "| `CLINE_HUB_PORT` | Port of the local hub (default: `25463`) |" (Supports: CLINE_HUB_PORT) Quote: "| `CLINE_HUB_ADDRESS` | Hub address for `cline schedule` commands, like their `--address` option |" (Supports: CLINE_HUB_ADDRESS) Quote: "| `CLINE_SESSION_BACKEND_MODE` | Force backend mode (`local`, `hub`, `remote`, `auto`) |" (Supports: CLINE_SESSION_BACKEND_MODE) Quote: "| `CLINE_SANDBOX_DATA_DIR` | Sandbox session storage directory |" (Supports: CLINE_SANDBOX_DATA_DIR) Quote: "| `CLINE_SANDBOX` | Enable sandbox mode |" (Supports: CLINE_SANDBOX) Quote: "| `CLINE_HOOKS_DIR` | Additional hooks directory |" (Supports: CLINE_HOOKS_DIR) Published: 2026-11-19T20:12:02Z Snapshot SHA-256: 10abb849e6ec1d2bf536c43fea65bd695b7ffd5b22f94f99b394ce56a6c4f509 (captured 2026-11-13T03:06:20Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:06:20Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:26:53Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:26:53Z Last attempt: 2026-11-20T12:26:53Z Notes and limitations: Extracted automatically from a single official source (section "Environment Variables"). Related: https://latestn.com/tool/cline/settings/global-config-location Where does Cline store its global configuration and settings files? https://latestn.com/tool/cline/settings/global-vs-project-config What is the difference between Cline global configuration and project configuration? https://latestn.com/tool/cline/settings/install-pretooluse-hook-vscode Where do I install a PreToolUse hook in the Cline VS Code extension? https://latestn.com/tool/cline/settings/enable-compact-prompt-local Should I enable Use Compact Prompt in Cline when running local models? https://latestn.com/tool/cline/settings/enable-disable-checkpoints How do I enable or disable checkpoints in Cline? https://latestn.com/tool/cline/settings/enable-opentelemetry-events How do I enable OpenTelemetry events in Cline? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:06:20Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cline/settings/environment-variables/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cline/settings/environment-variables POST: https://latestn.com/dispute/tool/cline/settings/environment-variables with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cline/settings/environment-variables?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What environment variables can I use to configure Cline CLI? Revision 1, last verified 2026-11-20T12:26:53Z. https://latestn.com/tool/cline/settings/environment-variables (accessed 2026-11-21T09:54:43Z). @misc{LatestN_tool_cline_settings_environment_variables_r1, title = {What environment variables can I use to configure Cline CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cline/settings/environment-variables}}, note = {Revision 1; digest sha256:93b4b9b0bac13ae8; last verified 2026-11-20T12:26:53Z; accessed 2026-11-21T09:54:43Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cline/settings/environment-variables