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

# OpenCode

> Configure the oleander MCP server in OpenCode

## Overview

Use the remote oleander MCP server in OpenCode to connect your agent workflows directly to oleander.

> Beta: MCP integration docs and workflow may change.

## Prerequisites

* [OpenCode](https://opencode.ai) installed

## Add the MCP server

Add the server:

```bash theme={null}
opencode mcp add oleander --url https://oleander.dev/mcp
```

## Authenticate

Complete the OAuth flow to authorize access with your oleander account:

```bash theme={null}
opencode mcp auth oleander
```

OpenCode opens your browser for authorization and stores tokens in `~/.local/share/opencode/mcp-auth.json`.

## Verify

List configured MCP servers to confirm `oleander` was added:

```bash theme={null}
opencode mcp list
```

## Reset authentication

If you want to authenticate with a different org, log out and run the auth command again:

```bash theme={null}
opencode mcp logout oleander
opencode mcp auth oleander
```

Alternatively, you can add the server manually in your OpenCode config (`~/.config/opencode/opencode.json`):

```json theme={null}
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "oleander": {
      "type": "remote",
      "url": "https://oleander.dev/mcp",
      "enabled": true
    }
  }
}
```

Then run `opencode mcp auth oleander` to authenticate.
