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

# How to Use GPT-6.2 Astra in Codex

GPT-6.2 Astra fits complex code changes, document work, and web prototypes. Choose it over GPT-6.2 Astra Pro when the task does not need pro reasoning's extra model work.

|  |  |
| --- | --- |
| Model | GPT-6.2 Astra |
| Available through | OpenAI |
| Category | LLM |
| Price | Up to $0.213447 per run at the default inputs. $10.40 per 1M input tokens, $0.52 per 1M cached input tokens, $13.00 per 1M cache write 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 in Codex

- Use GPT-6.2 Astra to inspect this repository's checkout flow and refactor duplicated validation. Preserve public behavior, follow project conventions, and run the relevant checks.
- Use GPT-6.2 Astra to build an appointment-booking prototype in this project. Use system typography, documentary photography, and a weekly calendar; verify booking, cancellation, and mobile navigation.
- Use GPT-6.2 Astra to implement the requirements in this project's design brief. Reuse existing components, preserve established conventions, and finish with completed work, test results, and blockers.
- Ask GPT-6.2 Astra 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 on this function, then tell me what the call cost.

## How to set up GPT-6.2 Astra 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**: 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": "openai",
    "model": "openai/gpt-6.2-astra",
    "input": {
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    }
  }'
```

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

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

## GPT-6.2 Astra tools and prices

- [GPT-6.2 Astra](https://spiral.ai/tools/openai/openai/gpt-6.2-astra) (OpenAI): Up to $0.213447 per run at the default inputs. $10.40 per 1M input tokens, $0.52 per 1M cached input tokens, $13.00 per 1M cache write 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 | 16 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 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

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

## GPT-6.2 Astra in other agents

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

## More Codex guides

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

## Questions about GPT-6.2 Astra in Codex

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

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

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

Up to $0.213447 per run at the default inputs. $10.40 per 1M input tokens, $0.52 per 1M cached input tokens, $13.00 per 1M cache write 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 OpenAI account to use GPT-6.2 Astra in Codex?**

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

**How long does it take to set up GPT-6.2 Astra in Codex?**

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

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

GPT-6.2 Astra 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.

