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

opencode · LLMReleased 2026-10-08

How to Use Step 5 Preview in opencode

Step 5 Preview suits codebase changes, research reports, and financial analysis that require several rounds of checking. Its 1M-token context helps it compare large amounts of source material before producing an answer.

Prompts to try with Step 5 Preview in opencode

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

Use Step 5 Preview with high reasoning effort to trace the failing test through this repository. Fix the underlying cause, run the relevant tests, and report the evidence that the fix works.

Step 5 Previewopencode
Try asking
  • Use Step 5 Preview to compare this repository's implementation with its migration guide. List affected files, make the changes in reviewable steps, and check each step with the relevant tests.

  • Use Step 5 Preview to implement the frontend described in this project's requirements. Follow the existing components and styles, check the required interactions, and report any requirement you could not verify.

  • Use Step 5 Preview with high reasoning effort to review this branch for behavior changes across files. Report concrete bugs with file references, a reproduction path, and a suggested regression test.

  • Use Step 5 Preview to compare this project's documentation with its public interfaces. Correct statements that conflict with the code and include runnable examples where the repository supports them.

How to set up Step 5 Preview 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 Step 5 Preview

    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": "openrouter",
        "model": "stepfun/step-5-preview",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

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

Step 5 Preview providers and prices

Spiral runs Step 5 Preview through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
StepFun: Step 5 Preview
stepfun/step-5-preview

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number
Min p0 to 1
Top ka whole number from 0
Top p0 to 1
Logprobson or off
Max tokens1 to 64000

The most output tokens to generate.

Temperature0 to 2
Top logprobs0 to 20
Presence penalty-2 to 2
Reasoning effortlow, medium, or highmedium

How much the model reasons.

Frequency penalty-2 to 2
Repetition penalty0 to 2

Every API field of StepFun: Step 5 Preview is on its tool page: open its card above.

What can you do with Step 5 Preview in opencode?

Turn a change request into coordinated edits across a codebase with Step 5 Preview. Give it the relevant files, failure evidence, and acceptance criteria so it can implement and verify the change.

Fix bugs across a codebase

Trace a failure through related modules, coordinate the necessary changes, and verify the fix with focused tests.

Plan a code migration

Compare existing code with migration requirements, identify affected files, and break the work into changes with clear checks.

Build a frontend from a written brief

Turn detailed requirements into interface code, then check the implementation against the requested behavior.

Compare long documents

Find agreements, contradictions, and missing evidence across supplied reports, with references back to each source.

Prepare financial analysis

Compare reported figures and supporting commentary, state assumptions, and use calculation tools to verify derived numbers.

Write research briefs

Organize retrieved evidence into findings, competing explanations, and unanswered questions before drafting a report.

Extract information into JSON

Convert supplied text into consistent records, retaining supporting passages and marking missing values for review.

Review changes in recurring reports

Compare each new report with the previous version and produce an evidence-backed list of changed claims and figures.

Questions about Step 5 Preview in opencode

Can opencode use Step 5 Preview?

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

How much does Step 5 Preview cost in opencode?

Up to $0.014424 per run at the default inputs. $1.30 per 1M input tokens, $3.51 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 OpenRouter account to use Step 5 Preview in opencode?

No. Spiral runs Step 5 Preview on its own OpenRouter account. You sign in to Spiral once and never paste a key.

How long does it take to set up Step 5 Preview in opencode?

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

Does opencode wait while Step 5 Preview runs?

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

What is Step 5 Preview good at?

StepFun emphasizes software engineering, professional knowledge work, and financial analysis. Useful tasks include coordinated code changes, comparisons across long documents, and reports grounded in supplied evidence.

How much context can Step 5 Preview handle?

StepFun documents a 1M-token context window. Use it to compare multiple sources or a long conversation, and ask for source references when details matter.

How long can a Step 5 Preview answer be?

StepFun's API documentation lists a maximum output of 64K tokens. For a large report, request an outline and draft one section at a time so each section is easier to check.

Which reasoning effort should I choose?

Use low for straightforward summaries and extraction, medium for general work with several steps, and high for difficult code analysis, math, or planning. Match the effort to the task's difficulty.

Can Step 5 Preview produce structured JSON?

Yes, StepFun documents JSON Mode and JSON Schema output. A valid structure does not prove that its values are correct, so check extracted information against the source.

Get started

Start using Step 5 Preview 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