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

Claude Code · LLM

How to Use Claude Sonnet Latest in Claude Code

Use Claude Sonnet Latest for scoped coding, code review, and document drafts. Anthropic positions Claude Sonnet 5.5 for everyday work and Claude Opus 5.5 for complex, open-ended tasks.

Prompts to try with Claude Sonnet Latest in Claude Code

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

Use Claude Sonnet Latest at medium reasoning effort to investigate the failing tests in this project. Identify the cause, make the smallest relevant fix, run the affected tests, and report the results.

Claude Sonnet LatestClaude Code
Try asking
  • Use Claude Sonnet Latest to review the current diff for correctness bugs. Report only findings with a concrete failure scenario and a code location; leave the files unchanged.

  • Use Claude Sonnet Latest to trace authentication from the request handler to session validation in this project. Cite the relevant files and explain where an expired session is rejected.

  • Use Claude Sonnet Latest at high reasoning effort to investigate duplicate submissions in this project. Trace the request flow, propose a focused fix, and verify that repeated requests cannot create duplicate records.

  • Use Claude Sonnet Latest to draft release notes from this project's completed changes since the last release. Describe user-visible behavior, link each point to its supporting change, and omit unfinished work.

How to set up Claude Sonnet Latest in Claude Code

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

Use Spiral's MCP server

  1. Add the hosted server

    This adds Spiral to the current project. Add --scope user to use it in every project.

    claude mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

Use the Spiral skill

  1. Send Claude Code 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 Sonnet 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-sonnet-latest",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

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

Claude Sonnet Latest providers and prices

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

AnthropicLLM
Claude Sonnet Latest
~anthropic/claude-sonnet-latest

Settings you can ask for

Ask Claude Code 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 maxhigh

How much the model reasons.

Parallel tool callson or off

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

What can you do with Claude Sonnet Latest in Claude Code?

Use Claude Sonnet to turn a defined issue into a focused code change or review. Give the agent relevant project context, an expected outcome, and a check that proves the result.

Fix a reproducible bug

Give Claude Sonnet the failing behavior, expected result, and relevant code. Request a focused patch and a check that exercises the failure.

Review a proposed code change

Ask Claude Sonnet to inspect a diff for correctness problems and missing edge cases. Require each finding to identify the affected code and explain a concrete failure.

Explain an unfamiliar codebase

Have Claude Sonnet trace one request through the relevant modules. Ask for entry points, data transformations, and the code supporting each explanation.

Compare source documents

Ask Claude Sonnet to compare requirements or proposals, quoting the passages behind each difference. Separate explicit commitments from missing information.

Draft support replies

Provide a customer message and approved policy text. Ask Claude Sonnet for a concise draft that answers the question and flags anything the policy does not establish.

Translate product communications

Ask Claude Sonnet to translate release announcements or support replies into a specified language. Supply terminology to preserve and review the result with a fluent speaker.

Write release notes from completed work

Give Claude Sonnet completed change descriptions and ask for user-facing release notes. Require every statement to trace back to a supplied change.

Analyze customer feedback

Ask Claude Sonnet to organize supplied feedback into recurring problems, supporting examples, and unresolved questions. Keep observations separate from proposed explanations.

Questions about Claude Sonnet Latest in Claude Code

Can Claude Code use Claude Sonnet Latest?

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

How much does Claude Sonnet Latest cost in Claude Code?

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

Do I need an Anthropic account to use Claude Sonnet Latest in Claude Code?

No. Spiral runs Claude Sonnet 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 Sonnet Latest in Claude Code?

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

Does Claude Code wait while Claude Sonnet Latest runs?

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

What is Claude Sonnet good at?

Claude Sonnet is useful for everyday development, including feature work, bug fixes, and code review. Document drafting and data analysis are also documented uses for Claude Sonnet 5.5.

Where does Claude Sonnet fall short?

Anthropic finds Claude Opus 5.5 stronger than Claude Sonnet 5.5 on complex, open-ended work requiring sustained judgment. Give Claude Sonnet a defined task and a clear completion condition.

How much text can Claude Sonnet handle?

Anthropic documents a 1 million-token context window and a 128,000-token maximum output for Claude Sonnet 5.5.

Which reasoning effort should I use?

For Claude Sonnet 5.5 coding and multistep tool tasks, start with medium effort when the task is well specified. Move to high for harder or longer work, and compare results on representative tasks.

Can Claude Sonnet work in languages other than English?

Yes. Claude processes and generates text in most world languages using standard Unicode characters, although performance varies by language. Check examples in the languages your work requires.

Get started

Start using Claude Sonnet Latest in Claude Code

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

Paste this into Claude Code:

Set up Claude Code

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