010 Coding Collective

010 Coding Collective

The best harness for Gemini: Antigravity CLI, Gemini CLI, or something else?

Google has two agents of its own for Gemini, and which one you need depends on how you sign in. When to pick Antigravity CLI, when Gemini CLI, what Google AI Pro gets you, and when another harness fits better.

AI AI Agents Gemini Gemini CLI Antigravity CLI Google AI Pro OpenCode Cursor GitHub Copilot AI-Assisted Coding

Two agents from one maker

If you want to build with Gemini, Google alone already offers two terminal agents. They look alike, read the same instructions file, and have almost the same name, but each is built for a different kind of account.

Choose by your account

With a personal Google account, free or on Google AI Pro or Ultra, you work in Antigravity CLI. With Gemini Code Assist, an API key, or Vertex AI, Gemini CLI is your agent. A harness for many models only pays off when you want to use Gemini alongside other models.

Setup makes the difference

Whichever agent you pick, the result depends on a good GEMINI.md file, tests the agent can run on its own, and tasks small enough to review.

The short answer

The best harness for Gemini is Google’s own agent. Which one that is depends on how you sign in. With a personal Google account, free or on Google AI Pro or Ultra, it’s Antigravity CLI. If you work through your employer’s Gemini Code Assist, with an API key, or through Vertex AI, it’s Gemini CLI.

If you want to use Gemini alongside other models, it also runs in OpenCode, Cline, Aider, Cursor, and GitHub Copilot. That’s a choice for flexibility, not for better results from Gemini itself.

Does Gemini have its own harness?

Yes, two of them. A harness is the software around a language model: the tools it uses to read files and run commands, the instructions it gets, and the limits it works within. Gemini is the model; the harness decides what it can do in your project. More on that in what is an AI harness.

Google built Gemini CLI first, an open-source terminal agent under the Apache 2.0 license. Since June 18, 2026 there’s also Antigravity CLI (agy), which shares its agent with the Antigravity desktop app and editor. Both read your project’s conventions from GEMINI.md, and both can edit files, run commands, and search the web.

Gemini is the model. Antigravity CLI and Gemini CLI are the harnesses Google built around it.

Antigravity CLI or Gemini CLI: choose by your account

The difference between the two isn’t what they can do, but who they’re for. Google ties each agent to a kind of account.

Antigravity CLI Gemini CLI
For whom Anyone with a personal Google account: free, Google AI Pro, or Ultra. Teams on Gemini Code Assist, and anyone working with an API key or Vertex AI.
Work account A Google Workspace account from your employer gives no access. Gemini Code Assist Standard or Enterprise, including for GitHub.
Conventions in GEMINI.md and AGENTS.md. GEMINI.md.
Also as an app The same agent runs in the Antigravity desktop app and editor. Terminal only, plus extensions and automation.
Open source No. Yes, under Apache 2.0.

If you’re moving over from Gemini CLI, Antigravity CLI offers to import your settings. GEMINI.md and AGENTS.md work unchanged, agy plugin import gemini converts extensions, and your MCP connections move to mcp_config.json. Antigravity CLI can’t yet do everything Gemini CLI can, so check that the features you rely on are there. More on both in what is Gemini CLI.

What Gemini costs as a harness

Both agents are free to install. What you pay for is model usage, and that’s where they differ.

1

Free Google account

Antigravity CLI gives you an amount of usage that refills every week, with a Flash model. Enough to try it out, not enough for a full working day.

2

Google AI Pro or Ultra

More usage and the stronger Gemini models in Antigravity CLI. If you already pay for AI Pro for something else, this is the cheapest route to a serious Gemini agent.

3

Free Google AI Studio key

In Gemini CLI you then get only a Flash model with a daily limit. Since March 2026 the Pro models are paid-only through the API.

4

Paid API key or Vertex AI

You pay per use. Useful for teams that want to track costs per project, or already buy Gemini through Google Cloud.

Gemini in another harness

Gemini also runs in harnesses Google didn’t build. That’s the better choice in a few clear cases: you want to pick the model per task, your team works with different models, or you want open source and the option to work locally.

