How to swap in Cadreen as your model provider
Change two fields in your existing OpenAI-compatible code. Same messages, same tools, same streaming — but now a successful answer includes an intelligence object: how Cadreen read your request, whether your rules were checked, and how sure it was.
Need a key? Get one in Settings or create it below — no extra steps.
Get an API key
Create a key instantly — no separate workspace step. Or open Settings to manage keys.
Show curl for manual key creation
# 1) Create a key (needs sign-in cookie / Bearer JWT)
curl -X POST https://api.cadreen.com/api/v1/cadreen/quickstart \
-H "Authorization: Bearer $JWT" \
-H "Content-Type: application/json" \
-d '{"name":"quickstart"}'
# 2) Use it
curl -X POST https://api.cadreen.com/api/v1/cadreen/chat/completions \
-H "Authorization: Bearer sk_cadreen_..." \
-H "Content-Type: application/json" \
-d '{"model":"cadreen","messages":[{"role":"user","content":"Hello"}]}'Keys are scoped to your workspace. Each call creates a new key. List or revoke via Settings.
What changes
Two fields. Everything else stays the same.
Same code, different endpoint, intelligence layer added
Python
from openai import OpenAI
# Before
# client = OpenAI(api_key="sk-...")
# After — two lines changed
client = OpenAI(
base_url="https://api.cadreen.com/api/v1/cadreen",
api_key="sk_cadreen_...",
)
response = client.chat.completions.create(
model="cadreen",
messages=[{"role": "user", "content": "Hello"}],
)
# Same response format — but now with intelligence metadata
print(response.choices[0].message.content)
print(response.intelligence) # reasoning, governance, humilityTypeScript
import OpenAI from "openai";
// Before
// const client = new OpenAI({ apiKey: "sk-..." });
// After — two lines changed
const client = new OpenAI({
baseURL: "https://api.cadreen.com/api/v1/cadreen",
apiKey: "sk_cadreen_...",
});
const response = await client.chat.completions.create({
model: "cadreen",
messages: [{ role: "user", content: "Hello" }],
});
console.log(response.choices[0].message.content);
console.log((response as any).intelligence); // reasoning, governance, humilitycurl
curl -X POST https://api.cadreen.com/api/v1/cadreen/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk_cadreen_..." \
-d '{
"model": "cadreen",
"messages": [{"role": "user", "content": "Hello"}]
}'What you get for free
The answer of this route includes an intelligence object of its own: how Cadreen read your request, whether your rules were checked, and how sure it was. You can ignore it — or use it. The other routes of the Cadreen API send a larger one (the traces guide shows it).
{
"intelligence": {
"reasoning": {
"confidence": 0.92
},
"governance": {
"active": false,
"policies_checked": 1
},
"humility": {
"honest_assessment": "Assessment: complete, CanDo: 0.90"
},
"version": "1.0",
"timestamp": "2026-06-21T10:30:00Z"
}
}model your client sends, a name the catalogue doesn't have included. Unless it names a model from GET /models and your workspace has turned on named models, Cadreen picks the model and the response's model says cadreen.