Provider Setup¶
Sidekick Agent Hub supports four inference providers. You only need to set up one.
Claude Max (Recommended)¶
Uses your Claude Max subscription via the Claude Code CLI — no extra API cost.
- Install and authenticate Claude Code CLI:
- Follow the prompts to authenticate with your Claude Max subscription
- Start coding — Sidekick auto-detects Claude Code and uses it for inference
Why Claude Max is recommended
Inline completions fire frequently as you type. With an API key, per-token costs add up quickly. With Max, completions are covered by your existing plan.
Claude API¶
Direct Anthropic API access with per-token billing.
- Run "Sidekick: Set API Key" from the Command Palette (
Ctrl+Shift+P) - Enter your Anthropic API key
- Switch provider in settings:
- Open Settings (
Ctrl+,) → searchsidekick.inferenceProvider→ selectclaude-api - Or: status bar → "Switch Inference Provider" → Claude API
- Open Settings (
OpenCode¶
Uses your configured OpenCode provider and model.
- Ensure OpenCode is installed and running (
opencodein a terminal) - Sidekick connects to the local server on port 4096
- Switch provider:
- Settings →
sidekick.inferenceProvider→opencode - Or: status bar → "Switch Inference Provider" → OpenCode
- Settings →
Note
Model selection is handled by your OpenCode configuration. Tier values (fast/balanced/powerful) are passed as hints, but OpenCode's own model settings take precedence.
Codex CLI¶
Uses the OpenAI API via Codex CLI.
- Install Codex CLI globally:
- Ensure your OpenAI API key is available:
OPENAI_API_KEYorCODEX_API_KEYenvironment variable- Or
~/.codex/.credentials.json
- Switch provider:
- Settings →
sidekick.inferenceProvider→codex - Or: status bar → "Switch Inference Provider" → Codex CLI
- Settings →
Auto-Detection¶
When sidekick.inferenceProvider is set to auto (the default), Sidekick detects the most recently used coding agent based on filesystem timestamps and uses it for inference.
Session Monitoring Providers¶
Session monitoring uses a separate sidekick.sessionProvider setting. It also defaults to auto and supports:
- Claude Code — monitors
~/.claude/projects/ - OpenCode — monitors
~/.local/share/opencode/ - Codex CLI — monitors
~/.codex/sessions/