Blog

How to Use GPT-6 Astra in Codex, Cursor, and Claude Code

Quick Answer

Using GPT-6 Astra in Codex, Cursor, or Claude Code is the same OpenAI-compatible setup as GPT-5.6 today: point base_url at an OpenAI-compatible gateway, add your key, set the model name to gpt-6. These tools don't recognize the "Astra" codename — they only speak the OpenAI-compatible contract. With TeamoRouter, one key switches between GPT-6, Claude, and DeepSeek.

Why It Works Everywhere

Codex, Cursor, Claude Code, and Cline all abstract the "model provider" as an OpenAI-compatible endpoint. Give them a base_url that responds plus a valid model name, and they work. So "connecting Astra" = "provide an OpenAI-compatible entry + tell it the model name."

Cursor

Cursor → Settings → Models → enable OpenAI API Key, then fill in:

text
Base URL: https://api.teamorouter.com/v1
API Key:  sk-teamo-xxxxxx

Enter gpt-6 in the model list (replace with the official name on launch). Until then, the same config runs GPT-5.6 Sol.

Claude Code

Switch the provider via environment variables:

bash
export ANTHROPIC_BASE_URL="https://api.teamorouter.com/v1"
export ANTHROPIC_AUTH_TOKEN="sk-teamo-xxxxxx"

Or specify the model directly with claude --model gpt-6. Claude Code's provider abstraction is OpenAI-compatible too — change base_url + model and you're done.

Codex

toml
# ~/.codex/config.toml
model = "gpt-6"                # replace with the final official name
model_provider = "openai"

Or env vars:

bash
export OPENAI_BASE_URL="https://api.teamorouter.com/v1"
export OPENAI_API_KEY="sk-teamo-xxxxxx"

Route by Task, Don't Lock One Model

Once connected, the pragmatic pattern is task-based routing, not "Astra everywhere":

Task Model
Complex refactor, hard bug, architecture GPT-6 Astra / Claude
Daily completion, simple Q&A GPT-5.6 Terra / DeepSeek
Batch generation, low-value GPT-5.6 Luna / DeepSeek V4 Flash

One gateway key makes this a model string change across tools — no per-provider accounts, top-ups, or configs. Astra on simple tasks is just wasted money.

FAQ

Q: Do these tools need a version upgrade for Astra? Usually not — they speak the generic OpenAI-compatible protocol. Some may require manually entering a "custom model name" in the list.

Q: Will Claude Code treat an OpenAI-model as Claude? No. You're explicitly setting the provider via base_url, and the model name is passed through as you configure it.

Q: Is Astra actually better at coding? Indirect evidence only (10 math proofs, multi-agent). No official coding benchmark. Test it on your own repo before making it the daily driver.

Summary

Codex / Cursor / Claude Code connect to GPT-6 Astra with three fields: Base URL, API Key, Model ID. Prep one multi-model key now and you're ready the day it ships. Sign up for TeamoRouter and flip between GPT-6, Claude, and DeepSeek in every tool.

Get Started

Create your key at TeamoRouter and set base_url to https://api.teamorouter.com/v1.

Ready to connect?Log in · top up · create an API key — three steps to start.
How to Use GPT-6 Astra in Codex, Cursor, and Claude Code · TeamoRouter