-
Notifications
You must be signed in to change notification settings - Fork 932
docs: migrate Gemini CLI documentation to Antigravity CLI #5252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,16 @@ | ||
| --- | ||
| title: Gemini | ||
| title: Antigravity | ||
| weight: 20 | ||
|
|
||
| --- | ||
|
|
||
| | ⚡ Requirement | Lima >= 2.0 | | ||
| |---------------|-------------| | ||
|
|
||
| This page describes how to use Lima as an sandbox for [Google Gemini CLI](https://github.com/google-gemini/gemini-cli). | ||
| This page describes how to use Lima as a sandbox for [Google Antigravity CLI](https://github.com/google-antigravity/antigravity-cli). | ||
|
|
||
| ## Prerequisite | ||
| In addition to Gemini and Lima, make sure that `limactl mcp` plugin is installed: | ||
| In addition to Antigravity CLI and Lima, make sure that `limactl mcp` plugin is installed: | ||
|
|
||
| ```console | ||
| $ limactl mcp -v | ||
|
|
@@ -28,11 +28,9 @@ limactl start --mount-only "$(pwd):w" default | |
|
|
||
| Drop the `:w` suffix if you do not want to allow writing to the mounted directory. | ||
|
|
||
| 2. Create `.gemini/extensions/lima/gemini-extension.json` as follows: | ||
| 2. Create `~/.gemini/antigravity-cli/mcp_config.json` as follows: | ||
| ```json | ||
| { | ||
| "name": "lima", | ||
| "version": "2.0.0", | ||
| "mcpServers": { | ||
| "lima": { | ||
| "command": "limactl", | ||
|
|
@@ -46,15 +44,18 @@ Drop the `:w` suffix if you do not want to allow writing to the mounted director | |
| } | ||
| ``` | ||
|
|
||
| 3. Modify `.gemini/settings.json` so as to disable Gemini CLI's [built-in tools](https://github.com/google-gemini/gemini-cli/tree/main/docs/tools) | ||
| except ones that do not relate to local command execution and file I/O: | ||
| 3. Modify `~/.gemini/antigravity-cli/settings.json` to configure the permissions granted to Antigravity CLI. For example: | ||
| ```json | ||
| { | ||
| "coreTools": ["WebFetchTool", "WebSearchTool", "MemoryTool"] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not allow the equivalents of these tools? |
||
| "permissions": { | ||
| "allow": [], | ||
| "ask": [], | ||
| "deny": [] | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't it need to allow How did you test these permissions? |
||
| } | ||
| ``` | ||
|
|
||
| ## Usage | ||
| Just run `gemini` in your project directory. | ||
| Just run `agy` in your project directory. | ||
|
|
||
| Gemini automatically recognizes the MCP tools provided by Lima. | ||
| Antigravity CLI automatically recognizes the configured MCP server provided by Lima. | ||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -51,6 +51,18 @@ lima vi "/home/${USER}.linux/.bash_profile" | |||
|
|
||||
| See also <https://github.com/Aider-AI/aider>. | ||||
| {{% /tab %}} | ||||
| {{% tab header="Antigravity" %}} | ||||
| ```bash | ||||
| lima curl -fsSL https://antigravity.google/cli/install.sh | bash | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you really test this?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm sorry I wasnt aware of this
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but please confirm how you tested this PR. |
||||
| lima agy | ||||
| ``` | ||||
|
|
||||
| Follow the guide shown in the first session for authentication. | ||||
|
|
||||
| Authentication uses your browser (or an authorization URL when running over SSH), so no additional environment variable configuration is typically required. | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "when running over SSH" is always true, no?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I took that line from the antigravity docs but yeah this will always be true in this case since the commands are executed over ssh in lima so we can change it to the same that it was before Or should we specifically mention this? |
||||
|
|
||||
| See also <https://github.com/google-antigravity/antigravity-cli>. | ||||
| {{% /tab %}} | ||||
| {{% tab header="Claude Code" %}} | ||||
| ``` | ||||
| lima sudo snap install node --classic | ||||
|
|
@@ -83,22 +95,6 @@ lima vi "/home/${USER}.linux/.bash_profile" | |||
|
|
||||
| See also <https://github.com/openai/codex>. | ||||
| {{% /tab %}} | ||||
| {{% tab header="Gemini" %}} | ||||
| ``` | ||||
| lima sudo snap install node --classic | ||||
| lima sudo npm install -g @google/gemini-cli | ||||
| lima gemini | ||||
| ``` | ||||
|
|
||||
| Follow the guide shown in the first session for authentication. | ||||
|
|
||||
| Alternatively, you can set `export GEMINI_API_KEY...` via: | ||||
| ``` | ||||
| lima vi "/home/${USER}.linux/.bash_profile" | ||||
| ``` | ||||
|
|
||||
| See also <https://github.com/google-gemini/gemini-cli>. | ||||
| {{% /tab %}} | ||||
| {{% tab header="GitHub Copilot" %}} | ||||
| ``` | ||||
| lima sudo snap install node --classic | ||||
|
|
@@ -136,7 +132,7 @@ See also <https://github.com/anomalyco/opencode>. | |||
| | ⚡ Requirement | Lima >= 2.1 | | ||||
| |----------------|-------------| | ||||
|
|
||||
| The `--sync` flag for [`limactl shell`](../reference/limactl_shell) enables bidirectional synchronization of your host working directory with the guest VM. This is particularly useful when running AI agents (like Claude, Copilot, or Gemini) inside VMs to prevent them from accidentally modifying or breaking files on your host system. | ||||
| The `--sync` flag for [`limactl shell`](../reference/limactl_shell) enables bidirectional synchronization of your host working directory with the guest VM. This is particularly useful when running AI agents (like Claude, Copilot, or Antigravity) inside VMs to prevent them from accidentally modifying or breaking files on your host system. | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line needs to be updated too
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we actually have to keep these ads (and maintain them)? There is another one for AGENTS.md |
||||
|
|
||||
| ### Comparison with `mount` | ||||
|
|
||||
|
|
||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old
/geminiURL should redirect to the new/antigravityURL?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I renamed the file to antigravity.md because the _index.md page automatically lists the pages in that directory using their front matter/title, and keeping the file as gemini.md would have been confusing given that the page now documents Antigravity CLI.
The URL doesn't redirect automatically. If we want to preserve that URL, we could add a Hugo aliases entry to the new page. I didn't do that because I wasn't sure it was necessary for this particular documentation page, especially since I couldn't find any references to the old URL in the repository. If you'd prefer to keep the old URL working, I'm happy to add the alias as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