Provider Setup¶
Sidekick Agent Hub supports four inference providers. You only need to set up one.
Claude Max (Recommended)¶
Uses your Claude subscription (Pro, Max, or Ultra) via the Claude Code CLI — no extra API cost. The provider is named after the original Max plan, but any Claude plan that includes Claude Code works.
- Install and authenticate Claude Code CLI:
- Follow the prompts to sign in with your Claude account
- Start coding — Sidekick auto-detects Claude Code and uses it for inference
Why Claude Max is recommended
Sidekick's AI features (completions on request, explanations, commit messages, reviews) all send requests. With an API key, per-token costs add up quickly. Through Claude Code, they count against your existing subscription's usage limits instead.
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 Key)
OpenCode¶
Uses your configured OpenCode provider and model.
- Ensure OpenCode is installed and running (
opencodein a terminal) - Ensure
sqlite3is installed and available onPATHif you want Sidekick to monitor OpenCode sessions - Sidekick connects to the local server on port 4096
- Switch provider:
- Settings →
sidekick.inferenceProvider→opencode - Or: status bar → "Switch Inference Provider" → OpenCode
Note
Sidekick resolves model tiers to explicit provider/model IDs and sends them with each request. An explicit provider/model setting overrides OpenCode's default; a bare model ID is not sent, so OpenCode uses its configured default.
Codex CLI¶
Uses your authenticated Codex CLI.
- Install Codex CLI globally:
- Authenticate with
codex login, or provideOPENAI_API_KEY/CODEX_API_KEY. Sidekick recognizesauth.jsonin the resolved Codex home (CODEX_HOMEor~/.codex/), with legacy.credentials.jsonsupport. - Switch provider:
- Settings →
sidekick.inferenceProvider→codex - Or: status bar → "Switch Inference Provider" → Codex CLI
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/($CLAUDE_CONFIG_DIR/projects/when set) - OpenCode — monitors OpenCode's data directory:
Linux
~/.local/share/opencode/, macOS~/Library/Application Support/opencode/, Windows%LOCALAPPDATA%\opencode\(falls back to%APPDATA%) - Codex CLI — monitors
~/.codex/sessions/and~/.codex/archived_sessions/
For OpenCode session monitoring, Sidekick reads opencode.db via sqlite3. If sqlite3 is unavailable, the extension and CLI show an actionable OpenCode-specific notice.