[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Qwen3.6 27B](https://spiral.ai/integrations/codex/qwen3-6-27b)

# How to Use Qwen3.6 27B in Codex

Qwen3.6 27B is useful for code fixes, web apps, and STEM problems. Compared with Qwen3.5 27B, it improves agentic coding and STEM reasoning.

|  |  |
| --- | --- |
| Model | Qwen3.6 27B |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.017055 per run at the default inputs. $0.416 per 1M input tokens, $4.16 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Qwen3.6 27B in Codex

- Use Qwen3.6 27B to investigate the failing tests in this repository. Reproduce one failure, make a focused fix, and report the verification result.
- Use Qwen3.6 27B to add keyboard navigation to the project's search results. Follow existing component conventions and verify focus behavior.
- Use Qwen3.6 27B to trace checkout validation through this codebase. Identify where invalid quantities are accepted and propose a regression test.
- Use Qwen3.6 27B to build a chart from the project's sample dataset. Label units, handle missing values, and check the displayed totals.
- Use Qwen3.6 27B with temperature 0.6 to refactor the date parser. Preserve documented behavior and check leap days, invalid dates, and timezone boundaries.

## How to set up Qwen3.6 27B in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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.6 27B**: 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.6-27b",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Codex finds Qwen3.6 27B on Spiral, shows the price and runs it.

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

## Qwen3.6 27B tools and prices

- [Qwen: Qwen3.6 27B](https://spiral.ai/tools/openrouter/qwen/qwen3.6-27b) (OpenRouter): Up to $0.017055 per run at the default inputs. $0.416 per 1M input tokens, $4.16 per 1M output tokens.

## Settings you can ask for

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

## What can you do with Qwen3.6 27B in Codex?

Qwen3.6 27B can help turn repository context into code fixes and working web features. Give the agent a concrete failure or acceptance criteria, then ask it to verify the resulting change.

### Fix a reproducible bug

Give Qwen3.6 27B the failure, expected behavior, and relevant code. Request a focused patch and a regression check.

### Build a web interface

Turn a written specification into a working interface. Include keyboard behavior, validation rules, and screen sizes in the request.

### Explain repository behavior

Ask Qwen3.6 27B to trace a request through the relevant modules and identify where a proposed change belongs.

### Write terminal utilities

Draft scripts for repetitive development tasks, with sample inputs, expected outputs, and explicit error handling.

### Check a technical calculation

Supply the equations, units, and assumptions. Request a result with a dimensional check and a small numerical example.

### Create a data visualization

Provide a small dataset and the comparison readers need to make. Request chart code with labeled axes and a written interpretation.

### Prototype an interactive demo

Describe a small browser game or simulation, including controls and success conditions. Ask for a runnable implementation and checks for its core rules.

## Overview

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

## Qwen3.6 27B in other agents

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

## More Codex guides

- [Qwen3.5-Flash](https://spiral.ai/integrations/codex/qwen3-5-flash)
- [Qwen3.6 35B A3B](https://spiral.ai/integrations/codex/qwen3-6-35b-a3b)
- [Qwen3.5-9B](https://spiral.ai/integrations/codex/qwen3-5-9b)
- [Qwen3.6 Flash](https://spiral.ai/integrations/codex/qwen3-6-flash)
- [Qwen3.5-35B-A3B](https://spiral.ai/integrations/codex/qwen3-5-35b-a3b)
- [Qwen3.6 Plus](https://spiral.ai/integrations/codex/qwen3-6-plus)

## Questions about Qwen3.6 27B in Codex

**Can Codex use Qwen3.6 27B?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Qwen3.6 27B like any built-in tool.

**How much does Qwen3.6 27B cost in Codex?**

Up to $0.017055 per run at the default inputs. $0.416 per 1M input tokens, $4.16 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

**Do I need an OpenRouter account to use Qwen3.6 27B in Codex?**

No. Spiral runs Qwen3.6 27B 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.6 27B in Codex?**

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

**Does Codex wait while Qwen3.6 27B runs?**

Qwen3.6 27B runs in the background. Codex starts the run, checks on it and gives you the text, json when it's ready.

**What is Qwen3.6 27B good at?**

Its clearest uses are coding tasks and STEM reasoning. Try it for debugging, building web interfaces, or working through technical problems with explicit constraints.

**How much context can Qwen3.6 27B handle?**

The native context length is 262,144 tokens. Qwen also documents extension to 1,010,000 tokens with additional configuration, so treat the larger figure as an extended limit.

**Which settings should I try for precise coding?**

Qwen recommends temperature 0.6, top_p 0.95, top_k 20, and min_p 0.0 for precise coding in thinking mode. Use that as a starting point and compare results on representative tasks.

**How long can a Qwen3.6 27B response be?**

Alibaba documents a maximum output length of 65,536 tokens in thinking mode. For a large implementation, request one tested change at a time to keep the result easier to review.

**Where should I be cautious with Qwen3.6 27B?**

Its reported SWE-bench results used an agent with bash and file-editing tools. That makes the scores evidence for a particular assisted workflow; review generated changes and test the behavior you need.

