Spiral gives your agent every tool with one account. Browse the tools →

Codex · LLM

How to Use Claude Haiku Latest in Codex

Use Claude Haiku Latest for quick classification, extraction, summaries, and focused coding tasks. Anthropic currently lists Claude Haiku 5.5, which expands context and output limits compared with Claude Haiku 4.5.

Prompts to try with Claude Haiku Latest in Codex

Copy an example into Codex, or ask in your own words.

Use Claude Haiku Latest to investigate the failing test in this project. Make the smallest fix that addresses its cause, rerun the relevant tests, and report the commands and results.

Claude Haiku LatestCodex
Try asking
  • Use Claude Haiku Latest to inspect this project's request validation code and add coverage for missing and empty values. Follow the existing test style and run the affected tests.

  • Use Claude Haiku Latest to draft a read-only SQL query from this project's schema that counts active customers by signup month. Explain joins and assumptions, and do not execute the query.

  • Use Claude Haiku Latest to summarize the current diff in five bullets: behavior changed, affected callers, tests run, unresolved risks, and review questions. Cite relevant file paths.

  • Use Claude Haiku Latest to extract error codes and their meanings from this project's source into a JSON array. Include the source path for each entry and flag conflicting definitions.

How to set up Claude Haiku Latest in Codex

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

Use Spiral's MCP server

  1. Add the hosted server
    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.

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Claude Haiku Latest

    One request; the result comes back by polling or a webhook.

    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-haiku-latest",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

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

Claude Haiku Latest providers and prices

Spiral runs Claude Haiku Latest through Anthropic. Open a card for today's price, with every fee included.

AnthropicLLM
Claude Haiku Latest
~anthropic/claude-haiku-latest

Settings you can ask for

Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Max tokens1 to 128000

The most output tokens to generate. On a reasoning model the reasoning tokens count toward it: a cap too low for the effort can end with no answer (finish_reason length).

Reasoning effortlow, medium, high, xhigh, or maxmedium

How much the model reasons.

Parallel tool callson or off

Every API field of Claude Haiku Latest is on its tool page: open its card above.

What can you do with Claude Haiku Latest in Codex?

Claude Haiku can turn a focused bug report into a code change or draft a query from your project's schema. Give it clear acceptance criteria and require a check that exercises the result.

Support ticket routing

Classify incoming tickets as billing, access, bug, or feature request. Ask for a short supporting excerpt and send ambiguous cases to review.

Extracting details from messages

Turn customer messages into records containing order numbers, reported problems, and requested actions. Require null for details the message does not supply.

Daily activity summaries

Condense supplied updates into decisions, blockers, and next actions. Keep the original item identifiers beside each point for checking.

Customer support drafts

Draft short replies using supplied policy text and conversation history. Ask for a review flag when the policy does not answer the customer's question.

Database query drafts

Write read-only SQL from a supplied schema and a plain-English question. Require an explanation of joins and assumptions before reviewing the query.

Focused code fixes

Assign a reproducible bug or a small refactor with clear acceptance criteria. Require a check that exercises the changed behavior before accepting the result.

Multilingual support content

Translate help text or draft replies in a specified language. Supply a glossary and ask the model to preserve product names and technical terms.

Conversation handoff notes

Summarize a supplied conversation into the customer's goal, established facts, unresolved questions, and next action. Preserve exact identifiers needed by the next person.

Questions about Claude Haiku Latest in Codex

Can Codex use Claude Haiku Latest?

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

How much does Claude Haiku Latest cost in Codex?

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 from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

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

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

How long does it take to set up Claude Haiku Latest in Codex?

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

Does Codex wait while Claude Haiku Latest runs?

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

What is Claude Haiku good at?

Claude Haiku is useful for repeated, clearly defined tasks such as classifying requests, extracting details, drafting summaries, and answering support questions. Focused coding tasks are another practical use.

How much text can Claude Haiku handle?

Anthropic currently lists Claude Haiku 5.5 with a 1 million token context window and up to 128,000 output tokens. Claude Haiku 4.5 has a 200,000 token context window and a 64,000 token output limit, so keep limits tied to the named release.

Which reasoning effort should I use?

For Claude Haiku 5.5, start with medium effort for most tasks, including coding. Try high effort for longer assignments, knowledge work, or tasks where following every instruction matters.

What should I watch for when using Claude Haiku for code?

Claude Haiku 5.5 sometimes reports a change complete without running a check at low or medium effort. Explicitly ask it to run a test, build, or type check that exercises the change and report the result.

Can Claude Haiku work in languages besides English?

Yes. Anthropic lists multilingual capabilities for its current models, including Claude Haiku 5.5; specify the target language, audience, and terms that must stay unchanged.

Get started

Start using Claude Haiku Latest in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options