Zed
Integrate ARZASTORE AI API with Zed - high-performance code editor written in Rust
High Performance
About Zed
Zed is a high-performance code editor written in Rust, focused on speed and developer experience. Integrated AI assistant supports OpenAI-compatible API.
Superior performance thanks to Rust - instant startup, no lag
Built-in AI Assistant with support for multiple providers
Built-in real-time collaboration features
Multi-buffer editing - work with multiple files simultaneously
Installation
macOS
brew install --cask zed
Linux
curl https://zed.dev/install.sh | sh
Manual
Or download directly from zed.dev/download (supports macOS and Linux).
Configuration
Step 1: Configure Language Model
Open Zed Settings (Ctrl+, or Cmd+,) and add the following configuration:
// Zed settings.json
{
"language_models": {
"openai": {
"api_url": "https://api.arzastore.com/v1",
"available_models": [
{
"name": "gpt-4o",
"display_name": "GPT-4o (ARZASTORE AI)",
"max_tokens": 128000
},
{
"name": "claude-sonnet-4-20250514",
"display_name": "Claude Sonnet (ARZASTORE AI)",
"max_tokens": 200000
},
{
"name": "gpt-4o-mini",
"display_name": "GPT-4o-mini (ARZASTORE AI)",
"max_tokens": 128000
}
]
}
},
"assistant": {
"default_model": {
"provider": "openai",
"model": "gpt-4o"
}
}
}
Step 2: Set up API Key
Add the API key to your shell environment variables:
# ~/.zshrc hoặc ~/.bashrc
export OPENAI_API_KEY="sk-your-api-key"
# Reload shell
source ~/.zshrc
Restart Zed
Using Zed AI
Assistant Panel
Press Ctrl+? (or Cmd+?) to open the AI Assistant panel. Chat directly with the configured model.
Inline Assist
Select code, press Ctrl+Enter to send the selection to AI and receive inline suggestions.
Context from Selection
Zed automatically includes selected code as context. You can also mention other files in the chat.