> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opper.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Editors

> Use Opper with AI-powered code editors via the OpenAI-compatible endpoint and markdown docs

Opper integrates with AI-powered code editors through its [OpenAI-compatible endpoint](/build/gateway/drop-in-sdks) and markdown documentation files. This lets you use any model available on Opper directly from your editor of choice.

<Tip>
  You can configure your editor manually using the instructions below, or run `npx @opperai/setup` to set up OpenCode and Continue.dev automatically.
</Tip>

<CardGroup cols={2}>
  <Card title="OpenCode" href="#opencode">
    Terminal-based AI coding assistant
  </Card>

  <Card title="Continue.dev" href="#continue-dev">
    Open-source AI assistant for VS Code and JetBrains
  </Card>

  <Card title="Cursor" href="#cursor">
    AI-powered code editor with rules support
  </Card>

  <Card title="Cline" href="#cline">
    VS Code extension with OpenAI-compatible providers
  </Card>
</CardGroup>

## OpenCode

[OpenCode](https://opencode.ai) is a terminal-based AI coding assistant. Opper works as a provider through OpenCode's OpenAI-compatible provider support.

### Automated setup

Run `npx @opperai/setup` and select OpenCode to configure it automatically.

### Manual setup

1. Download the OpenCode config file from the [setup repository](https://github.com/opper-ai/setup/blob/main/data/opencode.json) and save it to `~/.config/opencode/opencode.json`:

```bash theme={null}
mkdir -p ~/.config/opencode
curl -o ~/.config/opencode/opencode.json https://raw.githubusercontent.com/opper-ai/setup/main/data/opencode.json
```

2. Set your Opper API key as an environment variable:

```bash theme={null}
export OPPER_API_KEY=your-api-key
```

You can get your API key from the [Opper platform](https://platform.opper.ai/).

3. Start OpenCode — Opper will appear as a provider with all available models.

The config includes a curated set of popular models with pre-configured context and output limits. Any model available on Opper can be used — just add it to the `models` section in the config file using the same format.

## Continue.dev

[Continue.dev](https://continue.dev) is an open-source AI code assistant for VS Code and JetBrains. Opper works as an OpenAI-compatible provider.

### Automated setup

Run `npx @opperai/setup` and select Continue to configure it automatically.

### Manual setup

1. Edit `~/.continue/config.yaml` and add an Opper model to the `models` list:

```yaml theme={null}
models:
  - name: Gemini 2.5 Flash (EU)
    provider: openai
    model: gemini/gemini-2.5-flash
    apiKey: your-api-key
    apiBase: https://api.opper.ai/v2/openai
    roles:
      - chat
      - edit
```

2. Restart your editor. Opper will appear as a model option in Continue.

The example above uses a single model, but you can add as many as you like. Any model available on Opper can be used — just change the `model` and `name` fields.

## Cursor

Opper provides markdown rules files that give Cursor context about how to use the Opper SDKs. When attached as rules, Cursor will use the Opper SDK correctly when generating code.

### Setup

1. Download the `.mdc` file for your language:
   * **Python**: <a href="https://raw.githubusercontent.com/opper-ai/opper-python/refs/heads/main/opper-python.mdc" download="opper-python.mdc">Download</a>
   * **TypeScript**: <a href="https://raw.githubusercontent.com/opper-ai/opper-node/refs/heads/main/opper-node.mdc" download="opper-node.mdc">Download</a>

2. Place it in your project at `.cursor/rules/opper.mdc`.

3. In Cursor, make sure the rule is set to **Always** (or your preferred activation mode).

Once configured, Cursor will use the Opper SDK patterns when writing code in your project.

**Try it out:**

* "Build me a simple console-based chat app"
* "Index the website [https://docs.opper.ai](https://docs.opper.ai) and allow me to ask questions on it"

## Cline

[Cline](https://cline.bot) supports both OpenAI-compatible providers and skills.

### Using Opper as a provider

Cline can use Opper's OpenAI-compatible endpoint for model access. This is configured through the Cline UI:

1. Open the Cline settings panel in VS Code.
2. Select **OpenAI Compatible** as the API Provider.
3. Set the Base URL to `https://api.opper.ai/v2/openai`.
4. Enter your Opper API key (get one at [platform.opper.ai](https://platform.opper.ai)).
5. Set the Model ID to any model available on Opper (e.g. `gemini/gemini-2.5-flash`).

### Installing skills

Cline supports skills through its experimental Skills feature. Enable it in Cline settings, then install Opper skills to `.cline/skills/`:

```bash theme={null}
git clone https://github.com/opper-ai/opper-skills.git
ln -s $(pwd)/opper-skills/opper-python-sdk ~/.cline/skills/opper-python-sdk
```

See the [Skills](/building/skills) page for more details on available skills and installation options.
