[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Anthropic Claude](https://spiral.ai/integrations/codex/anthropic)

# How to Use Anthropic Claude in Codex

To use Anthropic Claude in Codex, connect Spiral to Codex once, then ask for what you want in plain words. Codex can then reach all 18 Anthropic Claude tools on Spiral, priced per run from one balance.

|  |  |
| --- | --- |
| Tools | 18 |
| Categories | LLM |
| Served by | Anthropic |
| Pricing | Pay per run, no subscription |
| Setup | About 2 minutes, no API key |

## Prompts to try with Anthropic Claude in Codex

- Ask Anthropic Claude through Spiral to review the diff on this branch and list the three riskiest changes. Save the result in ./assets.
- Get a second opinion from Anthropic Claude on this function, then tell me what the call cost.
- Summarize these release notes with Anthropic Claude in five bullet points.
- Ask Anthropic Claude to write unit tests for the file I have open and explain each case.
- Compare Anthropic Claude with my current model on this prompt and tell me which answer is better and what each cost.

## How to set up Anthropic Claude in Codex

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Anthropic Claude**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "anthropic",
    "model": "anthropic/claude-opus-5.5",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Codex finds Anthropic Claude on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/codex

## Anthropic Claude tools and prices

- [Claude Opus 5.5](https://spiral.ai/tools/anthropic/anthropic/claude-opus-5.5) (Anthropic): Up to $0.10686 per run at the default inputs. $5.20 per 1M input tokens, $0.26 per 1M cached input tokens, $6.50 per 1M cache write tokens, $10.40 per 1M 1-hour cache write tokens, $26.00 per 1M output tokens; for a prompt above 200,000 tokens, $10.40 per 1M input tokens, $0.52 per 1M cached input tokens, $13.00 per 1M cache write tokens, $20.80 per 1M 1-hour cache write tokens, $39.00 per 1M output tokens.
- [Claude Sonnet 5.5](https://spiral.ai/tools/anthropic/anthropic/claude-sonnet-5.5) (Anthropic): Up to $0.05343 per run at the default inputs. $2.60 per 1M input tokens, $0.13 per 1M cached input tokens, $3.25 per 1M cache write tokens, $5.20 per 1M 1-hour cache write tokens, $13.00 per 1M output tokens; for a prompt above 200,000 tokens, $5.20 per 1M input tokens, $0.26 per 1M cached input tokens, $6.50 per 1M cache write tokens, $10.40 per 1M 1-hour cache write tokens, $19.50 per 1M output tokens.
- [Claude Haiku 5.5](https://spiral.ai/tools/anthropic/anthropic/claude-haiku-5.5) (Anthropic): Up to $0.002672 per run at the default inputs. $0.13 per 1M input tokens, $0.013 per 1M cached input tokens, $0.1625 per 1M cache write tokens, $0.26 per 1M 1-hour cache write tokens, $0.65 per 1M output tokens.

## What can you do with Anthropic Claude in Codex?

Codex can answer, write and review code with Anthropic Claude right in your repository and save the results where you need them: as files in your project, in a script or in your build. One sign-in covers every tool, so your code stays free of provider SDKs and keys.

### Second opinions

Have another model review a diff or a plan before you commit to it.

### Cheaper bulk work

Send summaries, tagging and rewrites to a smaller model and keep your agent's own model for hard steps.

### Models your agent lacks

Reach open and frontier models your agent's vendor does not offer.

### Code review at scale

Review every file in a pull request with one model and summarize the risks.

### Long documents

Send a long spec or contract to a model with a large context window.

### Structured output

Turn messy notes into JSON your code can read.

## Overview

- [Anthropic Claude](https://spiral.ai/providers/anthropic)
- [All Codex guides](https://spiral.ai/integrations/codex)

## Anthropic Claude in other agents

- [Amp](https://spiral.ai/integrations/amp/anthropic)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/anthropic)
- [Claude](https://spiral.ai/integrations/claude-desktop/anthropic)
- [Claude Code](https://spiral.ai/integrations/claude-code/anthropic)
- [Cline](https://spiral.ai/integrations/cline/anthropic)
- [Cursor](https://spiral.ai/integrations/cursor/anthropic)
- [Devin](https://spiral.ai/integrations/devin/anthropic)
- [dots](https://spiral.ai/integrations/dots/anthropic)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/anthropic)
- [Gemini](https://spiral.ai/integrations/gemini/anthropic)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/anthropic)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/anthropic)
- [goose](https://spiral.ai/integrations/goose/anthropic)
- [Grok](https://spiral.ai/integrations/grok/anthropic)
- [Grok Build](https://spiral.ai/integrations/grok-build/anthropic)
- [Hermes](https://spiral.ai/integrations/hermes/anthropic)
- [Instinct](https://spiral.ai/integrations/instinct/anthropic)
- [Manus](https://spiral.ai/integrations/manus/anthropic)
- [Muse](https://spiral.ai/integrations/muse/anthropic)
- [Muse Code](https://spiral.ai/integrations/muse-code/anthropic)
- [n8n](https://spiral.ai/integrations/n8n/anthropic)
- [Notion](https://spiral.ai/integrations/notion/anthropic)
- [OpenClaw](https://spiral.ai/integrations/openclaw/anthropic)
- [opencode](https://spiral.ai/integrations/opencode/anthropic)
- [Perplexity](https://spiral.ai/integrations/perplexity/anthropic)
- [Raycast](https://spiral.ai/integrations/raycast/anthropic)
- [VS Code](https://spiral.ai/integrations/vscode/anthropic)
- [Windsurf](https://spiral.ai/integrations/windsurf/anthropic)
- [Zapier](https://spiral.ai/integrations/zapier/anthropic)

## More Codex guides

- [Meshy 7.1 Text to 3D](https://spiral.ai/integrations/codex/meshy-7-1-text-to-3d)
- [AssemblyAI](https://spiral.ai/integrations/codex/assemblyai)
- [Meshy 7.1 Multi-Image to 3D](https://spiral.ai/integrations/codex/meshy-7-1-multi-image-to-3d)
- [Deepgram](https://spiral.ai/integrations/codex/deepgram)
- [Meshy 7.1 Image to 3D](https://spiral.ai/integrations/codex/meshy-7-1-image-to-3d)
- [ElevenLabs](https://spiral.ai/integrations/codex/elevenlabs)

## Questions about Anthropic Claude in Codex

**Can Codex use Anthropic Claude?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Anthropic Claude like any built-in tool.

**How much does Anthropic Claude cost in Codex?**

Each tool has its own price, for example Claude Opus 5.5: Up to $0.10686 per run at the default inputs. $5.20 per 1M input tokens, $0.26 per 1M cached input tokens, $6.50 per 1M cache write tokens, $10.40 per 1M 1-hour cache write tokens, $26.00 per 1M output tokens; for a prompt above 200,000 tokens, $10.40 per 1M input tokens, $0.52 per 1M cached input tokens, $13.00 per 1M cache write tokens, $20.80 per 1M 1-hour cache write tokens, $39.00 per 1M output tokens; Claude Sonnet 5.5: Up to $0.05343 per run at the default inputs. $2.60 per 1M input tokens, $0.13 per 1M cached input tokens, $3.25 per 1M cache write tokens, $5.20 per 1M 1-hour cache write tokens, $13.00 per 1M output tokens; for a prompt above 200,000 tokens, $5.20 per 1M input tokens, $0.26 per 1M cached input tokens, $6.50 per 1M cache write tokens, $10.40 per 1M 1-hour cache write tokens, $19.50 per 1M output tokens; Claude Haiku 5.5: Up to $0.002672 per run at the default inputs. $0.13 per 1M input tokens, $0.013 per 1M cached input tokens, $0.1625 per 1M cache write tokens, $0.26 per 1M 1-hour cache write tokens, $0.65 per 1M output tokens. You pay per run from one Spiral balance, and failed runs are free.

**Do I need an Anthropic account to use Anthropic Claude in Codex?**

No. Spiral runs Anthropic Claude on its own Anthropic account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Anthropic Claude in Codex?**

About two minutes: add the hosted server, then sign in.

**Does Codex wait while Anthropic Claude runs?**

Anthropic Claude runs in the background. Codex starts the run, checks on it and gives you the text, json when it's ready.

**Why call Anthropic Claude from Codex?**

For a second opinion, a cheaper model for bulk work, or a model your agent doesn't offer. Your agent calls Anthropic Claude through Spiral and pays only for the tokens used.

**Which Anthropic Claude tools can Codex use?**

Codex can reach all 18 Anthropic Claude tools on Spiral, covering LLM. Popular ones include Claude Opus 5.5, Claude Sonnet 5.5, and Claude Haiku 5.5. Ask for one by name, or describe the task and Codex picks a fitting tool.

**Can Codex compare Anthropic Claude tools?**

Yes. Ask Codex to run the same request on two Anthropic Claude tools and show both results with what each cost. Each run is priced and billed on its own.

**What happens if a Anthropic Claude run fails in Codex?**

It is not charged. Spiral holds the estimated price when the run starts and returns it to your balance if the run fails on Spiral's side or the provider's. Codex gets the error and can retry or try another tool.

**Is there a Anthropic Claude subscription or plan?**

No. Spiral is pay as you go from one prepaid balance, with no plans or minimums, and credits never expire. Auto top-up keeps Codex from stopping when the balance runs low.

