How to Set Up the Zed 2 Editor and Use Its AI Agent

October 4, 2026

Zed 2 is a native code editor written in Rust, and the 2026 release adds a full AI agent that can edit multiple files on its own. If VS Code feels heavy, this is the alternative built for speed.

What is Zed 2?

Zed 2 is the second major version of the Zed editor. It launches in milliseconds, keeps GPU-accelerated rendering, and adds Agent Panel — an AI assistant that reads your codebase, proposes edits, and can run them across several files. It runs on macOS, Linux, and Windows. The editor is free and open source; AI features require either your own API key or a Zed subscription.

How do you install Zed 2?

  1. Download the installer for your OS from the official site.
  2. On macOS, drag to Applications. On Linux, use the AppImage or the package for your distro. On Windows, run the MSI.
  3. Open Zed and sign in if you want the hosted AI features.
  4. Run the command palette with Cmd/Ctrl+Shift+P to explore settings.

How does the AI agent work?

Open the Agent Panel with Cmd/Ctrl+?. Point it at a task in plain English: “add input validation to the signup handler and update the tests”. The agent reads the relevant files, drafts a multi-file diff, and shows it for approval before applying. You can bring your own key for Anthropic, OpenAI, or Google models, which is the cheapest route if you already pay for one.

Agent features worth knowing

  • Multi-file edits with a review-before-apply diff.
  • Context from your open tabs and project tree.
  • Inline assist for single selections.
  • Bring-your-own-key support for major model providers.

Is Zed 2 free?

The editor is free. Using the AI agent hosted through Zed costs a subscription that starts around $20 per month, or you can plug in your own API key and pay the provider directly. For light use, a personal API key usually costs less than a subscription.

When should you stick with VS Code?

Zed 2’s extension ecosystem is smaller than VS Code’s. If you depend on niche extensions, a specific debugger, or a remote-dev setup tuned to VS Code, migrating may cost you more than it saves. Zed also has fewer built-in language servers for obscure languages. For web and systems work in common languages — TypeScript, Rust, Go, Python — it is fast and pleasant. Try Zed 2 on one small project before moving your whole stack.

Quick Summary

  • Zed 2 is a Rust-based, GPU-accelerated editor on macOS, Linux, and Windows.
  • The Agent Panel makes multi-file edits with review before applying.
  • Editor is free; hosted AI is about $20/month or use your own API key.
  • Smaller extension ecosystem than VS Code.
  • Great for common languages like TypeScript, Rust, Go, and Python.
Tags: