DEVUP Docs
Back to Dashboard

Integrations

Zed

Zed is an open-source code editor with a built-in AI agent. Add DEVUP AI as an OpenAI-compatible provider, and the Zed agent, the inline assistant and chat run on DEVUP AI models.

Requirements

Install Zed

On Windows:

powershell
winget install -e --id ZedIndustries.Zed

On macOS and Linux, download Zed from https://zed.dev/download.

Add DEVUP AI as a provider

Add the provider

StepWhereWhat to do
1ZedOpen Settings with Ctrl+,.
2Settings, section AIOpen LLM Providers and click Add Provider.
3Provider formProvider Name: DEVUP AI. API URL: https://api.devupai.com/v1. API Key: your DEVUP AI key.
4ModelsModel Name: deepseek-ai/DeepSeek-V4-Pro. Max Tokens: the model's context_window (next section). Keep the values Zed fills in for Max Completion Tokens and Max Output Tokens.
5Provider formSave.
text
https://api.devupai.com/v1
Zed Add Provider form with DEVUP AI and the DEVUP AI API URL

Zed stores the key in the system keychain, not in settings.json.

Find the context window for Max Tokens

Max Tokens is the model's context window. Read it from context_window in GET /v1/models:

powershell
$models = Invoke-RestMethod -Uri "https://api.devupai.com/v1/models" -Headers @{ Authorization = "Bearer $env:DEVUP_API_KEY" }
$models.data | Where-Object { $_.id -eq "deepseek-ai/DeepSeek-V4-Pro" } | Select-Object id, context_window

Enter the number it prints for the model you added.

Model capabilities

Zed model capabilities for a DEVUP AI model

Capabilities for DeepSeek-V4-Pro

CheckboxSetting
Supports toolsOn
Supports imagesOff
Supports parallel_tool_callsOff
Supports prompt_cache_keyOff
Supports /chat/completionsOn
Uses max_tokens for output limitOff
Supports thinkingOff

Choose the model

Open the Agent Panel and pick the model under DEVUP AI.

Zed Agent Panel model list with DEVUP AI models

Chat with the Zed agent

text
Reply with exactly: Salam DEVUP
Zed agent answering Salam DEVUP through DEVUP AI

Let the agent edit files

Open a project folder, keep the Write profile selected next to the model picker, and ask:

text
Create hello.go that prints Salam DEVUP, then read the file back and tell me its first line.
Zed agent creating and reading hello.go through DEVUP AI

The agent creates the file, reads it back and answers. Review its changes with Keep All or Reject All.

Edit code inline

Select code, press Ctrl+Enter, and type your instruction:

text
Add a comment explaining this function
Zed inline assistant adding a comment through DEVUP AI

Choosing models

Add one model entry per catalog ID you want in Zed, each with its own context_window. The agent needs a model with tool calling. See Models and Tool Calling.

Troubleshooting

  • The key is in the OpenAI section:Zed's built-in OpenAI provider is OpenAI's own service. Enter your DEVUP AI key only in the provider you added with Add Provider.
  • The agent answers but does not change files:Select the Write profile next to the model picker, and keep Supports tools on for the model.
  • Zed shows a context limit that does not match the model:Set Max Tokens to the context_window value from GET /v1/models, then save.

FAQ

Does Zed work with DEVUP AI?

Yes. Add an OpenAI-compatible provider in Zed's LLM Providers settings with the API URL https://api.devupai.com/v1 and your DEVUP AI key, then pick the model in the Agent Panel.

Can the Zed agent edit files with DEVUP AI models?

Yes. Keep Supports tools on and the Write profile selected, and the agent creates, reads and edits files in your project.

How is Zed usage billed on DEVUP AI?

Every request from Zed is a regular DEVUP AI API call, metered in Algerian Dinar on your account.

Where does Zed store my DEVUP AI key?

In the system keychain. It is not written to settings.json.

What goes in Max Tokens?

The model's context window: the context_window value that GET /v1/models returns for that model.

Does inline editing work with DEVUP AI?

Yes. Select code, press Ctrl+Enter and write your instruction; the inline assistant uses the DEVUP AI model you picked.

Related integrations

  • VS Code: DEVUP AI models in Visual Studio Code.
  • Cursor: DEVUP AI models in Cursor.
  • Cline: An autonomous coding agent for VS Code.
  • Kilo Code: An open-source coding agent for VS Code.