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

opencode · LLMReleased 2026-11-17

How to Use GPT-6.2 Astra Pro in opencode

GPT-6.2 Astra Pro fits difficult debugging, technical reviews, and decisions with many constraints. It uses the same underlying model as GPT-6.2 Astra with pro reasoning for additional model work.

Prompts to try with GPT-6.2 Astra Pro in opencode

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

Use GPT-6.2 Astra Pro to investigate the intermittent failures in this project's test logs. Identify the cause, implement a focused fix, and report which checks passed or remained blocked.

GPT-6.2 Astra Proopencode
Try asking
  • Use GPT-6.2 Astra Pro to review the current branch for behavior regressions. Trace changed interfaces to their callers and report only findings supported by the code.

  • Ask GPT-6.2 Astra Pro 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 GPT-6.2 Astra Pro on this function, then tell me what the call cost.

  • Summarize these release notes with GPT-6.2 Astra Pro in five bullet points.

How to set up GPT-6.2 Astra Pro 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 GPT-6.2 Astra Pro

    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": "openai/gpt-6.2-astra-pro",
        "input": {
          "messages": [
            {
              "role": "user",
              "content": "Hello!"
            }
          ]
        }
      }'

Then paste one of the prompts above: opencode finds GPT-6.2 Astra Pro on Spiral, shows the price and runs it.

GPT-6.2 Astra Pro providers and prices

Spiral runs GPT-6.2 Astra Pro through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
OpenAI: GPT-6.2 Astra Pro
openai/gpt-6.2-astra-pro

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number
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.

Every API field of OpenAI: GPT-6.2 Astra Pro is on its tool page: open its card above.

What can you do with GPT-6.2 Astra Pro in opencode?

Turn a project brief into code changes and verification with GPT-6.2 Astra. Use repository conventions and acceptance criteria to guide implementation and review.

Refactor an existing application

Use GPT-6.2 Astra to revise connected components while preserving the behavior their callers rely on. Give it the acceptance criteria and project conventions.

Investigate a difficult bug

Ask GPT-6.2 Astra to compare failure evidence, isolate the cause, and propose a focused patch with a regression check.

Review a complex code change

Have GPT-6.2 Astra inspect a proposed change for behavior regressions, overlooked callers, and missing verification.

Build a web prototype

Give GPT-6.2 Astra a written brief, visual direction, and required interactions. Request interface code and checks against the brief.

Draft a professional report

Use GPT-6.2 Astra to turn supplied evidence into a report that follows your template, with unsupported conclusions marked for review.

Prepare a presentation narrative

Ask GPT-6.2 Astra for slide titles, concise supporting copy, and a logical sequence that follows your presentation conventions.

Questions about GPT-6.2 Astra Pro in opencode

Can opencode use GPT-6.2 Astra Pro?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run GPT-6.2 Astra Pro like any built-in tool.

How much does GPT-6.2 Astra Pro cost in opencode?

Up to $0.213356 per run at the default inputs. $10.40 per 1M input tokens, $52.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 OpenRouter account to use GPT-6.2 Astra Pro in opencode?

No. Spiral runs GPT-6.2 Astra Pro on its own OpenRouter account. You sign in to Spiral once and never paste a key.

How long does it take to set up GPT-6.2 Astra Pro in opencode?

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

Does opencode wait while GPT-6.2 Astra Pro runs?

GPT-6.2 Astra Pro runs in the background. opencode starts the run, checks on it and gives you the text, json when it's ready.

What is GPT-6.2 Astra good at?

Complex code changes and professional documents are strong fits. Give it a concrete deliverable, such as a tested refactor or a report that follows an existing template.

How much context can GPT-6.2 Astra handle?

OpenAI documents a 1,050,000-token context window, with up to 922,000 input tokens and 128,000 output tokens. GPT-6.2 Astra Pro uses the same underlying model.

Does the output limit mean 128,000 tokens of visible text?

The allowance also covers internal reasoning and non-visible formatting. Leave room for that work when requesting a long answer.

What should I include in a coding prompt?

State the change, project conventions, and behavior that callers must retain. For a frontend, specify imagery and typography so the design has a clear target.

What weakness should I check for?

OpenAI found cases where the model omitted mentioning blocked work. Ask the final response to list unavailable evidence, unfinished tasks, and checks it could not run.

Get started

Start using GPT-6.2 Astra Pro 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