Zed
Use Cortecs models with Zed's native coding agent
Zed is a collaborative code editor with a native agent, inline assistance, and other model-backed development features. Because Zed supports custom OpenAI-compatible providers, you can connect these features directly to Cortecs.
1. Add Cortecs as a provider
Install or update Zed.
Open the Command Palette and run agent: open settings.
Open LLM Providers, select Add Provider, and choose an OpenAI-compatible provider.
Configure the provider with the following values:
Provider name
Cortecs
API URL
https://api.cortecs.ai/v1
Model ID
The exact ID from the model catalog
Context window
The selected model's context size
API key
Your Cortecs API key
Save the provider. Zed stores API keys entered through the provider settings in the system keychain instead of settings.json.
Do not add your Cortecs API key directly to settings.json or commit it to source control.
2. Start a Zed Agent thread
Open the Command Palette and run agent: new thread, or select the agent icon in the status bar.
Open the model selector in the message editor.
Select the model listed under Cortecs.
Choose the Write profile when you want the agent to edit files or run terminal commands.
Enter a prompt and submit it.
The Cortecs provider can also power Zed's Inline Assistant, Git commit generation, thread summaries, and similar Zed-owned AI features.
Add another model
Open agent: open settings, return to LLM Providers, and edit the Cortecs provider. Add each model with its exact model ID and context window from the model catalog.
After saving, use the model selector in the Agent Panel to switch between the configured Cortecs models.
Troubleshooting
The Cortecs model does not appear
Confirm that the provider is enabled and that the model ID exactly matches the model catalog. Reopen the Agent Panel or restart Zed after changing the provider configuration.
Requests return 401 or 403
Open the Cortecs provider settings and enter the API key again. Check that an old CORTECS_API_KEY environment variable is not overriding the key stored by Zed.
Requests return 404
Use https://api.cortecs.ai/v1 as the API URL and verify the model ID. Do not use the full /chat/completions path as the provider URL.
The model shows No tools
The selected model does not expose tool calling to Zed. Select a tool-calling model from the model catalog, then start a new thread.
Edit predictions use another provider
LLM Provider settings apply to the Zed Agent, Inline Assistant, commit generation, and summaries. Zed configures tab-style Edit Prediction separately, so adding Cortecs does not change the current Edit Prediction provider.
For more details, see Zed's OpenAI-compatible endpoint documentation and Agent Panel guide.
Last updated