EveryDev.ai
Sign inSubscribe
  1. Home
  2. Tools
  3. Zed
  4. Set up Gemini CLI in Zed (5-min guide)

Set up Gemini CLI in Zed (5-min guide)

Sam Moore's avatar
Sam Moore
6mo·Hi everyone, I'm a…
  1. Open the Agent Panel
  • In Zed, press cmd-? → + → Gemini CLI. This uses Zed’s new External Agents flow over ACP. :contentReference[oaicite:12]{index=12}
  1. Install / upgrade Gemini CLI If you don’t have it, Zed can install a compatible version automatically. To install or upgrade yourself:
npm install -g @google/gemini-cli@latest

Zed requires Gemini CLI ≥ 0.2.0; if your version is too old, you’ll see an in-editor warning.

  1. Authenticate

When the Gemini panel opens, pick one:

  • Log in with Google (recommended). Zed launches a browser; tokens are handled by Gemini CLI (Zed doesn’t see your OAuth tokens).
  • API key: set GEMINI_API_KEY, or paste when prompted (securely stored in your OS keychain).
  • Vertex AI: use if your env is already configured.
  1. Optional keybinding

Bind a hotkey to start a new Gemini thread:

[
  {
    "bindings": {
      "cmd-alt-g": ["agent::NewExternalAgentThread", { "agent": "gemini" }]
    }
  }
]
  1. Use Zed like a pro
  • @ mention files, symbols, or prior threads to feed context; the agent can also fetch URLs you provide.
  • Review multi-file diffs and accept granular changes (no copy/paste).
  • Debug agent traffic via Command Palette → dev: open acp logs
  1. Bonus: bring your own agent

Building an ACP-compatible agent? Point Zed at your command with agent_servers:

{
  "agent_servers": {
    "Custom Agent": {
      "command": "node",
      "args": ["~/projects/agent/index.js", "--acp"],
      "env": {}
    }
  }
}

Comments

Sign in to join the discussion.

No comments yet

Be the first to share your thoughts!

Explore AI Tools
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai © 2026
Main Menu
  • Tools
  • Developers
  • Topics
  • Discussions
  • News
  • Blogs
  • Builds
  • Contests
Create
Sign In
    Sign in