Google's agent OpenCode, Cline, Aider Cursor, GitHub Copilot
Tuned to Gemini Most closely: Google built the model and the agent together. Broadly: the same tools for every model. Broadly: Gemini is one model on the list.
How you pay Google account, AI Pro or Ultra, Code Assist, or API. Usually an API key, per use. Within your Cursor or Copilot subscription.
Other models No, Gemini only. Yes, including local models. Yes, from several providers.
Fits Anyone who mostly works with Gemini. Anyone who wants to switch per task or work locally. Teams already working in that editor.

When a new Gemini model comes out, Google’s agent is usually ahead: it works on release day, while other harnesses sometimes need a while to tune their tools. To compare Gemini with GPT and Claude, read which AI harness fits which model. For a wider overview, see the most popular AI harnesses.

How to get the most out of Gemini as an agent

Picking the harness is one step. What decides the result after that is how you set it up for your own project.

1

Write a GEMINI.md

Put it in your project root: how to run the tests and the build, which conventions you follow, and what the agent must never touch. Both agents read it at every start.

2

Point to AGENTS.md

If you also use other harnesses, keep your conventions in AGENTS.md and point to it from GEMINI.md. Your instructions then come along when you switch.

3

Let the agent test its own work

An agent that can run your tests finds its own mistakes. Without tests you're relying on what it tells you.

4

Keep tasks small

One feature or one bug at a time. The smaller the change, the faster you see whether it's right.

Setting up the environment around the model is called harness engineering, and it often matters more than which agent you pick.

Conclusion: Google’s agent, chosen by your account

For Gemini, Google’s own agent is the best place to start. With a personal Google account or Google AI Pro that’s Antigravity CLI; with Gemini Code Assist, an API key, or Vertex AI it’s Gemini CLI. If you want to use Gemini alongside other models or work locally, OpenCode, Cline, Aider, Cursor, or GitHub Copilot fits better.

Frequently Asked Questions

What is the best harness for Gemini?

Google's own agent. With a personal Google account, free or on Google AI Pro or Ultra, that's Antigravity CLI. With Gemini Code Assist, an API key, or Vertex AI, it's Gemini CLI. If you want to use Gemini alongside other models, it also runs in OpenCode, Cline, Aider, Cursor, and GitHub Copilot.

Does Gemini have a harness?

Yes. Google has two agents of its own for Gemini: Antigravity CLI for personal Google accounts, and Gemini CLI for Gemini Code Assist, API keys, and Vertex AI. Both read your project's conventions from GEMINI.md.

Which harness comes with Google AI Pro?

Antigravity CLI. With Google AI Pro or Ultra you get more usage and the stronger Gemini models there than on a free account. Gemini CLI is meant for Gemini Code Assist, API keys, and Vertex AI.

Can I still use Gemini CLI?

Yes. Gemini CLI remains available for teams on Gemini Code Assist and for anyone working with an API key or through Vertex AI. With a personal Google account, free or on AI Pro or Ultra, Google has pointed you to Antigravity CLI since June 2026.

Does Gemini work in Cursor or GitHub Copilot?

Yes, Gemini is on the model list of both, within their own subscription. That's handy if your team already works in that editor and uses several models. If you only work with Gemini, Google's agent is more closely tuned to the model.

Can I use Gemini as a coding agent for free?

To a point. A free Google account gives you a weekly amount of usage with a Flash model in Antigravity CLI. A free Google AI Studio key gives you a Flash model with a daily limit in Gemini CLI. For the stronger models you pay, through Google AI Pro or Ultra or through the API.

Build faster with AI without lowering the bar?

Our senior developers work with coding agents every day. Bring them onto your project, or have your team learn to use them well in a workshop.

Let's discuss your project

From AI prototypes that need to be production-ready to strategic advice, code audits, or ongoing development support. We're happy to think along about the best approach, no strings attached.

010 Coding Collective free consultation
free

Free Consultation

In 1.5 hours we discuss your project, challenges and goals. Honest advice from senior developers, no sales pitch.

1.5 hours with senior developer(s)
Analysis of your current situation
Written summary afterwards
Concrete next steps