Zed¶
Zed supports OpenAI-compatible providers natively under
language_models.openai_compatible.
Quick setup (script)¶
First export your key so
$CLAUDINIO_API_KEY is set. This writes ~/.config/zed/settings.json, backing
up any existing file:
zed_settings_install() {
local key="$1"
local config_dir="$HOME/.config/zed"
local file="$config_dir/settings.json"
mkdir -p "$config_dir"
if [ -f "$file" ]; then
cp "$file" "$file.claudinio.bak"
echo "[ok] Backup: $file.claudinio.bak"
fi
cat > "$file" <<JSONEOF
{
"language_models": {
"openai_compatible": {
"Claudinio": {
"api_url": "https://api.claudin.io/v1",
"available_models": [
{
"name": "claudinio",
"display_name": "Claudinio",
"max_tokens": 256000
}
]
}
}
}
}
JSONEOF
echo "[ok] Configured: $file"
}
zed_settings_install "$CLAUDINIO_API_KEY"
unset zed_settings_install
Manual setup¶
-
Add the provider to
~/.config/zed/settings.json: -
Open Zed's Agent panel and paste your API key when prompted, or set it as the API key for the Claudinio provider.
- Select Claudinio in the agent panel's model picker.
| Setting | Value |
|---|---|
| API URL | https://api.claudin.io/v1 |
| Model | claudinio |
| Max tokens | 256000 |