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.
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.
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.
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.
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.
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.
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.
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.
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.
What is the best harness for Gemini?
Does Gemini have a harness?
Which harness comes with Google AI Pro?
Can I still use Gemini CLI?
Does Gemini work in Cursor or GitHub Copilot?
Can I use Gemini as a coding agent for free?
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.