Entegrasyonlar
Kavren modellerini editöründe, terminalinde veya uygulamanda kullan. Ayar dosyası ve bağlantı adımları için istemcini seç.
Bağlantı bilgileri
Bağlantı bilgilerimi aç ↗KAVREN_BASE_URLhttps://kavren.dev/v1KAVREN_API_KEY- İstemciyi çalıştırdığın ortamda saklanan müşteri anahtarın.
Chat Completions
OpenCode
opencode --version komutunu çalıştır ve sürümüne uygun örneği proje klasöründe opencode.json olarak kaydet. Mevcut ayar dosyanda providers (2.x) veya provider (1.x) altındaki kavren kaydını örnektekiyle değiştir. KAVREN_API_KEY değişkenine API anahtarları ekranından aldığın tam sk-… anahtarını gir. Ardından aynı terminalde ve klasörde OpenCode’u başlat.
{
"$schema": "https://opencode.ai/config.json",
"providers": {
"kavren": {
"name": "Kavren",
"package": "@opencode/ai/providers/openai-compatible",
"settings": {
"baseURL": "https://kavren.dev/v1",
"apiKey": "{env:KAVREN_API_KEY}"
},
"models": {
"glm-5.3-abliterated": {
"name": "GLM 5.3 Abliterated",
"capabilities": {
"tools": true,
"input": [
"text"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 128000
}
},
"glm-5.3-flash-abliterated": {
"name": "GLM 5.3 Flash Abliterated",
"capabilities": {
"tools": true,
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 128000
}
},
"deepseek-v4.1-flash-abliterated": {
"name": "DeepSeek V4.1 Flash 1017 Abliterated",
"capabilities": {
"tools": true,
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 128000
}
},
"deepseek-v4.1-flash-abliterated-fast": {
"name": "DeepSeek V4.1 Flash 1017 Fast Abliterated",
"capabilities": {
"tools": true,
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 128000
}
},
"kimi-k3.1-pro-abliterated": {
"name": "Kimi K3.1 Pro Abliterated",
"capabilities": {
"tools": true,
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 128000
}
},
"qwen4-35b-abliterated": {
"name": "Qwen4 35B Abliterated",
"capabilities": {
"tools": true,
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 131072
}
},
"ergo-1.0": {
"name": "Ergo 1.0",
"capabilities": {
"tools": true,
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 131072
}
},
"deepseek-v4.1-flash-fast": {
"name": "DeepSeek V4.1 Flash 1017",
"capabilities": {
"tools": true,
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 256000
}
},
"minimax-m3.1-flash": {
"name": "MiniMax M3.1 Flash",
"capabilities": {
"tools": true,
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 500000
}
},
"kimi-k3.1-pro": {
"name": "Kimi K3.1 Pro",
"capabilities": {
"tools": true,
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 128000
}
}
}
}
},
"model": "kavren/deepseek-v4.1-flash-fast"
}{
"provider": {
"kavren": {
"name": "Kavren",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://kavren.dev/v1",
"apiKey": "{env:KAVREN_API_KEY}"
},
"models": {
"glm-5.3-abliterated": {
"name": "GLM 5.3 Abliterated",
"tool_call": true,
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 128000
},
"attachment": false
},
"glm-5.3-flash-abliterated": {
"name": "GLM 5.3 Flash Abliterated",
"tool_call": true,
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 128000
},
"attachment": true
},
"deepseek-v4.1-flash-abliterated": {
"name": "DeepSeek V4.1 Flash 1017 Abliterated",
"tool_call": true,
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 128000
},
"attachment": true
},
"deepseek-v4.1-flash-abliterated-fast": {
"name": "DeepSeek V4.1 Flash 1017 Fast Abliterated",
"tool_call": true,
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 128000
},
"attachment": true
},
"kimi-k3.1-pro-abliterated": {
"name": "Kimi K3.1 Pro Abliterated",
"tool_call": true,
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 128000
},
"attachment": true
},
"deepseek-v4.1-flash-fast": {
"name": "DeepSeek V4.1 Flash 1017",
"tool_call": true,
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 256000
},
"attachment": true
},
"minimax-m3.1-flash": {
"name": "MiniMax M3.1 Flash",
"tool_call": true,
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 500000
},
"attachment": true
},
"kimi-k3.1-pro": {
"name": "Kimi K3.1 Pro",
"tool_call": true,
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 128000
},
"attachment": true
},
"qwen4-35b-abliterated": {
"name": "Qwen4 35B Abliterated",
"attachment": true,
"tool_call": true,
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 131072
}
},
"ergo-1.0": {
"name": "Ergo 1.0",
"attachment": true,
"tool_call": true,
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1048576,
"output": 131072
}
}
}
}
},
"model": "kavren/deepseek-v4.1-flash-fast"
}$env:KAVREN_API_KEY = "sk-…"export KAVREN_API_KEY="sk-…"opencode modelsopencodeİstemci test edildi İki örnekte de Kavren model kataloğu kayıtlıdır. ‘Model unavailable’ görürsen listede kavren/deepseek-v4.1-flash-abliterated gibi tam model kimliğini ara. Anahtarını ayrıca doğrulamak için paneldeki Bağlantıyı test et bölümünü kullan.
Chat Completions
Pi
~/.pi/agent/models.json dosyasına Kavren kaydını ekle. Pi, anahtarı belirtilen ortam değişkeninden okur.
{
"providers": {
"kavren": {
"baseUrl": "https://kavren.dev/v1",
"api": "openai-completions",
"apiKey": "KAVREN_API_KEY",
"models": [
{
"id": "deepseek-v4.1-flash-fast",
"name": "DeepSeek V4.1 Flash 1017",
"input": [
"text",
"image"
]
}
]
}
}
}pi --provider kavren --model deepseek-v4.1-flash-fastProtokol test edildi Bu profil Kavren’in test edilmiş Chat Completions uç noktasını kullanır. Pi uygulaması için uçtan uca test kaydı bulunmuyor.
Responses
Codex CLI
~/.codex/config.toml dosyasına bu profili ekle. CLI’ı Kavren profiliyle başlat.
[profiles.kavren]
model_provider = "kavren"
model = "deepseek-v4.1-flash-fast"
web_search = "disabled"
[model_providers.kavren]
name = "Kavren"
base_url = "https://kavren.dev/v1"
env_key = "KAVREN_API_KEY"
wire_api = "responses"
supports_websockets = falsecodex --profile kavrenProtokol test edildi API testleri Responses kullanım kayıtlarını ve istemciden dönen araç sonuçlarını kapsar. Bu profil HTTP akışını kullanır ve barındırılan arama aracını kapatır. Tam bir Codex oturumu henüz doğrulanmadı.
Messages
Claude Code CLI
Kavren ortam değişkenlerinin tanımlı olduğu yeni bir Bash oturumu aç. CLI, servis adresine /v1/messages eklediği için örnek önce sondaki /v1 bölümünü çıkarır.
export ANTHROPIC_BASE_URL="${KAVREN_BASE_URL%/v1}"
export ANTHROPIC_AUTH_TOKEN="$KAVREN_API_KEY"
export ANTHROPIC_MODEL="deepseek-v4.1-flash-fast"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="$ANTHROPIC_MODEL"
export ANTHROPIC_DEFAULT_SONNET_MODEL="$ANTHROPIC_MODEL"
export ANTHROPIC_DEFAULT_OPUS_MODEL="$ANTHROPIC_MODEL"
claude --model "$ANTHROPIC_MODEL"Protokol test edildi Messages yanıt akışı ve kullanım kaydı API testlerinin kapsamında. Bu komutlar terminal istemcisini çalıştırır. Desktop’ın ayrı bir model seçicisi vardır.
HTTP
cURL
Model kimliğini okumak için terminaline uygun komutu çalıştır. Katalog sorgusu model yanıtı üretmez ve token harcamaz.
curl --fail-with-body "$KAVREN_BASE_URL/models/deepseek-v4.1-flash-fast" \
-H "Authorization: Bearer $KAVREN_API_KEY"curl.exe --fail-with-body "$env:KAVREN_BASE_URL/models/deepseek-v4.1-flash-fast" -H "Authorization: Bearer $env:KAVREN_API_KEY"İstemci test edildi Anahtarla katalog sorgulama ve API’den dönen JSON yanıtları test edildi.
OpenAI SDK
Python
SDK’yı python -m pip install openai ile kur. Bu dosyayı kaydedip anahtarın tanımlı olduğu ortamda çalıştır. Model çağrısı yapmadan model kimliğini yazdırır.
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["KAVREN_BASE_URL"],
api_key=os.environ["KAVREN_API_KEY"],
)
model = client.models.retrieve("deepseek-v4.1-flash-fast")
print(model.id)python kavren.pyProtokol test edildi Katalog ve Chat Completions uç noktaları test edildi. Python SDK ile uçtan uca çalışma henüz doğrulanmadı.
OpenAI SDK
Node.js
npm install openai ile SDK’yı kur. Örneği ES modülü olarak kaydet. Model çağrısı yapmadan model kimliğini yazdırır.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: process.env.KAVREN_BASE_URL,
apiKey: process.env.KAVREN_API_KEY,
});
const model = await client.models.retrieve("deepseek-v4.1-flash-fast");
console.log(model.id);node kavren.mjsİstemci test edildi JavaScript SDK, API üzerinden örnek bir model yanıtıyla test edildi.
Araçlar nerede çalışır?
Dosya, terminal ve özel fonksiyon araçlarını istemcin kendi izinleriyle çalıştırır. Web aramasında öncelik istemcinin arama aracındadır. Uygun araç yoksa veya araç servis hatası verirse Kavren açıkça belirtilen herkese açık sorguyu arayabilir.
API hata rehberi →Claude Desktop
Desktop’ın Code sekmesi model kimliklerini desteklediği Anthropic modelleriyle karşılaştırır. Bu seçici Kavren’in model kimliklerini kabul etmiyor. OpenCode’da Kavren modellerini katalog kimlikleriyle seçebilirsin.
OpenCode rehberini aç →