AI-powered chat assistant for Zed IDE
Zed Copilot brings conversational AI directly into your editor. Ask questions about code, get explanations, and collaborate with AIβall without leaving Zed.
- π¬ Interactive Chat β Converse with AI about your code
- π€ Multiple AI Providers β Choose OpenAI or Anthropic Claude
- π Conversation History β Maintain context across exchanges
- π Real-time Streaming β See responses as they're generated
- π Code Context β Reference files, selections, and cursor position
Status: Early development. Chat interface coming Q2 2025. Foundation, provider integration, and HTTP layer complete.
Takes 5 minutes β Get the extension running in Zed.
# Clone repository
git clone https://github.com/zed-industries/zed-copilot.git
cd zed-copilot
# Install git hooks (optional but recommended)
bash scripts/setup-hooks.sh
# Build extension
cargo build --release
# Open Zed β Extensions β Install Dev Extension
# Select the zed-copilot directoryAdd to your Zed settings.json:
{
"zed_copilot": {
"enabled": true,
"provider": "openai",
"openai": {
"api_key": "${OPENAI_API_KEY}",
"model": "gpt-4o"
}
}
}Set your API key:
export OPENAI_API_KEY="sk-..."Open Zed logs (zed: open log) and look for:
[Zed Copilot] Extension initialized
β You're ready! See docs/ for detailed setup and configuration.
After cloning, install git hooks to ensure code quality:
bash scripts/setup-hooks.shThis enables pre-commit and pre-push hooks that:
- β Format and lint checks on commit (fast, ~5-10 sec)
- β Smart test validation on push (~20-45 sec, tests changed modules only)
Learn more: Git Hooks Documentation
| Feature | Status |
|---|---|
| Extension foundation | β Complete |
| OpenAI integration | β Complete |
| Anthropic integration | β Complete |
| Configuration system | β Complete |
| HTTP client & retry | β Complete |
| Streaming responses | β Complete |
| E2E testing | β Complete |
| Chat interface | π Q2 2025 |
| Code completions | π Q3 2025+ |
Complete documentation: docs/
Getting Started:
- 5-Minute Setup β Quick installation
- Detailed Setup β Troubleshooting included
- Configuration Examples β 13+ ready-to-use configs
Configuration:
- Examples Cookbook β Copy-paste configurations
- Schema Reference β Complete options guide
Development:
- Contributing Guide β How to contribute
- Architecture β Understanding the codebase
- Testing Strategy β Testing guidelines
- Roadmap β Feature timeline
Technical:
- Provider Integration β AI provider implementation
- HTTP Integration β Network layer
- All Technical Docs β Deep dives
Other:
- Changelog β Version history
- GPT-4o β Best for general coding (recommended)
- o1 β Advanced reasoning for complex problems
- o3-mini β Lightweight reasoning model
- Claude Opus 4.1 β Most powerful, best for complex analysis
- Claude Sonnet 4 β Balanced speed and quality (recommended)
- Claude Haiku 4.5 β Fastest, most affordable
π See Configuration Examples for model comparison and configs.
Current Phase: Phase 2.4 β E2E Testing β
Timeline:
- β Phase 1 β Foundation complete
- β Phase 2 β Provider integration, HTTP & streaming complete
- π Phase 3 β Chat interface (Q2 2025) π― Next milestone
- π Phase 4 β GitHub Copilot LSP & completions (Q3 2025+)
π See ROADMAP.md for detailed timeline.
Contributions welcome! Please:
- Read CONTRIBUTING.md
- Follow coding standards in zed-rules/AGENTS.md
- Run
make check-allbefore submitting - Write tests for new features
make fmt # Format code
make clippy # Check warnings
make test # Run tests
make check-all # Run all checkszed-copilot/
βββ src/
β βββ lib.rs # Main extension
β βββ providers/ # AI provider implementations
β βββ config/ # Configuration system
βββ tests/ # Integration tests
βββ docs/ # Documentation
βββ Cargo.toml # Dependencies
π See DEVELOPMENT.md for architecture details.
- Verify Rust is installed:
rustup --version - Rebuild:
cargo clean && cargo build --release - Check logs:
zed: open log
- Verify API key is set:
echo $OPENAI_API_KEY - Check settings.json syntax
- Ensure model name is correct
π See SETUP.md for comprehensive troubleshooting.
MIT License β Free to use, modify, and distribute.
- π Documentation β docs/
- π Issues β GitHub Issues
- π¬ Discussions β GitHub Discussions
Built with β€οΈ for the Zed community
Next Milestone: Chat Interface (Phase 3, Q2 2025) π