Skip to main content

Configuring AI providers

Claude Octopus orchestrates up to three AI providers: Codex (OpenAI), Gemini (Google), and Claude (Anthropic). This guide covers authentication, cost awareness, and provider selection.

Provider roles

Each provider has a distinct role in multi-AI workflows:

Codex (OpenAI)

🔴 Implementation depth
  • Code patterns and technical analysis
  • Architecture decisions
  • Framework-specific guidance
  • Debugging assistance

Gemini (Google)

🟡 Ecosystem breadth
  • Alternatives and market trends
  • Security review perspectives
  • Research synthesis
  • Community insights

Claude (Anthropic)

🔵 Orchestration
  • Quality gates and validation
  • Consensus building
  • Final synthesis
  • Strategic guidance
Providers run in parallel for research, sequentially for problem scoping, and adversarially for review.

Provider authentication

Claude Octopus supports two authentication methods: OAuth (recommended) and API keys. OAuth uses your existing AI subscriptions—no per-token billing.
Authentication:
What you need:
  • Active ChatGPT subscription (Plus, Team, or Enterprise)
  • Codex CLI installed
Cost:
  • Included in ChatGPT subscription
  • No additional per-token charges
OAuth credentials stored:
Installation:

API keys

API keys use per-token billing—you pay for each API call.
Set environment variable:
Get API key:
  1. Visit platform.openai.com/api-keys
  2. Create new secret key
  3. Add to environment variables
Cost (per-token billing):
  • GPT-5.3-Codex: 1.75/1.75/14 per MTok input/output
  • Estimated: ~$0.02-0.10 per query
Add to shell profile:
OAuth vs API keys: OAuth users pay nothing beyond existing subscriptions. API key users pay per token. If you have ChatGPT Plus or Google AI subscriptions, use OAuth.

What works with just Claude

Claude Octopus works with zero external providers. You get every feature on day one: Single-provider features:
  • ✅ All 33 personas
  • ✅ Structured workflows (discover, define, develop, deliver)
  • ✅ Smart routing (/octo command)
  • ✅ Context detection
  • ✅ Every skill
  • ✅ Quality gates
  • ✅ Command composition
Multi-AI features activate when external providers are configured:
  • Parallel research (Codex + Gemini + Claude)
  • Adversarial debate (three-way)
  • Cross-model review (consensus building)
  • Provider-specific strengths (implementation depth + ecosystem breadth)

Running without external providers

Output:
Workflows adapt automatically:
  • Research phase uses Claude only (no parallel multi-AI research)
  • Consensus building uses Claude reasoning (no cross-model debate)
  • Review uses Claude quality gates (no adversarial cross-checking)

Adding Codex and Gemini

Add external providers to unlock multi-AI orchestration.
1

Install CLIs

Install Codex and/or Gemini CLIs:
2

Authenticate

Choose OAuth (recommended) or API keys:OAuth:
API keys:
3

Verify setup

Run setup to verify providers:
Expected output:

Cost awareness and provider selection

Claude Octopus provides full cost transparency with visual indicators and smart routing.

Visual indicators

When multi-AI workflows run, you’ll see exactly which providers are active:
Indicator reference:
Visual indicators appear before workflows start. If you see external provider indicators (🔴 🟡), those will hit your API keys or subscriptions.

Cost comparison

Models:
  • GPT-5.3-Codex: 1.75/1.75/14 per MTok input/output
  • Spark: 15x faster than standard
  • Mini: ~0.30/0.30/1.25 per MTok
Estimated cost per query:
  • Simple: ~$0.01-0.02
  • Complex: ~$0.05-0.10
  • With context: ~$0.10-0.15
Best for:
  • Technical implementation analysis
  • Code generation
  • Framework-specific guidance
Models:
  • Gemini Pro: Standard model
  • Flash: Faster, cheaper for simple queries
Estimated cost per query:
  • Simple: ~$0.01
  • Complex: ~$0.02-0.03
Best for:
  • Ecosystem research
  • Market trends
  • Alternative approaches
Models:
  • Sonnet 4.6: Included with Claude Code subscription
  • Opus 4.6: 5/5/25 per MTok input/output
  • Opus 4.6 Fast: 30/30/150 per MTok (6x cost, lower latency)
Cost:
  • Sonnet: Included (no additional cost)
  • Opus: Extra-usage billing
  • Fast Opus: 6x more expensive (use sparingly)
Best for:
  • Orchestration and synthesis
  • Quality gates
  • Consensus building

Smart cost routing

Claude Octopus routes to the cheapest provider that can handle the job. Routing logic:
  1. Simple tasks → Claude Sonnet (free with subscription)
  2. Technical implementation → Codex if available, else Claude Opus
  3. Ecosystem research → Gemini if available, else Claude Sonnet
  4. Complex reasoning → Claude Opus or Codex depending on task
  5. Interactive queries → Fast mode only when user is actively waiting
Override routing:

Fast Opus mode (Claude Code v2.1.36+)

Fast Opus is 6x more expensive than standard Opus (30/30/150 per MTok vs 5/5/25). It provides lower latency but identical quality.
When fast mode is used:
  • Interactive single-shot Opus queries where user is actively waiting
  • Never in autonomous/background mode (no human waiting = no latency benefit)
Default behavior:
  • Standard mode for all multi-phase workflows
  • Fast mode only for interactive queries
Override:

Cost estimation

Typical workflow costs:
OAuth users with ChatGPT Plus and Google AI subscriptions pay $0 beyond their subscriptions for Codex and Gemini queries.

Provider configuration reference

Environment variables

Provider detection

Check which providers are available:
Output:

Next steps

Using commands

Learn command structure, the smart router, and the top 8 commands

Working with workflows

Understand workflow progression, quality gates, and autonomy modes

Configuration

Environment variables, settings, and custom hooks

Visual indicators

Deep dive into cost transparency and provider status