# Gemini CLI alternatives after the June 2026 change

> Gemini CLI alternatives by sign-in: Antigravity CLI for a personal Google account, a paid key to keep Gemini CLI, or Claude Code, Codex and Qwen Code.

Source: https://shuriken.sh/compare/gemini-cli-alternatives

The Gemini CLI alternative depends on how you sign in. A personal Google account, free or on Google AI Pro or Ultra, now gets Google's Antigravity CLI; a paid Gemini API key or a Code Assist licence keeps Gemini CLI working; and Claude Code, Codex, Qwen Code and OpenCode are the options from other vendors.

By Shuriken Updated 27 October 2026 7 min read

**Contents**

We make Shuriken. We tried to be fair; corrections welcome at office@shuriken.sh.

## Quick answer #

The right Gemini CLI alternative depends on how you signed in before 18 June 2026. With a personal Google account, free or on Google AI Pro or Ultra, Google's own replacement is Antigravity CLI. With a paid Gemini API key or a Code Assist licence, you can keep Gemini CLI. To leave Google's tools, look at Claude Code, Codex, Qwen Code or OpenCode.

That split comes from Google. Its 19 May 2026 announcement says Gemini CLI would stop serving Google AI Pro and Ultra and the free Gemini Code Assist for individuals on 18 June, while Code Assist Standard and Enterprise licences keep their access and "Gemini CLI will remain accessible via paid Gemini and Gemini Enterprise Agent Platform API keys" ([Google Developers Blog](https://developers.googleblog.com/en/an-important-update-transitioning-gemini-cli-to-antigravity-cli/)). We read every page cited below on 24 October 2026.

## Gemini CLI alternatives at a glance #

| Agent | Signs in with | Takes a Gemini API key? | Source code |
| --- | --- | --- | --- |
| Antigravity CLI ( agy ) | A personal Google account on the Free, Pro or Ultra plan, or a business account through Google Cloud ([Antigravity](https://antigravity.google/docs/install)) | Yes, with "modelProvider": "gemini" in its settings | Not published |
| Gemini CLI, kept | A Code Assist Standard or Enterprise licence, or a paid Gemini or Agent Platform API key | Yes, a paid one | [Apache-2.0](https://github.com/google-gemini/gemini-cli) |
| Claude Code | Claude Pro, Max, Team or Enterprise, a Claude Console account, or Amazon Bedrock, Google Cloud's Agent Platform or Microsoft Foundry ([Anthropic](https://code.claude.com/docs/en/authentication)) | No | ["All rights reserved"](https://github.com/anthropics/claude-code/blob/main/LICENSE.md) |
| Codex CLI | ChatGPT Free, Go, Plus, Pro, Business, Edu or Enterprise, or an OpenAI API key ([OpenAI](https://learn.chatgpt.com/docs/pricing)) | No | [Apache-2.0](https://github.com/openai/codex) |
| Qwen Code | An Alibaba Cloud Coding Plan, Token Plan or QwenCloud key, or another provider's key ([Qwen Code](https://qwenlm.github.io/qwen-code-docs/en/users/configuration/auth/)) | Yes, through its gemini provider | [Apache-2.0](https://github.com/QwenLM/qwen-code) |
| OpenCode | A key from one of "75+ LLM providers", or a local model ([OpenCode](https://opencode.ai/docs/providers/)) | Yes, through Models.dev's Google entry | [MIT](https://github.com/anomalyco/opencode) |

## What replaced Gemini CLI for personal Google accounts #

Antigravity CLI did. The Gemini CLI repository opens with it: "Unpaid tier and Google One users: Gemini CLI was replaced by Antigravity CLI on June 18th, 2026" ([GitHub](https://github.com/google-gemini/gemini-cli)). The command is agy, and on macOS or Linux it installs with curl -fsSL https://antigravity.google/cli/install.sh | bash ([getting started](https://antigravity.google/docs/getting-started?tab=cli)).

It takes the account Gemini CLI now refuses. Google's install page has one line for it: "Complete the browser-based OAuth flow using your personal Google Account (Free, Pro, or Ultra plan)." The quota is shaped differently from Gemini CLI's old daily count, though. Google's [plans page](https://antigravity.google/docs/plans) gives Google AI Ultra the largest quota, "refreshed every five hours", Pro a quota "refreshed every five hours until the weekly limit is reached", and accounts without Pro or Ultra "A meaningful quota, refreshed weekly". It gives no numbers.

Antigravity CLI is a different program, written in Go, not Gemini CLI under a new name. How the two compare on config, MCP servers, extensions and migration steps is in [Gemini CLI vs Antigravity CLI](https://shuriken.sh/compare/gemini-cli-vs-antigravity-cli), so we leave it out here.

## Keeping Gemini CLI: a paid key or a Code Assist licence #

Gemini CLI still works if you pay Google by another route, and Google still lists two.

A Gemini Code Assist Standard or Enterprise licence comes through a company's Google Cloud account. Gemini CLI's [quota page](https://geminicli.com/docs/resources/quota-and-pricing/) gives it 1,500 model requests per user per day on Standard and 2,000 on Enterprise.

A paid Gemini API key is the route for one person. Billing sits on the Google Cloud project behind the key: Tier 1 needs "an active billing account" linked to it, and Google applies rate limits "per project, not per API key" ([Gemini API rate limits](https://ai.google.dev/gemini-api/docs/rate-limits)). The Gemini API has an unpaid tier, and Gemini CLI's quota page still lists 250 requests a day for an unpaid key on the Flash model only, but Google's announcement names only paid keys. We couldn't confirm that an unpaid key keeps working, so plan on a paid one.

What each sign-in allowed, before and after June, is in our [Gemini CLI free tier guide](https://shuriken.sh/guides/gemini-cli-free-tier-limits).

## Leaving Google: Claude Code, Codex, Qwen Code #

### Claude Code #

Claude Code runs Anthropic's Claude models. You sign in with a Pro, Max, Team or Enterprise plan, or a Claude Console account billed per token ([Anthropic](https://code.claude.com/docs/en/authentication)). Claude's free plan doesn't include it ([pricing](https://claude.com/pricing)). A company already on Google Cloud can also run it through Google Cloud's Agent Platform, set up with environment variables and no browser login. Our [Claude Code vs Gemini CLI comparison](https://shuriken.sh/compare/claude-code-vs-gemini-cli) puts the two side by side on limits and price.

### Codex #

Codex comes with every ChatGPT plan, from Free to Enterprise, and OpenAI's pricing page describes the free one as "Explore Codex capabilities on quick coding tasks" ([OpenAI](https://learn.chatgpt.com/docs/pricing)). It also takes an OpenAI API key, billed at API prices. Like Gemini CLI, it's open source under Apache-2.0. If you already pay for ChatGPT, it's the quickest switch; Codex vs Gemini CLI has the limits and the config differences.

### Qwen Code vs Gemini CLI #

Qwen Code is the closest thing to Gemini CLI you can install today, because it began as Gemini CLI's code. Its README says the project "was originally based on Google Gemini CLI v0.8.2", and that from Qwen Code v0.1 on "we stopped syncing with upstream and began independent development" ([GitHub](https://github.com/QwenLM/qwen-code)). The command is qwen, and npm install -g @qwen-code/qwen-code@latest installs it (Node.js 22 or later).

Its free sign-in is gone. Qwen Code's auth page says the "Qwen OAuth free tier was discontinued on 2026-04-15", so it now runs on an Alibaba Cloud Coding Plan (a monthly subscription), a Token Plan, a QwenCloud API key, or another provider's key. One of those providers is Gemini: its gemini provider reads GEMINI_API_KEY and GEMINI_MODEL ([Qwen Code auth](https://qwenlm.github.io/qwen-code-docs/en/users/configuration/auth/)).

Shuriken runs Claude Code, Codex, Gemini CLI and 64 more agents side by side, with your own sign-ins.

[Download](https://shuriken.sh/download)

## Keep your Gemini key, change the agent #

If what you liked about Gemini CLI was the Gemini models, a paid Gemini API key is the part that moves with you. Three agents besides Gemini CLI take one.

Antigravity CLI uses it once you set "modelProvider": "gemini" in ~/.gemini/antigravity-cli/settings.json and export GEMINI_API_KEY. Google warns that "Only setting a GEMINI_API_KEY environment variable on its own has no effect" ([Antigravity](https://antigravity.google/docs/install)).

Qwen Code takes it through its gemini provider, as above.

OpenCode takes it too. Its provider docs say it uses Models.dev to support "75+ LLM providers", and Models.dev's Google entry reads GEMINI_API_KEY, GOOGLE_API_KEY or GOOGLE_GENERATIVE_AI_API_KEY ([Models.dev](https://models.dev/api.json)). OpenCode's own docs page documents Google Vertex AI, not the Gemini API key, so check the provider list in /connect before you count on it.

The key's limits don't change with the agent. They belong to the Google Cloud project, so two agents on one key share one quota.

## Is there a free alternative to Gemini CLI? #

Three of these have a free way in on their vendor's own pages, as of 24 October 2026. Antigravity CLI signs in a free personal Google account, with a quota Google says is refreshed weekly. Codex is in ChatGPT Free for quick coding tasks. OpenCode's Console lists some models as free "for a limited time", though its setup steps still have you sign in, add billing details and credits, and copy an API key ([OpenCode Console](https://opencode.ai/v2/docs/console/models/)). Claude Code needs a paid plan or a Console account. Qwen Code's free tier ended in April 2026, so it runs on whichever provider's key you give it.

## Where Shuriken is different #

Each agent above works from one sign-in or key per session, in its own terminal. Shuriken is a harness: it runs Gemini CLI, Antigravity, Claude Code, Codex, Qwen Code and OpenCode among its 67 [coding agents](https://shuriken.sh/features/coding-agents), on your own computers, with your own plans and keys. Every chat but the Main chat gets its own branch in its own git worktree, so a Gemini CLI chat can work next to a Claude Code chat and a Codex chat in one project without editing the same files.

For Gemini CLI, each paid Gemini API key or licensed Google sign-in you add is its own source, and each sign-in keeps its own folder, so a second one never replaces the first. Shuriken's hot swapping moves your chats to another of your accounts or sources when one nears its limit. A Gemini CLI chat moves when the source it uses reports a limit: at the end of its current turn, it goes on with another of your Gemini sources ([source switching](https://shuriken.sh/features/source-switching)). A chat that runs on one API key can move to your next key; a chat on a sign-in moves to a key only if you turn on "Switch to API keys", which is off by default and stops each fallback run at a $25 spend cap.

Antigravity chats use the sign-in agy already holds. Shuriken doesn't add them as sources, so it doesn't move them between accounts. Shuriken can't bring back Gemini CLI for a personal Google account either. Add only accounts and keys you own and are entitled to use; providers' terms may not allow sharing a subscription sign-in.

## Pricing #

As published on 24 October 2026, in US dollars:

| Agent | Cheapest way in |
| --- | --- |
| Antigravity CLI | A free personal Google account; Google's plans page lists "the CLI" in every plan. Pro and Ultra add more quota |
| Gemini CLI | A paid Gemini API key, billed per token, or a Code Assist licence through your company |
| Claude Code | Claude Pro, $20 a month billed monthly or $17 a month billed yearly; Max from $100 |
| Codex CLI | ChatGPT Free for quick tasks; Go $8, Plus $20, Pro from $100 a month |
| Qwen Code | Free to install; you pay the provider whose key you use |
| OpenCode | Free to install; some Console models free for a limited time, otherwise you pay the provider whose key you use |

If you hold more than one paid Gemini key, or Gemini next to a Claude or ChatGPT plan, [download Shuriken](https://shuriken.sh/download) and add each as a source.

Share

[X](https://x.com/intent/post?url=https%3A%2F%2Fshuriken.sh%2Fcompare%2Fgemini-cli-alternatives&text=Gemini%20CLI%20alternatives%20after%20the%20June%202026%20change)[LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fshuriken.sh%2Fcompare%2Fgemini-cli-alternatives)[Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fshuriken.sh%2Fcompare%2Fgemini-cli-alternatives&t=Gemini%20CLI%20alternatives%20after%20the%20June%202026%20change)[Reddit](https://www.reddit.com/submit?url=https%3A%2F%2Fshuriken.sh%2Fcompare%2Fgemini-cli-alternatives&title=Gemini%20CLI%20alternatives%20after%20the%20June%202026%20change)[E-mail](mailto:?subject=Gemini%20CLI%20alternatives%20after%20the%20June%202026%20change&body=https%3A%2F%2Fshuriken.sh%2Fcompare%2Fgemini-cli-alternatives)

## Sources

- [Google Developers Blog: Transitioning Gemini CLI to Antigravity CLI](https://developers.googleblog.com/en/an-important-update-transitioning-gemini-cli-to-antigravity-cli/) (accessed 24 October 2026)
- [Gemini CLI README (GitHub)](https://github.com/google-gemini/gemini-cli) (accessed 24 October 2026)
- [Gemini CLI: Quotas and pricing](https://geminicli.com/docs/resources/quota-and-pricing/) (accessed 24 October 2026)
- [Gemini API: Rate limits](https://ai.google.dev/gemini-api/docs/rate-limits) (accessed 24 October 2026)
- [Antigravity: Install and sign in](https://antigravity.google/docs/install) (accessed 24 October 2026)
- [Antigravity: Plans](https://antigravity.google/docs/plans) (accessed 24 October 2026)
- [Antigravity: Getting started (CLI)](https://antigravity.google/docs/getting-started?tab=cli) (accessed 24 October 2026)
- [Claude Code: Authentication](https://code.claude.com/docs/en/authentication) (accessed 24 October 2026)
- [Claude pricing](https://claude.com/pricing) (accessed 24 October 2026)
- [anthropics/claude-code on GitHub: LICENSE.md](https://github.com/anthropics/claude-code/blob/main/LICENSE.md) (accessed 24 October 2026)
- [OpenAI: Codex pricing](https://learn.chatgpt.com/docs/pricing) (accessed 24 October 2026)
- [openai/codex on GitHub](https://github.com/openai/codex) (accessed 24 October 2026)
- [QwenLM/qwen-code on GitHub (README)](https://github.com/QwenLM/qwen-code) (accessed 24 October 2026)
- [Qwen Code: Authentication](https://qwenlm.github.io/qwen-code-docs/en/users/configuration/auth/) (accessed 24 October 2026)
- [OpenCode: Providers](https://opencode.ai/docs/providers/) (accessed 24 October 2026)
- [OpenCode: Models (OpenCode Console)](https://opencode.ai/v2/docs/console/models/) (accessed 24 October 2026)
- [Models.dev: provider and model data (api.json)](https://models.dev/api.json) (accessed 24 October 2026)
- [anomalyco/opencode on GitHub](https://github.com/anomalyco/opencode) (accessed 24 October 2026)

## Frequently asked questions

**What replaced Gemini CLI?**

For personal Google accounts, Antigravity CLI, run as agy. The Gemini CLI README says: "Unpaid tier and Google One users: Gemini CLI was replaced by Antigravity CLI on June 18th, 2026." Gemini CLI itself still runs on a Code Assist Standard or Enterprise licence or a paid Gemini API key.

**Can I still use Gemini CLI with a personal Google account?**

Not by signing in with it. Since 18 June 2026 Gemini CLI no longer serves the free Gemini Code Assist for individuals or Google AI Pro and Ultra, so a sign-in that fails every time is that change, not a quota. A paid Gemini API key still runs it.

**What is the Gemini CLI alternative for Google AI Pro?**

Antigravity CLI. Google's install page signs in a personal Google account on the Free, Pro or Ultra plan, and its plans page says Pro's quota refreshes every five hours until a weekly limit is reached.

**Is Qwen Code a fork of Gemini CLI?**

Its README doesn't use the word fork. It says the project "was originally based on Google Gemini CLI v0.8.2", and that from Qwen Code v0.1 on it stopped syncing with upstream and is developed on its own.

**Is there a free alternative to Gemini CLI?**

Antigravity CLI signs in a free personal Google account, with a quota Google says is refreshed weekly, and Codex is included in the free ChatGPT plan for quick coding tasks. OpenCode's Console lists some models as free for a limited time. Qwen Code's free Qwen OAuth tier ended on 15 April 2026.

Every coding agent

67 coding agents, one harness.

Run Claude Code, Codex, Gemini CLI and the rest on your own computers, with the sign-ins you already have.

[Download](https://shuriken.sh/download)

[Other platforms](https://shuriken.sh/download#main)

## Keep reading

- [AGENTS.md vs CLAUDE.md: one file for every agent?: Comparison 27 Oct 2026 6 min read AGENTS.md vs CLAUDE.md: Codex reads AGENTS.md, Claude Code reads it when there is no CLAUDE.md or through @AGENTS.md, Gemini CLI once you list it.](https://shuriken.sh/compare/agents-md-vs-claude-md)
- [Claude Code vs Codex CLI (2026): Comparison 27 Oct 2026 6 min read Claude Code and Codex CLI side by side from each vendor's docs: plans, limits, MCP, platforms and licence. No made-up benchmarks, and how to run both.](https://shuriken.sh/compare/claude-code-vs-codex)
- [Shuriken vs the Codex app (2026): Comparison 27 Oct 2026 6 min read The Codex app is OpenAI's own, with Cloud tasks and schedules. Shuriken runs Codex beside Claude Code and 65 more agents, across your ChatGPT accounts.](https://shuriken.sh/compare/codex-app)
- [Shuriken vs Cursor agents (2026): Comparison 27 Oct 2026 5 min read Cursor's cloud agents run in Cursor's VMs, billed to a Cursor plan. Shuriken runs the agents you pick on your own machines, on your own plans. Compared.](https://shuriken.sh/compare/cursor)
- [Shuriken and OpenCode: use them together: Comparison 27 Oct 2026 6 min read OpenCode is an open-source coding agent with its own desktop app. Shuriken is a harness that runs it next to Claude Code and Codex, on your machines.](https://shuriken.sh/compare/opencode)
- ["Running scripts is disabled" for codex, claude or gemini: Guide 27 Oct 2026 4 min read codex.ps1 cannot be loaded because PowerShell blocks the .ps1 shim npm writes. Type codex.cmd, or allow RemoteSigned for your own Windows account.](https://shuriken.sh/guides/running-scripts-is-disabled-agent-cli)

## Free tools

- [Claude limit reset tracker](https://shuriken.sh/tools/limit-resets/claude)
- [Codex limit reset tracker](https://shuriken.sh/tools/limit-resets/codex)
