Gemini CLI vs Claude Code vs Codex CLI: Check Access and Billing First
Gemini CLI consumer access has changed, Claude Code is not API-key-only, and Codex CLI is not Plus-only. Compare current access, billing, migration and permissions without relying on obsolete free quotas.
Running in the same terminal does not mean using the same login, allowance or bill. Before choosing an agent, establish which access route your account can use today, then evaluate the workflow.
Sources checked: 2026-11-18 (Asia/Shanghai). This is an official-documentation comparison, not a performance benchmark. We did not run the installers, sign in to accounts or test connectivity from mainland China. It does not identify a “best coding model.”
Check eligibility before comparing old free quotas
| What to check | Gemini CLI | Claude Code | Codex CLI |
|---|---|---|---|
| Consumer access | Requests through the former free individual, Google AI Pro and Ultra routes stopped on 2026-06-18; review Antigravity CLI migration | Eligible Claude subscriptions, Console or organization-configured cloud providers; an API key is not universally required | Local CLI supports ChatGPT sign-in or API keys; check the plan’s specific CLI surface eligibility |
| Billing and allowances | Paid Gemini / Agent Platform API-key access remains; legacy Code Assist subscriptions have separate lifecycle rules | Subscription, Console and third-party provider billing are different routes; subscription allowances are not API balances | API-key sessions have separate API bills, not ChatGPT allowances; subscription access is not unlimited tasks |
| Starting a project | Individuals should assess migration first; organizations should check contracts and renewal rules | Establish login and billing, then configure project instructions, MCP and tool permissions | Establish CLI eligibility and billing, then review permissions, models and the review workflow |
An installable client does not establish permission to call a model. A source license is not free inference either: Codex uses Apache-2.0, while the Claude Code repository’s LICENSE points to commercial terms. Do not label all three as free open-source services.
Gemini CLI: consumer migration, organizational contracts and API keys differ
Google’s 2026-05-19 announcement states that Gemini CLI stopped serving requests for individual free Code Assist, Google AI Pro and Ultra users on 2026-06-18. Historical individual request allowances are therefore not a current onboarding offer.
The announcement retains paid Gemini and Gemini Enterprise Agent Platform API-key access. It also says Antigravity CLI initially does not have one-to-one feature parity. Check project instructions, extensions, MCP, Hooks and automation before migrating; replacing an executable name is not a migration test.
Organizations also need the later Code Assist sunset and transition guidance:
- New Code Assist Standard / Enterprise sales ended on 2026-10-09. New Gemini Enterprise Standard / Plus subscriptions also no longer include that entitlement.
- Existing Code Assist subscriptions are supported through their contractual term. Annual auto-renewals can continue until 2027-01-31; monthly auto-renewals until 2027-12-31. These are renewal boundaries, not one universal shutdown day.
- Existing Gemini Enterprise subscriptions retain their Code Assist entitlement until 2027-03-31. Additional licenses for existing Code Assist subscriptions can be added until 2027-01-31.
- Code Assist model support is limited to Gemini 3.x, so the old Gemini 2.5 Pro recommendation is not current guidance for that route.
The official dates do not specify an exact timezone; we do not invent a China-time cutoff. The May announcement’s enterprise-access statement does not override the later sales, renewal and entitlement rules.
Claude Code: subscription sign-in and API billing are different routes
The authentication documentation lists Claude Pro / Max / Ultra, team or enterprise accounts, Console and organization-configured cloud providers. Running claude can start the official sign-in flow; not every user needs an API key.
Choose the billing route you intend to use. An existing subscription login does not make Console / API requests free, and a paid subscription does not guarantee unlimited or uniformly high usage. Team access also depends on administrator configuration and seat eligibility.
The official installation overview recommends native installation and also offers Homebrew, WinGet and other methods. Choose the instructions for your system, then check the version and login state. For example, macOS Homebrew users can follow:
brew install --cask claude-code
claude --version
claude
This is a documented installation path, not an installation we tested. Projects can use CLAUDE.md for instructions and MCP for tools; neither feature guarantees correct code or replaces permission review.
Codex CLI: desktop Free access is not a blanket CLI entitlement
The Codex authentication documentation separates ChatGPT subscription sign-in from usage-based API keys. The local CLI supports both. Plus is not the only possible access route, and API-key features are not identical to subscription or cloud features.
The current pricing page mentions Free / Go in its introduction, but the specific entries describe the relevant access as desktop app, subject to rollout. The Plus entry explicitly lists the CLI and other surfaces. The page headline alone is not evidence that every Free / Go account can use the CLI.
Usage depends on model, task complexity, context and local versus cloud execution. The old article’s fixed five-hour task estimate is not a current contractual allowance; check account usage and current plan terms. API-key requests have a separate API bill, not inclusion in a ChatGPT subscription.
The official CLI documentation and repository README offer native installers, npm and Homebrew. Users who already meet the npm environment requirements can choose the documented path:
npm install -g @openai/codex
codex
After starting, confirm the sign-in method and inspect /status, /model and /permissions. Local execution does not mean model requests stay on the device; authentication also affects the applicable data-handling terms.
Compare one small task yourself
Do not infer “reads the entire repository at once” from a fixed context-window number or permanently bind a client to one model name. Models, permissions and allowances vary with account, version and organizational configuration.
Use a separate test repository and one bounded task, such as “explain this function and add two boundary-condition tests”:
- Create a Git checkpoint and exclude real credentials and production data.
- Record the login route, selected model, permitted directories/commands and actual billing source.
- Inspect the diff yourself and run the project’s existing tests; record failures rather than judging response fluency.
- Compare completion quality, usage and operating cost without assuming one tool must be strongest or free.
This is a suggested procedure, not a benchmark we performed. Mainland China connectivity, account eligibility and payment require separate verification. We make no blanket reachable/unreachable claim and do not recommend resold accounts or unofficial relays to bypass regional rules.
Choosing a route
- Former individual Gemini CLI user: read the migration announcement and check replacement access and feature gaps rather than relying on historical free allowances.
- Existing Claude subscription or managed organization: establish CLI login and billing, then evaluate project instructions, MCP and permissions.
- Eligible ChatGPT subscription or API automation: check Codex CLI surface eligibility and separate billing; local CLI access does not include every cloud feature.
For tool-specific evidence and limits, see Gemini CLI, Claude Code and Codex CLI. Read the Claude Code LICENSE and Codex LICENSE separately from service entitlements.
🔧 Tools in This Article
💡 Recommended Plans
Claude Code + Volcano Ark Agent Plan
One-Stop Agent ToolchainWire Claude Code into Volcano Ark Agent Plan (launched 2026-05-11): Doubao-Seed for coding, Seedance/Seedream for multimodal generation, plus built-in web search / memory / Auto routing Harness tooling — all China-native. Billed in AFP credits; Medium tier (¥200) and above include a 24/7 AI companion.
Gemini CLI (Free)
Best Free Terminal Tool1000 free requests/day, Gemini 2.5 Pro with 1M token context
Ready to pick your tool?
Check the full overview and find your perfect AI coding setup in 30 seconds.
View Full Overview →📖 Related Articles
The Complete Guide to Terminal AI Coding Tools in 2026: 7 CLI Agents Compared
Terminal AI coding tools are booming! Compare Claude Code, Gemini CLI, Codex CLI, Kiro CLI, Copilot CLI, Cline CLI, and Aider across coding ability, pricing, context window, and more.
Best AI Coding Tools 2026: Mainstream Tools Reviewed & Ranked
A practical AI coding tools comparison for 2026, covering Cursor, Claude Code, Copilot, Windsurf, and other mainstream tools across coding ability, pricing, flexibility, and more.
Claude Code vs Cline 2026: Top CLI Agent vs Most Flexible VS Code Plugin
Claude Code vs Cline compared: terminal CLI vs VS Code plugin, pricing, China accessibility, Agent capabilities, and model freedom — helping you pick the right AI coding tool for your workflow.
Claude Code vs Cursor: 2026 In-Depth Comparison
Terminal CLI vs AI IDE head-to-head: coding ability, workflow, pricing, and China accessibility — find out which one fits your workflow.
📚 Related Guides
AI Coding Agents in 2026: A Practical Roadmap from Autocomplete to Cloud Teammates
As of June 2026, AI coding tools are moving from autocomplete and AI IDEs into engineered agent workflows. This guide maps the shift across Codex, Claude Code, GitHub Copilot, Gemini CLI, MCP, security, and team adoption.
Volcengine Ark Coding Plan Guide: Tiers, Agent Plan Differences, and Setup Notes
Based on the official Volcengine Ark Agent/Coding Plan export: Coding Plan is a two-tier coding-focused subscription for individual developers, while Agent Plan is the upgraded multimodal + Harness package. Covers the boundary, model/activity changes, Base URL/API key rules, and setup notes for Cline, Claude Code, OpenCode, and Codex CLI.