-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Fantastic project thanks for your efforts on it.
I currently have a subscription with an OpenAI compatible provider and unsure of how to properly configure it in Pai-opencode.
Their instructions for configuration in plain opencode as below.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"litellm": { // we use open-source LiteLLM to create our API
"npm": "@ai-sdk/openai-compatible",
"options": {
"apiKey": "sk-***", // your API key you created on https://mammouth.ai/app/account/settings/api goes there
"baseURL": "https://api.mammouth.ai/v1",
},
// You can rename models here to make sure it comes from this configuration
// all models can be found in the list at https://api.mammouth.ai/models
"models": {
"gpt-4.1": {
"name": "GPT 4.1 (mammouth.ai)"
},
"claude-4-sonnet-20250522": {
"name": "Claude 4 Sonnet (mammouth.ai)"
}
}
},
},
}