1---
2title: AI Code Editor Documentation - Zed
3description: Docs for AI in Zed, the open-source AI code editor. Agentic coding, inline edits, AI code completion, and multi-model support.
4---
5
6# AI
7
8Zed integrates AI throughout the editor: agentic coding, inline transformations, edit prediction, and direct model conversations.
9
10## Setting Up AI
11
12- [Configuration](./configuration.md): Connect to Anthropic, OpenAI, Ollama, Google AI, or other LLM providers.
13
14- [External Agents](./external-agents.md): Run Claude Code, Codex, Aider, or other external agents inside Zed.
15
16- [Subscription](./subscription.md): Zed's hosted models and billing.
17
18- [Privacy and Security](./privacy-and-security.md): How Zed handles data when using AI features.
19
20## Agentic Editing
21
22- [Agent Panel](./agent-panel.md): Chat with AI agents that can read, write, and run code in your project.
23
24- [Rules](./rules.md): Define specific instructions for AI behavior.
25
26- [Tools](./tools.md): The built-in capabilities agents use: file operations, terminal commands, web search.
27
28- [Tool Permissions](./tool-permissions.md): Configure granular permission rules for agent tool actions.
29
30- [Model Context Protocol](./mcp.md): Extend agents with custom tools via MCP servers.
31
32- [Inline Assistant](./inline-assistant.md): Transform selected code or terminal output with `ctrl-enter`.
33
34## Edit Prediction
35
36- [Edit Prediction](./edit-prediction.md): AI-powered autocomplete that predicts multi-line edits as you type.
37
38## Text Threads
39
40- [Text Threads](./text-threads.md): Lightweight conversations with models inside any buffer.