opencode
opencode connects through the OpenAI-style API.
Setup
Add a provider to opencode.json in your project, or to ~/.config/opencode/opencode.json for all projects:
{
"$schema": "https://opencode.ai/config.json",
"model": "typno/glm5.3-754b",
"providers": {
"typno": {
"name": "Typno AI",
"env": ["TYPNO_API_KEY"],
"package": "@opencode/ai/providers/openai-compatible",
"settings": { "baseURL": "https://dev.typno.ai/v1" },
"models": {
"glm5.3-754b": {},
"mistral4-119b": {}
}
}
}
}
export TYPNO_API_KEY="tpk-..."
opencode
Choose the model with /models; it is listed as typno/<model id>.
Older opencode versions (v1) use provider instead of providers:
{
"provider": {
"typno": {
"npm": "@ai-sdk/openai-compatible",
"options": { "baseURL": "https://dev.typno.ai/v1", "apiKey": "{env:TYPNO_API_KEY}" },
"models": { "glm5.3-754b": {} }
}
}
}
MCP server
{
"mcp": {
"servers": {
"typno": {
"type": "remote",
"url": "https://dev.typno.ai/mcp",
"oauth": false,
"headers": { "Authorization": "Bearer {env:TYPNO_API_KEY}" }
}
}
}
}
"oauth": false matters: remote servers default to OAuth, and Typno AI uses the key in the header.