# OpenCode

The one command, and where the prompt goes in OpenCode.

## Add the server

Run this once in a terminal:

```
opencode mcp add mana --url https://mcp.mana.scalarmind.com
```

OpenCode opens your browser for the sign-in and the confirmation page. The `mana_*` tools appear from the next session.

If your version has no `mcp add`, add the server to `~/.config/opencode/opencode.json` by hand:

```json
{
  "mcp": {
    "mana": { "type": "remote", "url": "https://mcp.mana.scalarmind.com" }
  }
}
```

Then start OpenCode and sign in when it asks.

## Then paste the prompt

Paste the prompt from [Start here](/docs) into a session. It tells the agent to read the standing instructions, which carry the rules your organization keeps.

## When the connection is lost

The client signs you in through the browser once and shows one confirmation page with its name and the address it returns to. The token it holds renews itself. When the client says the connection was lost, connect it again; nothing in the store is lost.

## Removing it

[Remove Mana](/docs/remove) undoes both the connection and anything the agent added to `~/.config/opencode/AGENTS.md`.
