# acp: Automatically install gemini under Zed's data dir \(\#37054\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8697b91ea09e612b5d5c088b5fe548fa8c1084c0)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8697b91ea09e612b5d5c088b5fe548fa8c1084c0

Requested commit: 8697b91ea09e612b5d5c088b5fe548fa8c1084c0

Commit: 8697b91ea09e612b5d5c088b5fe548fa8c1084c0

Tree: 1dfec68f7c8a76525d127a72873788599aa6c6aa

Author: Cole Miller

Committer: GitHub

## Message

````
acp: Automatically install gemini under Zed's data dir (#37054)

Closes: https://github.com/zed-industries/zed/issues/37089

Instead of looking for the gemini command on `$PATH`, by default we'll
install our own copy on demand under our data dir, as we already do for
language servers and debug adapters. This also means we can handle
keeping the binary up to date instead of prompting the user to upgrade.

Notes:

- The download is only triggered if you open a new Gemini thread
- Custom commands from `agent_servers.gemini` in settings are respected
as before
- A new `agent_servers.gemini.ignore_system_version` setting is added,
similar to the existing settings for language servers. It's `true` by
default, and setting it to `false` disables the automatic download and
makes Zed search `$PATH` as before.
- If `agent_servers.gemini.ignore_system_version` is `false` and no
binary is found on `$PATH`, we'll fall back to automatic installation.
If it's `false` and a binary is found, but the version is older than
v0.2.1, we'll show an error.

Release Notes:

- acp: By default, Zed will now download and use a private copy of the
Gemini CLI binary, instead of searching your `$PATH`. To make Zed search
your `$PATH` for Gemini CLI before attempting to download it, use the
following setting:

```
{
  "agent_servers": {
    "gemini": {
      "ignore_system_version": false
    }
  }
}
```
````

## Parents

- [47aaaa8bcffeb00756a824f0628f48ae6af782af](https://git.cafe/gitcafe/zed/commit/47aaaa8bcffeb00756a824f0628f48ae6af782af?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8697b91ea09e612b5d5c088b5fe548fa8c1084c0?format=markdown)
