Skip to content

Clarification of config files for Custom OpenAI providers #16

@swizzls

Description

@swizzls

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)"
}
}
},
},
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions