aq.dev / guides / subscription-vs-api-credits-for-coding-agents

Should Coding Agents Run on Your Subscription or API Credits?

The credential and account you choose decide which meter a coding agent run uses. A subscription login spends that plan's included allowance first, supported overflow can then use purchased subscription credits, and an API key bills per token to the API account. For interactive coding, a subscription gives you a flat fee with usage windows; for CI and bulk automation, use an API key with a spend limit and no subscription windows. This guide was verified against vendor documentation on November 8, 2026.

AQ is the multiplayer coding harness where teams run coding agents like Claude Code and Codex together in shared live workspaces, in their own cloud.

The four meters, defined

A subscription allowance is usage included in a flat plan. It refreshes on the vendor's schedule and does not roll over. Purchased subscription credits are an optional balance on that plan for eligible usage after the included allowance. Included monthly API credits are a separate benefit on some Claude plans, claimed into a Claude Console organization for API work. API-key billing charges each request to a developer or cloud account at the applicable token rate.

MeterWhen a run uses itWho displays and limits it
Subscription allowanceFirst, while the signed-in plan has included usageThe subscription vendor shows plan meters and reset times in the product or usage dashboard
Purchased subscription creditsAfter included usage, for supported features on an eligible accountThe subscription vendor shows the balance and any reload or spend controls in subscription settings
Included monthly API creditsEligible API-key work in the Console organization linked to a Claude Max, Ultra, or Team planClaude Console shows the API balance and spend controls; the credit expires each billing cycle
API-key billingFrom the first request made with that key, using any included API credits before other billing where applicableThe API or cloud provider shows token spend, rate limits, and configured spend limits

API token prices cannot estimate the number of tasks included in a subscription. For current examples, Claude's Standard API rate card lists Opus 5.5 at $4 per million input tokens and $20 per million output, Sonnet 5.5 at $2 and $10, Haiku 5.5 at $0.10 and $0.50 for prompts up to 100,000 tokens, and Fable 5.1 at $10 and $50. OpenAI lists GPT-6.1 Sol at $2 and $10, GPT-6.1 Terra at $1 and $5, GPT-6 Astra at $10 and $50, and GPT-6 Luna at $0.10 and $0.50. These are Standard API prices before applicable context, speed, residency, or other adjustments. Both vendors offer 50 percent Batch discounts for eligible asynchronous work. Token costs for teams explains how to budget actual API usage.

Anthropic: plan allowance, usage credits, and monthly API credits

Usage credits in Claude Code

Usage credits let a Claude Pro, Max, or Ultra plan continue at Standard API rates after an included limit. Pro and Max have five-hour and weekly limits. Ultra has a weekly limit, and verified Ultra accounts have no five-hour limit. Max and Ultra also have a Fable weekly sublimit. Usage across Claude and Claude Code shares the applicable limits.

After signing in with a claude.ai subscription through /login, run /usage-credits to open Usage settings. You can enable credits, check the balance and current month's spend, and set a monthly spend limit. The command is unavailable with API-key authentication. Team and Enterprise members see organization settings or an admin request flow according to their billing access. While credits are enabled, /usage shows current spend against the applicable limit.

Anthropic's current expiration article says credits purchased before December 7, 2026 generally do not expire. Credits purchased on or after that date generally expire 12 months after purchase, including one-time, bundle, and auto-reload purchases. Expiration can vary by jurisdiction, so check the date shown in Usage. Monthly API credits are a different balance and cannot pay for Claude or Claude Code usage credits.

Fable models have a plan-specific meter

On Max, Ultra, Team Premium seats, and premium seats on legacy seat-based Enterprise plans, Fable 5 and Fable 5.1 are included. Fable can use up to 50 percent of the regular weekly allowance. That is a sublimit inside the weekly allowance, with other models drawing from the same overall pool. Past the Fable sublimit, continue with usage credits or another model.

On Pro, Team Standard seats, and standard seats on legacy seat-based Enterprise plans, Fable runs on usage credits from the first request. It is not included in those plans' usage limits. Claude Code requires version 2.1.170 or later for Fable 5 and 2.1.255 or later for Fable 5.1.

The wrap-up allowance at the five-hour limit

