[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [GPT-6.2 Astra Pro](https://spiral.ai/integrations/codex/gpt-6-2-astra-pro)

# How to Use GPT-6.2 Astra Pro in Codex

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.

|  |  |
| --- | --- |
| Model | GPT-6.2 Astra Pro |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.213356 per run at the default inputs. $10.40 per 1M input tokens, $52.00 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with GPT-6.2 Astra Pro in Codex

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

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

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

## GPT-6.2 Astra Pro tools and prices

- [OpenAI: GPT-6.2 Astra Pro](https://spiral.ai/tools/openrouter/openai/gpt-6.2-astra-pro) (OpenRouter): Up to $0.213356 per run at the default inputs. $10.40 per 1M input tokens, $52.00 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| tools |  | — |  |
| reasoning |  | — | Reasoning effort; reasoning tokens count toward max_tokens. |
| max_tokens | 1 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). |
| tool_choice |  | — |  |
| response_format |  | — |  |

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

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.

## Overview

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

## GPT-6.2 Astra Pro in other agents

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

## More Codex guides

- [GPT-6.2 Astra](https://spiral.ai/integrations/codex/gpt-6-2-astra)
- [GPT-6.2 Sol](https://spiral.ai/integrations/codex/gpt-6-2-sol)
- [GPT-6.1 Terra Pro](https://spiral.ai/integrations/codex/gpt-6-1-terra-pro)
- [GPT-6.2 Sol Pro](https://spiral.ai/integrations/codex/gpt-6-2-sol-pro)
- [GPT-6.1 Terra](https://spiral.ai/integrations/codex/gpt-6-1-terra)
- [GPT-oss Safeguard 20B](https://spiral.ai/integrations/codex/gpt-oss-safeguard-20b)

## Questions about GPT-6.2 Astra Pro in Codex

**Can Codex use GPT-6.2 Astra Pro?**

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

**How much does GPT-6.2 Astra Pro cost in Codex?**

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 Codex plan is separate.

**Do I need an OpenRouter account to use GPT-6.2 Astra Pro in Codex?**

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 Codex?**

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

**Does Codex wait while GPT-6.2 Astra Pro runs?**

GPT-6.2 Astra Pro runs in the background. Codex 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.

