Configuration

LLM providers, API keys, environment variables, and runtime settings.

LLM Providers

Context Pilot supports 5 LLM providers. Switch between them at runtime via the Configuration panel (press p).

ProviderModelsEnv Variable
AnthropicClaude Sonnet, Claude HaikuANTHROPIC_API_KEY
Claude CodeClaude Sonnet (Code variant)CLAUDE_CODE_API_KEY
DeepSeekDeepSeek Chat, DeepSeek CoderDEEPSEEK_API_KEY
GrokGrok-2GROK_API_KEY
GroqLlama, Mixtral (fast inference)GROQ_API_KEY
💡 Recommendation Anthropic Claude Sonnet provides the best experience — Context Pilot's tool descriptions and workflows are optimized for Claude's tool use patterns.

API Keys

Set API keys as environment variables. At least one LLM provider key is required.

# Required: at least one LLM provider
export ANTHROPIC_API_KEY=sk-ant-...

# Optional: additional providers
export DEEPSEEK_API_KEY=sk-...
export GROK_API_KEY=xai-...
export GROQ_API_KEY=gsk_...
export CLAUDE_CODE_API_KEY=sk-ant-...

# Optional: web search
export BRAVE_API_KEY=BSA...

# Optional: web scraping
export FIRECRAWL_API_KEY=fc-...

# Optional: GitHub integration
export GITHUB_TOKEN=ghp_...

Environment Variables

You can set environment variables in three ways:

  1. Shell export — export ANTHROPIC_API_KEY=... in your shell profile
  2. .env file — create a .env file in the Context Pilot installation directory
  3. deploy_local.sh — the deploy script auto-exports keys from .env
âš ī¸ Security Never commit API keys to version control. The .env file in the Context Pilot directory is gitignored by default. Each project's .context-pilot/ directory is also gitignored.

Runtime Settings

These settings can be changed while Context Pilot is running, via the Configuration panel or tools:

SettingHow to changeDescription
LLM Providerp key in Config panelSwitch between active providers
Modelm key in Config panelSwitch model within provider
Context ThresholdArrow keys in Config panelSoft limit for context management
Max Output TokensArrow keys in Config panelMax tokens per AI response
Max CostArrow keys in Config panelCost guard rail ($0.50 increments)
Auto-continuations key or spine_configureToggle autonomous mode
Tool enable/disabletool_manageEnable or disable individual tools
Module activate/deactivatemodule_toggleActivate or deactivate modules

Config Files

Context Pilot stores configuration in .context-pilot/ within each project:

.context-pilot/
├── config.json          # Runtime config (provider, model, thresholds)
├── memory.json          # Persistent memories
├── logs.json            # Timestamped logs
├── todos.json           # Todo list
├── scratchpad.json      # Scratchpad cells
├── conversations/       # Conversation history segments
├── agents/              # Custom agents (system prompts)
├── skills/              # Custom skills (knowledge)
├── commands/            # Custom slash commands
├── presets/             # Custom presets
├── callbacks/           # Callback definitions + scripts
└── shared/
    └── typst-templates/ # Reusable Typst templates
â„šī¸ Persistence All state files are automatically loaded on startup and saved on changes. You can safely quit and restart — everything is preserved.