When a response already in progress reaches the five-hour limit, Claude Code may briefly continue so it can finish the current step. The wrap-up allowance is small and capped, counts toward the weekly limit, and cannot start a new message after the limit. On Pro it applies up to once per weekly usage period. On Max it can apply each time the five-hour limit arrives, within the weekly limit. Verified Ultra accounts have no five-hour limit; an Ultra account with a temporary limit follows the Max behavior. The feature is rolling out gradually and may be unavailable on a given account.

Monthly API credits on Max, Ultra, and Team

Max includes $100 of monthly API credits and Ultra includes $200. Team includes $20 per Standard seat and $100 per Premium seat, pooled into one monthly balance capped at $500. After seven days on an eligible plan, claim the benefit by linking one Claude Console organization from the plan's Billing settings. Team claims require a Primary Owner or Owner. The credits arrive each billing cycle, are used before purchased credits, and expire at the end of that cycle with no rollover.

The credits cover eligible Claude Platform usage, including the Messages API, Message Batches API, Console Playground, Claude Managed Agents, and Claude Agent SDK. They do not cover interactive Claude Code, extra usage in Claude or Claude Code, or usage credits. Running claude -p or the Agent SDK with an API key from the linked Console organization uses the API benefit. The same commands use plan allowance under a plan sign-in. Runs started by the Claude Code GitHub Action, IDE extensions, or desktop app count as Claude Code even with -p, so the monthly API credits do not cover them. The separate Agent SDK credit announced in June is unavailable.

OpenAI: Codex allowance, credits, resets, and API keys

Codex and ChatGPT Work share an allowance on ChatGPT plans. Plus and Business Standard have estimated five-hour local-message ranges and may have weekly limits. All Pro tiers currently have no five-hour limit. Pro 200 is available for new subscriptions at $200 per month, Pro 100 and Pro 500 now include twice their previous Work and Codex allowance, and every Pro 200 now has the same allowance after the lower version doubled. Codex usage limits explained has the current plan table and staff-attributed usage comparisons.

Fast consumes included allowance at 2.5x Standard and purchased credits at 2x the Standard credit rate. Supported Ultrafast models consume included usage at 8x Standard, then purchased credits at 6x. Pro 500 is the only Pro tier with Ultrafast. Pro 200 does not gain it, and buying credits on Pro 100 or Pro 200 does not unlock it. GPT-6.1 Sol subscription usage has no long-context surcharge in Codex or ChatGPT Work.

When included usage runs out, the available continuation depends on the account:

  • ChatGPT usage credits. Eligible purchases add a separate balance for supported usage after included allowance. Feature and account availability vary. Credits are valid for 12 months and are separate from OpenAI API credits. Automatic reload can maintain a target balance under a monthly limit. Concurrent usage can make a balance negative, and later purchases offset that amount first.
  • A paid instant reset. Eligible Plus and Pro personal accounts can immediately restore both the five-hour and weekly allowances. The reset pulls the normal weekly allowance forward, applies at checkout even when usage remains, and cannot be saved. The new weekly period starts with the first Work or Codex request afterward, and the next automatic reset is seven days later. Only weekly exhaustion triggers the offer banner. Availability varies by account and billing country, and purchases are generally nonrefundable.
  • A banked reset. A promotion or qualifying referral can save a reset on the account for later use. A full banked reset restores the five-hour and weekly allowances on Plus and Business Standard, and the weekly allowance on Pro tiers. Check the covered allowances and expiration shown in the account.

An OpenAI API key bills usage at API rates without the subscription windows. The key supports the Codex CLI, SDK, and IDE extension, without cloud features such as GitHub code review and Slack. Model availability follows the API models available to that key. API rate limits and configured spend limits still apply.

The credential decides the meter

The same Claude Code installation uses plan allowance with a claude.ai sign-in and API billing with an API key. Anthropic's cost documentation says each developer in a mixed organization is metered according to the sign-in they used. The same Codex CLI uses the shared ChatGPT allowance with a ChatGPT sign-in and API billing with an OpenAI key. A harness using a person's own CLI login spends that person's plan; a service using its own API key generates API spend.

