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

opencode · LLMReleased 2026-06-09

How to Use Claude Fable 5 in opencode

Claude Fable 5 suits complex coding projects and document-heavy analysis that require sustained work across many steps. Compared with Claude Opus 4.8, it handles longer autonomous tasks and produces stronger financial and document deliverables.

Prompts to try with Claude Fable 5 in opencode

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

Use Claude Fable 5 to migrate this project's deprecated library calls. Preserve behavior, update affected tests, and report verified results.

Claude Fable 5opencode
Try asking
  • Use Claude Fable 5 with extra-high effort to trace this intermittent failure across the repository and implement the smallest verified fix.

  • Use Claude Fable 5 to review this branch for correctness problems. Cite file locations and give a reproduction for each finding.

  • Use Claude Fable 5 to implement the feature described in the project specification. Check each acceptance criterion before finishing.

  • Use Claude Fable 5 at medium effort to explain this module's behavior for a new maintainer. Base the explanation on the code.

How to set up Claude Fable 5 in opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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 Fable 5

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

Then paste one of the prompts above: opencode finds Claude Fable 5 on Spiral, shows the price and runs it.

Claude Fable 5 providers and prices

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

AnthropicLLM
Claude Fable 5
anthropic/claude-fable-5

Settings you can ask for

Ask opencode 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 Fable 5 is on its tool page: open its card above.

What can you do with Claude Fable 5 in opencode?

Claude Fable 5 can take a complex project from investigation through implementation and verification. Give it the project's constraints and a concrete definition of completion.

Codebase migrations

Have Claude Fable 5 carry a migration through implementation and verification, with explicit compatibility requirements.

Complex bug investigations

Use Claude Fable 5 to investigate a failure across components, propose a fix, and check the result.

Financial decision briefs

Ask Claude Fable 5 to compare supplied financial evidence and identify assumptions that change the recommendation.

Spreadsheet analysis

Have Claude Fable 5 analyze supplied spreadsheet data and explain discrepancies with supporting calculations.

Document synthesis

Use Claude Fable 5 to turn several source documents into a cited brief that identifies conflicting evidence.

Presentation drafts

Ask Claude Fable 5 to turn an analytical brief into slide content with a clear decision and supporting evidence.

Questions about Claude Fable 5 in opencode

Can opencode use Claude Fable 5?

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

How much does Claude Fable 5 cost in opencode?

Up to $0.26715 per run at the default inputs. $13.00 per 1M input tokens, $1.30 per 1M cached input tokens, $16.25 per 1M cache write tokens, $26.00 per 1M 1-hour cache write tokens, $65.00 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Anthropic account to use Claude Fable 5 in opencode?

No. Spiral runs Claude Fable 5 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 Fable 5 in opencode?

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

Does opencode wait while Claude Fable 5 runs?

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

What is Claude Fable 5 good at?

Complex coding projects, financial analysis, and work that combines many documents or steps. Its sustained autonomous work is a documented improvement over Claude Opus 4.8.

How much context and output can Claude Fable 5 handle?

It supports a one-million-token context window and up to 128,000 output tokens. Treat those as ceilings when planning a large analysis or deliverable.

Which reasoning effort should I use?

Use extra-high effort for especially difficult coding or analysis. Try medium or low effort for routine work, then check whether the results meet your requirements.

How should I prompt Claude Fable 5?

Explain who needs the result, what decision it supports, and the exact deliverable. Specify scope, length, and evidence requirements so the task has a clear finish.

Can Claude Fable 5 make factual mistakes?

Yes. Ask it to support conclusions with source quotes, flag missing evidence, and verify claims before presenting the final answer.

Get started

Start using Claude Fable 5 in opencode

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

Paste this into opencode:

Set up opencode

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