- Developer home
- AI API
- Use the API in other tools
Use the API in other tools
Cursor, Cline / Roo Code, Continue, OpenCode, Cherry Studio, and any OpenAI-compatible tool: where the base URL, the key and the model id go.
Any OpenAI-compatible tool
Every OpenAI-compatible tool needs the same three things. Where the tool asks for an API host without /v1, give it the Anthropic-compatible base URL instead.
| Setting | Value |
|---|---|
| Base URL | https://mroffice.ai/api/ai/v1 |
| API key | your mr- key |
| Model | gpt-6.2-sol, claude-sonnet-5.5 or another id from Models and prices |
Cursor
- Open the model settingsCursor Settings → Models.
- Enter the keyUnder API Keys, paste your key into OpenAI API Key.
- Override the base URLTurn on Override OpenAI Base URL and enter https://mroffice.ai/api/ai/v1.
- Add the modelAdd a custom model with the id, e.g. gpt-6.2-sol, and choose it in the chat.
Cline and Roo Code
- Open the provider settingsThe extension's settings (the gear in its panel).
- Choose the providerAPI Provider: OpenAI Compatible.
- Fill in the three fieldsBase URL https://mroffice.ai/api/ai/v1, API Key your key, Model ID e.g. gpt-6.2-sol.
- Claude modelsOr choose the Anthropic provider, turn on a custom base URL and enter https://mroffice.ai/api/ai.
Continue
- Open the configurationContinue's settings → Open config file (config.yaml).
- Add a modelAdd the entry below and pick it in the model menu.
# ~/.continue/config.yaml
models:
- name: MR Office AI
provider: openai
model: gpt-6.2-sol
apiBase: https://mroffice.ai/api/ai/v1
apiKey: mr-YOUR_KEYOpenCode
- Add a providerPut the provider below in opencode.json.
- Choose the modelRun opencode and choose the model with /models.
// ~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"mroffice": {
"npm": "@ai-sdk/openai-compatible",
"name": "MR Office AI",
"options": { "baseURL": "https://mroffice.ai/api/ai/v1", "apiKey": "mr-YOUR_KEY" },
"models": { "gpt-6.2-sol": { "name": "gpt-6.2-sol" }, "claude-sonnet-5.5": { "name": "claude-sonnet-5.5" } }
}
}
}Cherry Studio
- Add a providerSettings → Model Provider → Add, type OpenAI.
- Fill in the host and the keyAPI host https://mroffice.ai/api/ai, API key your key.
- Add the modelsUnder Models choose Add and enter the ids, e.g. gpt-6.2-sol.