JetBrains Air provides another example. Air runs the official GitHub Copilot CLI over the Agent Client Protocol locally in supported JetBrains IDEs and in Air Teams cloud tasks. Each Copilot task uses the user's Copilot plan. GitHub checks the plan and credits when the task starts. Air does not display or limit Copilot usage, so scheduled or pull-request automations can exhaust it and later runs can fail. Check usage on GitHub.

Eligibility and metering are separate questions. Local Copilot tasks require a Copilot subscription and do not require Air Teams. JetBrains' November 4 post says cloud tasks require a company using Air Teams plus a Copilot subscription. Its current IDE product page also says a JetBrains AI subscription is currently required for cloud runs. Each cloud task gets a fresh VM with Copilot in a Docker container, and nothing carries into the next task. Air worktrees separate directories, not security boundaries.

The same rule exposes common surprises:

  • Claude monthly API credits cannot rescue an interactive Claude Code session at a plan limit. That session needs plan allowance, usage credits, an available reset, or another connected account.
  • A subscription automation can pause at a plan window. Claude Code 2.1.234 and later can wait for a reset and continue when autoContinueAtUsageLimit is enabled, while Codex can finish its active turn subject to fair-use limits. The next step still needs available allowance, credits, or a reset.
  • A Fable run on Claude Pro uses credits immediately because Fable is outside that plan's included allowance.
  • A paid Codex reset moves the weekly schedule. A Friday refresh purchased forward on Tuesday becomes a refresh seven days after the first Work or Codex request following the reset.
  • CI on a person's subscription competes with that person's interactive work for the same allowance. An API key with an explicit spend limit keeps automation on its own meter.

Where a run lands in November 2026

RunMeterReset, expiry, or continuationPrice basis
Claude Code, Pro or Max sign-inSubscription allowanceFive-hour and weekly limits; a capped wrap-up may finish the current stepFlat plan fee
Claude Code, verified Ultra sign-inSubscription allowanceWeekly limit, with no five-hour limitFlat plan fee
Claude Code on Fable, Max, Ultra, or Team PremiumSubscription allowance, up to the Fable sublimitFable can use up to 50% of the regular weekly allowance; then usage credits or another modelFlat plan fee
Claude Code on Fable, Pro or Team StandardUsage creditsCredit balance and optional monthly spend limitStandard API rates
Claude Agent SDK or claude -p, plan sign-inSubscription allowanceSame plan windowsFlat plan fee
Claude Agent SDK or claude -p, linked Anthropic API keyIncluded monthly API credits first, then other API billingIncluded credits expire each billing cyclePer token at applicable API rates
Codex, ChatGPT sign-inShared Work and Codex allowanceFive-hour estimates on Plus and Business Standard, possible weekly limits; no five-hour limit on ProFlat plan fee
Codex after included usage, eligible Plus or ProUsage credits, or a paid instant resetCredits last 12 months; an instant reset restores allowances now and re-anchors the weekCredit rates, or the reset price shown at checkout
Codex, OpenAI API keyAPI billingNo subscription windows; API rate and spend limits applyPer token; no cloud features such as GitHub review or Slack
GitHub Copilot CLI in JetBrains Air, local or cloudThe user's Copilot plan and credits, checked by GitHubGitHub displays and limits usage; Air does not show the Copilot meterThe user's Copilot plan terms

Which should your team use?

  • Interactive daily coding: start with the subscription when its windows fit the work. Claude Pro is $20 per month, Max is $100, and Ultra is $200. ChatGPT Plus is $20, with Pro tiers at $100, $200, and $500. The flat fee is predictable, while model access, allowance, and speed eligibility vary by plan. API token prices cannot tell you how many included tasks you will finish.
  • Automation, CI, and bulk work: use API-key billing. Set workspace or account spend limits and track usage in the API or cloud console. Claude monthly API credits can fund eligible Agent SDK and claude -p jobs with a key from the linked Console organization. Eligible Batch work costs 50 percent less at both vendors. Model routing for coding agents helps assign each job to an appropriate model.
  • Overflow: choose the meter before the run. Usage credits turn a plan stop into metered spend with optional limits. A paid Codex reset restores allowance immediately and moves the weekly schedule. Check both the remaining included allowance and credit balance before a long unattended run.

