Antigravity CLI, the agy command, is Google's terminal coding agent: the successor to Gemini CLI, built on the same agent as the Antigravity editor. It is good at what you'd expect from a Gemini agent: reading a large codebase at once, editing files, running commands. What it doesn't do on its own is keep working after you close your laptop. Lark now runs agy as a harness, so an agent can use it on its own cloud machine, start from a schedule or a webhook, and report back when it's done. That makes it one more agent that can own a job in a company that runs itself.
What the Antigravity harness does
When an agent's harness is set to Antigravity CLI (agy), each run works like this:
- Installs agy on the agent's machine with Google's installer, the first time it's needed. A kept machine already has it.
- Configures it for Gemini. Lark writes your Gemini key and model into agy's settings, and turns off slash commands so text in a task can't be read as one.
- Runs it headless:
agy -p "<task>" --model <model> --dangerously-skip-permissions. The task is passed exactly as written. - Streams the output into the run's log in the dashboard, and returns agy's exit code as the run's result.
Two details make this work unattended. agy prints nothing when it isn't attached to a terminal, so Lark runs it inside a pseudo-terminal and strips the terminal control codes from the log. And permission prompts are skipped because nobody is there to answer them: the boundary is the machine itself, a microVM that holds only the repository, files and keys you gave that agent.
Everything else about a Lark agent still applies: a repository cloned and ready, a real browser, run files you can download, triggers, budgets and run limits.
Getting started
You need a Gemini API key from Google AI Studio. agy runs on your own key, so the model usage is billed by Google, not Lark.
- Add the key. In the dashboard, open Settings, then Model keys, and add it under Google Gemini.
- Create an agent. Pick Google Gemini as the provider and a Gemini model.
- Choose the harness. Under Harness, select Antigravity CLI (agy). The picker shows its icon so you can tell harnesses apart at a glance.
- Give it a task and start a run, or add a trigger.
Over the API, the same agent is one request:
curl -X POST https://dashboard.larkbot.app/api/agents \
-H "Authorization: Bearer $LARK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "agy-maintainer",
"description": "Keeps the repo healthy with Antigravity CLI",
"model": { "provider": "gemini", "model": "gemini-2.5-pro" },
"harness": { "type": "antigravity" },
"sandbox": { "type": "fly", "persistent": true },
"secrets": ["GITHUB_TOKEN"],
"timeoutSec": 3600
}'
Use whichever Gemini model your key can call. Setting persistent keeps the machine between runs, so agy, the cloned repository and installed dependencies are already there next time.
Examples of what agy agents do well
A nightly repository chore
A schedule trigger at 2am with a task like: "Update the dependencies that have patch releases, run the tests, and open a draft pull request with what changed. If a test fails, say which one and stop." The agent clones the repo, works on a branch, and the PR is waiting in the morning. This is the same pattern as Lark's overnight bug hunter, on Google's agent.
Fixing CI when it breaks
Point a GitHub webhook at the agent for failed workflow runs. agy reads the failing log, reproduces the failure on the machine, fixes it and pushes to the branch. See the CI fixer guide for the trigger setup; only the harness changes.
Turning a ticket into a pull request
Gemini's long context suits tickets that touch many files. Pair an agy agent with a Linear webhook, as in the ticket to pull request agent, and each new issue becomes a branch with tests and a draft PR.
Research with a browser
Turn on the browser and ask for a written brief: "Compare the pricing pages of these five competitors and write a table to report.md." The report is saved as a run file you can download.
Picking a harness: agy, Gemini CLI, Claude Code or Codex
Lark runs several agent CLIs, and the harness picker only offers the ones your chosen model can drive:
- Antigravity CLI (agy): Google's current agent. Choose it for Gemini models.
- Gemini CLI: still supported for agents already using it.
- Claude Code: for Claude models.
- Codex: for OpenAI models.
- Lark's built-in harness: works with every provider, and can run without a machine for light tasks.
If you aren't sure, start with the built-in harness and switch later. An agent's instructions, triggers and files stay the same when you change harness. What a cloud AI agent is covers how the pieces fit together.
Current limits
- Your own Gemini key is required. Lark-provided models aren't available to agy.
- MCP servers aren't passed to agy yet. Connectors and integrations still work through the machine's tools and API, but agy doesn't see your MCP servers as its own tools. The built-in harness does.
- One model per run. agy uses the model on the agent; it doesn't switch models mid-task.
FAQ
Is Antigravity CLI the same as Gemini CLI?
No. Antigravity CLI (agy) is Google's newer terminal agent and is replacing Gemini CLI. Lark supports both as separate harnesses, so existing Gemini CLI agents keep working.
Do I pay Lark for the Gemini tokens agy uses?
No. agy runs on your own Gemini key, so Google bills the model usage. Lark charges for the machine time, as it does for every run; see how much AI agents cost to run.
Is it safe to skip agy's permission prompts?
The run happens on an isolated microVM with only the repository, files and secrets you gave that agent, and it can be destroyed after each run. That machine is the boundary, so there's no one at a prompt to approve each command.
Can I hand work from my laptop to an agy agent?
Yes. From Claude Code or any MCP client, Lark's tools can start a run on an agy agent with your repository and uncommitted changes; see handing off tasks to cloud agents.
Start free and pick Antigravity CLI when you create your first agent.