Overview
Codex is powered by OpenAI’s models and offers high-reasoning capabilities for complex tasks and critical reviews.Latest Models
- GPT-6 Astra - OpenAI’s newest model with advanced reasoning capabilities
- GPT-5.6 Luna - Fast model for everyday coding work
- GPT-5.6 Terra - Balanced default for most tasks
- GPT-5.6 Sol - Highest reasoning effort in the 5.6 family
- GPT-5.5 - Previous generation flagship
Authentication
Codex supports three authentication methods:- OpenAI API Key
- OpenAI Subscription
- Blocks
Pay-as-you-go API access
- Get an API key at OpenAI Platform
- In Blocks Dashboard, go to Dashboard → Agents
- Select Codex and choose “API Key”
- Paste your API key (starts with
sk-)
Multiple Subscriptions
A workspace can hold up to 10 OpenAI subscriptions. Add them under Settings → Workspace Integrations → OpenAI → Add subscription. Each one is named when you connect it so you can tell them apart in the list. The name cannot be changed afterwards. For each session, Blocks picks the subscription with the lowest usage, so work spreads across them instead of exhausting one. Your own subscription under Settings → User Integrations → OpenAI is still a single connection, and it is included in the same selection:- Sessions you start from the Blocks dashboard use your personal subscription
- Sessions started from GitHub, Slack, Linear, and other external tools use it too, as long as you have linked that account
- If an external account cannot be matched to a Blocks user, the session uses the workspace subscriptions
- If your personal subscription runs out of usage, the session falls back to the workspace subscriptions
Migrating to the New OpenAI Subscription Flow
Connecting a subscription by pasting~/.codex/auth.json has been replaced by Sign in with ChatGPT. The old flow tended to stop working after a while, leaving the connection stuck on authentication errors until you reconnected; the new one stays stable. Existing connections keep working, so there is nothing to do right away, but re-link yours when convenient:
- Go to Settings → Workspace Integrations → OpenAI. A connection made with the old flow shows a “Legacy connection” notice on its row
- Click Add subscription and connect with Sign in with ChatGPT
- Once the new subscription is listed, disconnect the legacy one from its menu
Setting as Default
To use Codex automatically for all requests:- Go to Dashboard → Agents
- Select “Set as default agent” from Codex’s dropdown menu
Using Codex
Once configured, Codex is used automatically if it’s your default agent:/codex slash command to use it specifically:
Best For
- Complex reasoning tasks
- Critical code reviews
- Advanced problem solving
- Detailed analysis
- Architecture decisions
- In-depth explanations
Cost
Codex uses your OpenAI API key or subscription:- Check pricing at OpenAI Pricing
- Monitor usage in OpenAI Dashboard
- API usage is billed by OpenAI based on tokens
Next Steps
Claude Code
Learn about Claude Code
Gemini CLI
Explore Gemini CLI (experimental)

