1# AI
2
3Zed integrates AI throughout the editor: agentic coding, inline transformations, edit prediction, and direct model conversations.
4
5## How Zed approaches AI
6
7Zed's AI features run inside a native, GPU-accelerated application built in Rust. There is no Electron layer between you and the model output.
8
9- **Open source.** The editor and all AI features are [open source](https://github.com/zed-industries/zed). You can read how AI is implemented, how data flows to providers, and how tool calls execute.
10- **Multi-model.** Use Zed's hosted models or [bring your own API keys](./llm-providers.md) from Anthropic, OpenAI, Google, Ollama, and 8+ other providers. Run local models, connect to cloud APIs, or mix both. Switch models per task.
11- **External agents.** Run Claude Agent, Gemini CLI, Codex, and other CLI-based agents directly in Zed through the [Agent Client Protocol](https://zed.dev/acp). See [External Agents](./external-agents.md).
12- **Privacy by default.** AI data sharing is opt-in. When you use your own API keys, Zed maintains zero-data retention agreements with providers. See [Privacy and Security](./privacy-and-security.md).
13
14## Agentic editing
15
16The [Agent Panel](./agent-panel.md) is where you work with AI agents. Agents can read files, edit code, run terminal commands, search the web, and access diagnostics through [built-in tools](./tools.md).
17
18You can extend agents with additional tools through [MCP servers](./mcp.md), control what they can access with [tool permissions](./tool-permissions.md), and shape their behavior with [rules](./rules.md).
19
20The [Inline Assistant](./inline-assistant.md) works differently: select code or a terminal command, describe what you want, and the model rewrites the selection in place. It works with multiple cursors.
21
22## Code completions
23
24[Edit Prediction](./edit-prediction.md) provides AI code completions on every keystroke. Each keypress sends a request to the prediction provider, which returns single or multi-line suggestions you accept with `tab`.
25
26The default provider is Zeta, Zed's open-source model trained on open data. You can also use GitHub Copilot, Supermaven, or Codestral.
27
28## Text threads
29
30[Text Threads](./text-threads.md) are conversations with models inside any buffer. They work like a regular editor with your keybindings, multiple cursors, and standard editing features. Content is organized into message blocks with roles (You, Assistant, System).
31
32## Getting started
33
34- [Configuration](./configuration.md): Connect to Anthropic, OpenAI, Ollama, Google AI, or other LLM providers.
35- [External Agents](./external-agents.md): Run Claude Agent, Codex, Aider, or other external agents inside Zed.
36- [Subscription](./subscription.md): Zed's hosted models and billing.
37
38- [Privacy and Security](./privacy-and-security.md): How Zed handles data when using AI features.
39
40## Agentic Editing
41
42- [Agent Panel](./agent-panel.md): Chat with AI agents that can read, write, and run code in your project.
43
44- [Rules](./rules.md): Define specific instructions for AI behavior.
45
46- [Tools](./tools.md): The built-in capabilities agents use: file operations, terminal commands, web search.
47
48- [Tool Permissions](./tool-permissions.md): Configure granular permission rules for agent tool actions.
49
50- [Model Context Protocol](./mcp.md): Extend agents with custom tools via MCP servers.
51
52- [Inline Assistant](./inline-assistant.md): Transform selected code or terminal output with `ctrl-enter`.
53
54## Edit Prediction
55
56- [Edit Prediction](./edit-prediction.md): AI-powered autocomplete that predicts multi-line edits as you type.
57
58## Text Threads
59
60- [Text Threads](./text-threads.md): Lightweight conversations with models inside any buffer.