Where AQ fits

AQ is the multiplayer coding harness where teams run coding agents like Claude Code and Codex together in shared live workspaces, in their own cloud. Each person connects their own Claude, OpenAI, or Cursor subscription. A Codex thread runs the real Codex CLI with the connected account that person selects, and AQ never marks up usage on that subscription. OpenAI still displays and enforces its allowance, credits, resets, and speed eligibility.

AQ's built-in agent can use a connected subscription or AQ models. AQ model usage is billed in AQ credits at the per-token price shown before model selection, and each AQ Pro seat includes $10 of AQ credits a month. Persistent sessions and isolated git worktrees run on team-owned or AQ-managed machines, while teammates share the live workspace to review and steer the work. Running Codex in AQ covers the connection model, and keeping Codex running after closing your laptop covers persistence. Running Codex on a cloud VM explains the machine choice.

The Free plan runs agents on your own Mac with the AQ Mac app. The AQ Pro plan is $50 per user per month during early access, with team-owned cloud machines or a dedicated always-on AQ-managed machine.

Frequently asked questions

What is the difference between subscription credits and API credits?

Subscription credits sit on a paid Claude or ChatGPT plan and pay for supported usage after the plan's included allowance. API credits and API-key billing sit in a developer or cloud account and pay for requests made with that key. Claude's monthly API credits on Max, Ultra, and Team are API-side benefits and cannot pay for interactive Claude Code or subscription usage credits.

Can I use the monthly API credits from my Claude plan in Claude Code?

No. Monthly API credits on Max, Ultra, and Team cover eligible Claude Platform work with an API key from the linked Console organization. They do not cover interactive Claude Code, extra usage in Claude or Claude Code, or usage credits. The Claude Code GitHub Action, IDE extensions, and desktop app count as Claude Code even with -p.

Does the Claude Agent SDK use my subscription or API credits?

The credential decides. A plan sign-in uses subscription allowance. An API key from a Console organization linked to Max, Ultra, or Team uses that plan's monthly API credits first, then other API billing. The separate Agent SDK credit announced in June is unavailable.

Does Fable in Claude Code use my plan or usage credits?

On Max, Ultra, Team Premium, and premium legacy seat-based Enterprise, Fable is included up to 50% of the regular weekly allowance. On Pro, Team Standard, and standard legacy seat-based Enterprise, Fable uses subscription usage credits from the first request. With an API key, Fable 5.1 is $10 per million input tokens and $50 per million output at the Standard API rate as of November 8, 2026.

Codex credits vs API: what happens when my ChatGPT plan hits its Codex limit?

Codex can continue the active turn subject to fair-use limits. Afterward, eligible Plus and Pro accounts can use purchased subscription credits, buy an instant reset, or redeem a banked reset if one is available. Credits pay for supported usage after included allowance. An instant reset restores both windows now and starts a new week with the next Work or Codex request. An API key bills per token without subscription windows and without cloud features such as GitHub review and Slack.

Which meter does GitHub Copilot use in JetBrains Air?

Copilot tasks in Air use the user's Copilot plan and credits. GitHub checks and limits that usage, while Air does not display or cap it. Local tasks require a Copilot subscription. Cloud tasks require Air Teams eligibility and a Copilot subscription, and JetBrains' current product page also says a JetBrains AI subscription is required for cloud runs.

Is it cheaper to run Codex on a ChatGPT plan or an API key?

A plan has a flat fee and usage windows; an API key has per-token billing, API rate limits, and configurable spend controls. Use the plan when its allowance fits interactive work, and use a key for automation that should stay off a person's subscription meter. API token prices cannot estimate included subscription tasks. ChatGPT Plus is $20 per month and Pro tiers are $100, $200, and $500 as of November 8, 2026.

Do unused credits roll over to the next month?

Claude monthly API credits expire at the end of each billing cycle. ChatGPT usage credits expire 12 months after purchase. Claude usage credits purchased before December 7, 2026 generally do not expire; later purchases generally expire after 12 months, with jurisdiction-specific differences. Subscription allowances themselves do not roll over.