[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Qwen3.8 2.4T A95B](https://spiral.ai/integrations/opencode/qwen3-8-2-4t-a95b)

# How to Use Qwen3.8 2.4T A95B in opencode

Use Qwen3.8 2.4T A95B for coding, research, and document analysis that requires several steps. It accepts text only and always uses reasoning before producing its answer.

|  |  |
| --- | --- |
| Model | Qwen3.8 2.4T A95B |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.03204 per run at the default inputs. $2.60 per 1M input tokens, $7.80 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Qwen3.8 2.4T A95B in opencode

- Use Qwen3.8 2.4T A95B to investigate the failing tests in this project. Reproduce the failure, trace the cause, make a focused fix, and run the relevant checks. Summarize the evidence and changed behavior.
- Use Qwen3.8 2.4T A95B with deeper reasoning to plan this project's migration to the next major version of its main framework. Inspect the dependency manifest and affected code, then propose ordered changes and acceptance checks.
- Use Qwen3.8 2.4T A95B to compare the API specification with the request handlers in this repository. Identify concrete mismatches, cite the relevant files, and propose a patch for the highest-impact mismatch.
- Use Qwen3.8 2.4T A95B to review the current diff for behavior changes and missed edge cases. Trace each finding through the surrounding code and give a reproducible example before recommending a fix.
- Use Qwen3.8 2.4T A95B with temperature 1.0, top_p 0.95, and top_k 20 to implement pagination for this project's existing list endpoint. Follow the repository's conventions and verify empty results, page boundaries, and invalid input.

## How to set up Qwen3.8 2.4T A95B 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.

```bash
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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Qwen3.8 2.4T A95B**: One request; the result comes back by polling or a webhook.

```bash
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": "qwen/qwen3.8-2.4t-a95b",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: opencode finds Qwen3.8 2.4T A95B on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Qwen3.8 2.4T A95B tools and prices

- [Qwen: Qwen3.8 2.4T A95B](https://spiral.ai/tools/openrouter/qwen/qwen3.8-2.4t-a95b) (OpenRouter): Up to $0.03204 per run at the default inputs. $2.60 per 1M input tokens, $7.80 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| tools |  | — |  |
| top_k | 0 to … | — |  |
| top_p | 0 to 1 | — |  |
| logprobs |  | — |  |

## What can you do with Qwen3.8 2.4T A95B in opencode?

Turn repository investigation into a tested code change with Qwen3.8 2.4T A95B. Give the agent a concrete failure or specification and ask it to follow the dependencies through implementation and verification.

### Investigate a failing test

Use Qwen3.8 2.4T A95B to trace a failure through source code and logs, propose a focused fix, and check the result against the original failure.

### Plan a code migration

Ask Qwen3.8 2.4T A95B to map affected code, identify dependencies, and divide a migration into changes with explicit acceptance checks.

### Compare document revisions

Give Qwen3.8 2.4T A95B the text of two specifications or policies and request changed requirements, contradictions, and supporting passages.

### Build an evidence-based research brief

Use Qwen3.8 2.4T A95B to organize supplied research excerpts by question, identify disagreements, and separate findings from open questions.

### Review an incident timeline

Ask Qwen3.8 2.4T A95B to reconcile timestamped logs and written updates into a timeline, with evidence for each proposed cause.

### Prepare a decision memo

Give Qwen3.8 2.4T A95B written proposals and evaluation criteria, then request a comparison that makes assumptions and missing evidence explicit.

### Track requirement changes

Use Qwen3.8 2.4T A95B to compare newly retrieved text with an earlier snapshot and draft a digest of changes that affect planned work.

### Turn a specification into implementation tasks

Ask Qwen3.8 2.4T A95B to translate a written specification into ordered tasks, dependencies, edge cases, and completion criteria.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Qwen3.8 2.4T A95B in other agents

- [Amp](https://spiral.ai/integrations/amp/qwen3-8-2-4t-a95b)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/qwen3-8-2-4t-a95b)
- [Claude](https://spiral.ai/integrations/claude-desktop/qwen3-8-2-4t-a95b)
- [Claude Code](https://spiral.ai/integrations/claude-code/qwen3-8-2-4t-a95b)
- [Cline](https://spiral.ai/integrations/cline/qwen3-8-2-4t-a95b)
- [Codex](https://spiral.ai/integrations/codex/qwen3-8-2-4t-a95b)
- [Cursor](https://spiral.ai/integrations/cursor/qwen3-8-2-4t-a95b)
- [Devin](https://spiral.ai/integrations/devin/qwen3-8-2-4t-a95b)
- [dots](https://spiral.ai/integrations/dots/qwen3-8-2-4t-a95b)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/qwen3-8-2-4t-a95b)
- [Gemini](https://spiral.ai/integrations/gemini/qwen3-8-2-4t-a95b)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/qwen3-8-2-4t-a95b)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/qwen3-8-2-4t-a95b)
- [goose](https://spiral.ai/integrations/goose/qwen3-8-2-4t-a95b)
- [Grok](https://spiral.ai/integrations/grok/qwen3-8-2-4t-a95b)
- [Grok Build](https://spiral.ai/integrations/grok-build/qwen3-8-2-4t-a95b)
- [Hermes](https://spiral.ai/integrations/hermes/qwen3-8-2-4t-a95b)
- [Instinct](https://spiral.ai/integrations/instinct/qwen3-8-2-4t-a95b)
- [Manus](https://spiral.ai/integrations/manus/qwen3-8-2-4t-a95b)
- [Muse](https://spiral.ai/integrations/muse/qwen3-8-2-4t-a95b)
- [Muse Code](https://spiral.ai/integrations/muse-code/qwen3-8-2-4t-a95b)
- [n8n](https://spiral.ai/integrations/n8n/qwen3-8-2-4t-a95b)
- [Notion](https://spiral.ai/integrations/notion/qwen3-8-2-4t-a95b)
- [OpenClaw](https://spiral.ai/integrations/openclaw/qwen3-8-2-4t-a95b)
- [Perplexity](https://spiral.ai/integrations/perplexity/qwen3-8-2-4t-a95b)
- [Raycast](https://spiral.ai/integrations/raycast/qwen3-8-2-4t-a95b)
- [VS Code](https://spiral.ai/integrations/vscode/qwen3-8-2-4t-a95b)
- [Windsurf](https://spiral.ai/integrations/windsurf/qwen3-8-2-4t-a95b)
- [Zapier](https://spiral.ai/integrations/zapier/qwen3-8-2-4t-a95b)

## More opencode guides

- [Qwen3.7 Plus](https://spiral.ai/integrations/opencode/qwen3-7-plus)
- [Qwen3.8 27B](https://spiral.ai/integrations/opencode/qwen3-8-27b)
- [Qwen3.7 Max](https://spiral.ai/integrations/opencode/qwen3-7-max)
- [Qwen3.8 27B (batch)](https://spiral.ai/integrations/opencode/qwen3-8-27b-batch)
- [Qwen3.7 Flash](https://spiral.ai/integrations/opencode/qwen3-7-flash)
- [Qwen3.8 Flash](https://spiral.ai/integrations/opencode/qwen3-8-flash)

## Questions about Qwen3.8 2.4T A95B in opencode

**Can opencode use Qwen3.8 2.4T A95B?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Qwen3.8 2.4T A95B like any built-in tool.

**How much does Qwen3.8 2.4T A95B cost in opencode?**

Up to $0.03204 per run at the default inputs. $2.60 per 1M input tokens, $7.80 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 Qwen3.8 2.4T A95B in opencode?**

No. Spiral runs Qwen3.8 2.4T A95B on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Qwen3.8 2.4T A95B in opencode?**

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

**Does opencode wait while Qwen3.8 2.4T A95B runs?**

Qwen3.8 2.4T A95B runs in the background. opencode starts the run, checks on it and gives you the text, json when it's ready.

**What is Qwen3.8 2.4T A95B good at?**

Qwen emphasizes coding, professional work, research, and tasks that require multiple steps. Suggested uses include debugging code, comparing lengthy documents, and building research briefs from supplied evidence.

**Can Qwen3.8 2.4T A95B analyze images?**

No. It is text-only, so provide extracted text or a written description when working from visual material.

**How much context does Qwen3.8 2.4T A95B support?**

Its native context length is 262,144 tokens. Qwen documents extension to 1,010,000 tokens, so distinguish the native limit from the extended capability when planning long-document work.

**Can I turn off thinking in Qwen3.8 2.4T A95B?**

No. Thinking is required for every interaction, although Qwen documents adjustable reasoning depth.

**How long can a Qwen3.8 2.4T A95B response be?**

NVIDIA describes output up to 128K tokens. Treat that as a documented upper capability, and specify the length you actually need in the prompt.

