Skip to main content

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:
Pay-as-you-go API access
  1. Get an API key at OpenAI Platform
  2. In Blocks Dashboard, go to Dashboard → Agents
  3. Select Codex and choose “API Key”
  4. 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:
  1. Go to Settings → Workspace Integrations → OpenAI. A connection made with the old flow shows a “Legacy connection” notice on its row
  2. Click Add subscription and connect with Sign in with ChatGPT
  3. Once the new subscription is listed, disconnect the legacy one from its menu
Because a workspace now holds several subscriptions, connecting adds a row rather than replacing the old one — so the legacy connection has to be removed separately. If you also connected an OpenAI subscription at the user level, go to Settings → User Integrations → OpenAI and click Reconnect. User subscriptions are still a single connection, so reconnecting migrates it in place with no disconnect needed.

Setting as Default

To use Codex automatically for all requests:
  1. Go to Dashboard → Agents
  2. Select “Set as default agent” from Codex’s dropdown menu

Using Codex

Once configured, Codex is used automatically if it’s your default agent:
Or use the /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: With the Blocks authentication method there is no OpenAI bill. Requests route through the Blocks AI Gateway and are billed against your Blocks LLM credits.

Next Steps

Claude Code

Learn about Claude Code

Gemini CLI

Explore Gemini CLI (experimental)