Complete Guide to Continue Dev Environment Variables: Configuration, API Keys, and CLI Settings

Continue Dev supports over 30 environment variables that control API authentication, CLI output limits, network proxies, telemetry, and feature flags without modifying config files.

The continuedev/continue repository uses environment variables as the primary mechanism for runtime configuration across its CLI, VS Code extension, and core SDK. Whether you are providing LLM provider credentials in CI, limiting output lengths for automation, or routing traffic through corporate proxies, these variables allow you to customize behavior without touching the codebase.

LLM Provider API Keys

Continue reads standard API keys for major model providers directly from the environment. These are typically checked in the OpenAI adapters test suite and core SDK initialization.

Set these in your shell or CI environment before running Continue:

export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."
export GEMINI_API_KEY="..."

Continue-Specific Configuration

The SDK and CLI expose dedicated variables for Continue's proxy service and global directory management.

Example for CI isolation:

export CONTINUE_GLOBAL_DIR="/tmp/continue-ci"
export CONTINUE_API_KEY="proxy-key-123"

CLI Output and Execution Limits

When running the Continue CLI in automated environments, you can enforce strict limits on tool outputs to prevent token overflow or excessive logging.

Usage in automation scripts:

CONTINUE_CLI_FETCH_MAX_OUTPUT_LENGTH=5000 \
CONTINUE_CLI_BASH_MAX_OUTPUT_LINES=100 \
CONTINUE_CLI_SEARCH_CODE_MAX_RESULTS=10 \
continue run analysis.ts

Network Proxy and Certificate Configuration

For corporate environments or debugging, Continue respects standard proxy variables and custom certificate bundles.

Debug network issues:

export VERBOSE_FETCH=1
export HTTPS_PROXY="http://proxy.company.com:8080"
export NODE_EXTRA_CA_CERTS="/etc/ssl/certs/ca-bundle.pem"
continue chat "Debug this API call"

Telemetry and Privacy Controls

Continue provides granular control over data collection and user identification.

Disable tracking completely:

CONTINUE_CLI_ENABLE_TELEMETRY=0 \
CONTINUE_ALLOW_ANONYMOUS_TELEMETRY=0 \
CONTINUE_METRICS_ENABLED=0 \
continue chat "Hello"

Testing and Development Flags

Internal and testing environments use specific flags to alter behavior.

CI testing configuration:

CONTINUE_CLI_TEST=1 \
CONTINUE_REMOTE=1 \
IGNORE_API_KEY_TESTS=true \
npm test

Feature Flags and Provider Selection

Toggle specific functionality without code changes.

Force Bedrock selection:

export CONTINUE_USE_BEDROCK=1
continue chat "Generate Terraform for AWS"

Summary

  • API Authentication: Set OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, and provider-specific keys to authenticate LLM requests without hardcoding credentials.
  • Output Control: Use CONTINUE_CLI_*_MAX_* variables to limit fetch, bash, file read, and search output lengths in automation.
  • Network Configuration: Configure HTTPS_PROXY, NODE_EXTRA_CA_CERTS, and VERBOSE_FETCH for corporate proxies and debugging.
  • Privacy: Disable telemetry with CONTINUE_CLI_ENABLE_TELEMETRY=0 and CONTINUE_METRICS_ENABLED=0.
  • Testing: Enable CONTINUE_CLI_TEST and CONTINUE_REMOTE for CI environments to suppress interactive prompts.

Frequently Asked Questions

What is the difference between CONTINUE_API_KEY and OPENAI_API_KEY?

OPENAI_API_KEY authenticates directly with OpenAI's API, while CONTINUE_API_KEY is used specifically for the Continue proxy service as implemented in packages/continue-sdk/typescript/tests/continue.test.ts. The proxy key allows you to route requests through Continue's infrastructure rather than calling providers directly.

How do I disable telemetry in the Continue CLI?

Set CONTINUE_CLI_ENABLE_TELEMETRY=0 and CONTINUE_METRICS_ENABLED=0 before running commands. According to extensions/cli/src/telemetry/telemetryService.ts, these variables completely disable metric collection and telemetry transmission. You can also set CONTINUE_ALLOW_ANONYMOUS_TELEMETRY=0 for legacy compatibility.

How do I configure Continue to work behind a corporate proxy?

Export HTTPS_PROXY (or lowercase https_proxy) with your proxy URL, and if needed, NODE_EXTRA_CA_CERTS pointing to your custom CA bundle. The fetch utility in packages/fetch/src/util.ts reads these variables for proxy routing, while packages/fetch/src/certs.ts handles the custom certificates.

What is CONTINUE_GLOBAL_DIR used for?

CONTINUE_GLOBAL_DIR overrides the default ~/.continue directory where the CLI stores configuration, indexes, and session data. This is essential for CI pipelines or ephemeral environments where you want to isolate Continue's state or point it to a pre-configured directory, as demonstrated in extensions/cli/vitest.global-dir-setup.ts.

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →