Trae setup via the Kiree gateway
Connect Trae to kiree.net: Settings → Models → a custom model with OpenAI or Anthropic API format, the gateway address, a key and a catalog model ID.
Why the direct setup does not cover every case
Trae normally uses its built-in subscription provider. Add a custom model with the OpenAI or Anthropic format, set the gateway address and key, and pick a catalog model ID.
Steps to your first request
Get a key
Create a sk-… key in the kiree.net console.
Add a custom model
Settings → Models → Add Model: choose "Custom model", not the built-in provider — a form with API format and address opens.
Set format and gateway
API format OpenAI Chat Completions, address https://kiree.net/v1 (or full URL with /chat/completions), model ID and key. Trae checks the key on add.
Address: "https://kiree.net/v1"
Full URL: "https://kiree.net/v1/chat/completions"
Model ID: "claude-sonnet-4-6"
For Claude models you can choose the Anthropic Messages format: base address https://kiree.net or full https://kiree.net/v1/messages.
Check: on add, Trae checks the key with a gateway request: the model appears in the list and replies in chat and Agent mode.
What to connect in Trae
Any text model from the catalog works on one key. Below are popular options to start.
Common errors
Key check fails
Wrong key or address: for OpenAI format the base is https://kiree.net/v1, for Anthropic it is https://kiree.net; match the format and model ID.
404 model_not_found
The model ID is not from the kiree catalog: copy the exact ID, e.g. claude-sonnet-4-6 or gpt-6-astra.
Model does not reply in Agent
Check the model is enabled in the list and the context limits in Advanced configuration; usage is visible in the kiree.net console.
Frequently asked questions
How do I connect Trae through the gateway?+
A custom model with the kiree.net address goes to the gateway directly; no built-in subscription is required.
Which API format to choose?+
OpenAI Chat Completions suits all catalog text models; Anthropic Messages is an alternative for claude-*, and the gateway supports both protocols.
Do I need a Trae subscription?+
For custom models, no: usage is billed by actual tokens from the kiree.net balance.
Which models should I connect?+
Any catalog text model: claude-sonnet-4-6, gpt-6-astra, gpt-4o-mini, deepseek-v4-pro; the ID is set in the Model ID field.
Create a key in a couple of minutes; pay only for actual usage, no subscription required.