All patterns
OpenAI Codex
Snapshot from OpenAI Codex
Verified on 2026-03-09

Rate Window + Credits Fallback

Free and Go have limited access; paid plans raise limits and credits.

The public pricing is plan-based rather than a single standalone Codex SKU. OpenAI also notes that Free and Go access is temporary.

Codex access is now a tiered plan benefit rather than a standalone line item, with credits and limits expanding as the plan level increases.

Implementation

This snippet is the closest Owostack implementation of the live pricing shape above. It is not a literal copy of the vendor's internal billing system.

const agentRuns = metered("agent-runs", {
  name: "Agent Runs",
});

const agentCredits = creditSystem("agent-credits", {
  name: "Agent Credits",
  features: [agentRuns(1)],
});

plan("codex", {
  name: "Codex",
  price: 0,
  autoEnable: true,
  currency: "USD",
  interval: "monthly",
  features: [
    agentRuns.config({
      usageModel: "included",
      limit: 500,
      reset: "hourly",
      overage: "block",
    }),
    agentCredits.credits(5_000, { reset: "monthly" }),
  ],
});

creditPack("agent-topup", {
  name: "Agent Top-up",
  price: 2000,
  currency: "USD",
  credits: 5_000,
  creditSystem: "agent-credits",
});

Rules

OpenAI presents Codex as part of ChatGPT plan packaging.

Free and Go access is temporary on the public page.

The Owostack snippet below is the closest code-first approximation of that plan-plus-credits model.

Ready to implement this pattern?

Join our Discord for implementation help, or book a call to discuss how OpenAI Codex's pricing model fits your product.