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

opencode · LLMReleased 2026-07-09

How to Use GPT-5.6 Luna Pro in opencode

GPT-5.6 Luna Pro targets difficult tasks where extra checking matters. It uses the same underlying model as GPT-5.6 Luna, with pro reasoning mode applying more model work to produce the answer.

Prompts to try with GPT-5.6 Luna Pro in opencode

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

Use GPT-5.6 Luna Pro to review the database migration in this branch against the schema and existing tests. List concrete failure cases and propose a test for each.

GPT-5.6 Luna Proopencode
Try asking
  • Use GPT-5.6 Luna Pro to compare this implementation with the acceptance criteria in the project. Return unmet requirements with code references and the smallest proposed fixes.

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

  • Summarize these release notes with GPT-5.6 Luna Pro in five bullet points.

How to set up GPT-5.6 Luna 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-5.6 Luna 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-5.6-luna-pro",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

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

GPT-5.6 Luna Pro providers and prices

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

OpenRouterLLM
OpenAI: GPT-5.6 Luna Pro
openai/gpt-5.6-luna-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.

Reasoning effortnone, low, medium, high, xhigh, or maxmedium

How much the model reasons.

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

What can you do with GPT-5.6 Luna Pro in opencode?

Turn a defined requirement into a code change with tests, or locate the code responsible for a reported behavior. GPT-5.6 Luna can handle scoped implementation and code retrieval when you provide acceptance criteria.

Extract renewal terms

Turn supplied contract text into a table of renewal dates, notice periods, and supporting passages. Mark missing terms explicitly.

Find code behind a behavior

Trace a reported behavior to relevant functions and tests. Request file references and a concise explanation of the execution path.

Implement a scoped change

Apply a clearly specified code change, add a regression test, and check the result against acceptance criteria.

Classify support conversations

Sort supplied conversations by issue type and urgency, preserving a supporting passage for each classification.

Compare policy revisions

Compare two supplied policy texts and list changed obligations, exceptions, and unresolved conflicts with section references.

Check a decision against evidence

Evaluate a proposed decision against supplied requirements and evidence. Request unmet conditions, conflicting evidence, and questions that would change the recommendation.

Questions about GPT-5.6 Luna Pro in opencode

Can opencode use GPT-5.6 Luna Pro?

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

How much does GPT-5.6 Luna Pro cost in opencode?

Up to $0.0064 per run at the default inputs. $0.26 per 1M input tokens, $1.56 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-5.6 Luna Pro in opencode?

No. Spiral runs GPT-5.6 Luna 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-5.6 Luna Pro in opencode?

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

Does opencode wait while GPT-5.6 Luna Pro runs?

GPT-5.6 Luna 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-5.6 Luna good at?

Document extraction, code retrieval, customer-interaction classification, and well-specified implementation are supported uses. Give it a defined task and an output you can check.

What does GPT-5.6 Luna Pro change?

It uses the same underlying model as GPT-5.6 Luna with pro reasoning mode. That mode applies extra model work to difficult tasks; reasoning effort remains a separate control.

How much text can GPT-5.6 Luna handle?

OpenAI documents a 1,050,000-token context window, with up to 922,000 input tokens and 128,000 generated tokens. Reasoning consumes part of the generated-token budget, so that maximum does not promise an equally long visible answer.

How should I prompt GPT-5.6 Luna?

State the task directly, supply the relevant material, and define what a successful answer must contain. Specify constraints such as length, required evidence, and how to handle missing information.

Which tasks deserve more reasoning?

Test extra reasoning on difficult tasks that require exploring alternatives, running checks, or revising an approach. Use representative examples to judge whether the extra work improves the result.

Get started

Start using GPT-5.6 Luna 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