Free Allowances for AI Coding CLIs
Checked on 2026-10-29. A free login, a paid subscription allowance, API trial credit, and a temporary promotion are different things. Vendors can change all four without changing the CLI binary.
Short Answer
If you want a coding agent at zero cost as an individual, start with Antigravity CLI (command agy). On 2026-06-18 Google moved free individual users and Google AI Pro / Ultra subscribers from Gemini CLI to Antigravity CLI. The Gemini CLI repository now says “No free tier or Google AI plans”; it serves organisations on Gemini Code Assist Standard / Enterprise. Antigravity's free plan refreshes its quota weekly, but publishes no number.
That leaves no tool in this table with both a published free quantity and a reset period. GitHub Copilot CLI has the clearest entry: the Free plan explicitly includes the CLI and AI Credits reset on the first of each month, though the amount is not published. Codex's Free plan names only the desktop app. On October 1 Grok Build still advertised a free trial, without a published size. Claude Code has no zero-payment plan for general users, and Qwen Code's former Qwen OAuth free tier has been discontinued. If you are willing to pay a little, the cheapest subscription is Muse Code at $5 a month.
Current Comparison
The table reflects the official pages as of October 29, 2026. A number goes into the table only when an official source states both its unit and its reset period; a single account's balance, frontend flags and anecdotes are not used to infer a public quota.
What the Numbers Actually Count
Even when a vendor publishes a number, its unit is rarely “commands you typed”. One prompt usually makes an agent read files, call tools and call the model several times, and each call can count against the allowance. Antigravity, Codex, Copilot and Grok Build publish no free-tier number at all. The usage page in your account tells you what is left; counting terminal submissions does not.
A long repository task, a tool-heavy loop or a large context consumes more allowance than a short question. Speed tiers multiply this further. In Codex, Fast draws included usage at 2.5× the Standard rate and Ultrafast, introduced at DevDay, at 8×. Ultrafast is limited to Pro $500 and eligible Enterprise and Edu plans.
Subscription routes and API-key routes must also remain separate:
- signing into Codex with ChatGPT uses the plan allowance shared with ChatGPT Work; an API key is billed separately by API tokens and lacks cloud-based features;
- signing into Claude Code with a paid Claude account uses shared subscription limits; CLI API keys follow the precedence rules below;
- signing into Antigravity CLI with a personal Google account uses the free or subscription quota; a Gemini API key is billed as API use;
- signing into Grok Build may use included account usage;
XAI_API_KEYinvokes the priced xAI API route; - an open-source harness such as Qwen Code can be free to install while its selected model is local, free promotional, or paid.
Claude Code authentication differs by surface. In interactive mode, the first time Claude Code finds ANTHROPIC_API_KEY it asks whether to use it; if you accept, the key takes precedence over your subscription login from then on and usage is billed to the API instead of the subscription. In -p mode it does not ask and uses the key directly. Cloud-provider or gateway credentials can take precedence over the key; check /status for the active route. Claude Code on the Web always uses subscription credentials, even if this variable is set in its sandbox.
Best Zero-Cost Starting Order
- Antigravity CLI first. The free plan explicitly includes the CLI and refreshes weekly; run a small task and see how far a week's quota goes.
- GitHub Copilot CLI if you already have a GitHub account. The Free plan explicitly includes the CLI; the account page shows the remaining AI Credits.
- Codex CLI: sign in with a Free account and see whether the CLI works for you; the pricing page names only the desktop app for Free.
- Grok Build only after confirming what the advertised trial gives your account.
- Open-source BYOK harnesses only after choosing the model endpoint; “free CLI” says nothing about inference cost.
Claude Code and Muse Code belong in the comparison, but not in the zero-payment queue; at $5 a month Muse Code is the lowest paid entry. Gemini CLI's 1,000 requests/day and Qwen Code's former 2,000 OAuth requests/day should be removed from current recommendation lists.
Verification Checklist
Before starting work that must finish within a free allowance:
- Confirm the exact official product and executable.
- Record the authentication route: consumer login, subscription, API key, or local model.
- Open the provider's usage page or run the CLI's status command where available.
- Check the reset window and whether other products share the pool.
- Disable or remove API-key fallbacks if an accidental charge would be unacceptable.
- Use a disposable repository and a small task first; a successful login does not prove enough remaining capacity for an agent loop.