Settings Location
AI settings are configured in your Zed settings file:- Open settings:
Cmd+,(macOS) orCtrl+,(Linux/Windows) - Navigate to the
agentsection - Or edit
~/.config/zed/settings.jsondirectly
Basic Configuration
Enable/Disable AI Features
- Hide the agent panel button
- Disable inline assistant
- Remove AI-related menu items
Model Configuration
Default Model
Set the primary model for all AI features:Task-Specific Models
Use different models for different tasks:default_model- Used for Agent Panel conversationsinline_assistant_model- Used for inline code generationcommit_message_model- Used for generating git commit messagesthread_summary_model- Used for summarizing conversation threads
Favorite Models
Pin frequently used models to the top of the model selector:Model Parameters
Customize model behavior with parameters:Extended Thinking
Enable extended reasoning for complex tasks:- Model spends more time reasoning
- Shows thinking process during generation
- Better for complex, multi-step problems
- Uses more tokens (costs more)
Tool Permissions
Control what the AI can do in your workspace:Global Default
allow- Execute without askingconfirm- Always prompt user (default)deny- Never allow
Per-Tool Configuration
always_denytakes precedence over everything- Then
always_confirmis checked - Then
always_allowis checked - Finally, the
defaultmode applies
- Patterns are case-insensitive by default
- Set
"case_sensitive": truefor case-sensitive matching - Use standard regex syntax
- Escape special characters:
\.for.,\\for\
Built-in Security Rules
Zed has hardcoded protections that cannot be overridden:Agent Profiles
Create profiles for different workflows:UI Configuration
Panel Position and Size
Message Editor
Display Options
Notifications
Advanced Settings
Default View
Choose the starting view for the Agent Panel:Inline Assistant Options
Terminal Integration
Context Server Configuration
Configure MCP (Model Context Protocol) context servers:Complete Example
A comprehensive configuration:Best Practices
- Start conservative - Use
"confirm"mode while learning the AI’s behavior - Whitelist safe commands - Add common commands to
always_allowonce you trust them - Profile per task - Create separate profiles for coding vs reviewing vs debugging
- Choose models wisely - Faster models for simple tasks, powerful models for complex ones
- Use local models - Consider Ollama for privacy-sensitive work
- Review tool permissions - Regularly audit what the AI is allowed to do
Troubleshooting
Settings not taking effect
- Save your settings file (
Cmd+S) - Reload Zed:
Cmd+Shift+P→ “zed: reload” - Check for JSON syntax errors
Invalid model configuration
- Verify the provider name matches exactly
- Check that the model is available for your provider
- Ensure API keys are configured in Settings → Language Models
Tool permissions not working
- Test regex patterns in a regex tester
- Remember patterns are case-insensitive by default
- Check the order:
always_deny>always_confirm>always_allow>default
