# Use the API in other tools

Source: https://mr-note.com/en/developers/ai-api/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

1. **Open the model settings** Cursor Settings → Models.
2. **Enter the key** Under API Keys, paste your key into OpenAI API Key.
3. **Override the base URL** Turn on Override OpenAI Base URL and enter https://mroffice.ai/api/ai/v1.
4. **Add the model** Add a custom model with the id, e.g. gpt-6.2-sol, and choose it in the chat.

## Cline and Roo Code

1. **Open the provider settings** The extension's settings (the gear in its panel).
2. **Choose the provider** API Provider: OpenAI Compatible.
3. **Fill in the three fields** Base URL https://mroffice.ai/api/ai/v1, API Key your key, Model ID e.g. gpt-6.2-sol.
4. **Claude models** Or choose the Anthropic provider, turn on a custom base URL and enter https://mroffice.ai/api/ai.

## Continue

1. **Open the configuration** Continue's settings → Open config file (config.yaml).
2. **Add a model** Add the entry below and pick it in the model menu.

```yaml
# ~/.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_KEY
```

## OpenCode

1. **Add a provider** Put the provider below in opencode.json.
2. **Choose the model** Run opencode and choose the model with /models.

```json
// ~/.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

1. **Add a provider** Settings → Model Provider → Add, type OpenAI.
2. **Fill in the host and the key** API host https://mroffice.ai/api/ai, API key your key.
3. **Add the models** Under Models choose Add and enter the ids, e.g. gpt-6.2-sol.
