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

# OpenCode

> Connect OpenCode to Darwin Search and Act.

Add Darwin to `opencode.json`:

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

Complete OAuth in the browser, then verify the tool list. Use Search for discovery and preserve the exact selected revision before calling Act.

```text theme={null}
Use Darwin Search to find a harmless capability. Show the exact capability ID
and revision, then stop before starting work.
```

<Warning>
  Terminal or repository access is not Darwin authority. Always follow the scopes and `availableActions` returned for
  the current caller.
</Warning>

[Open the checked configuration](https://github.com/darwin-studios/darwin-integrations/blob/main/configs/opencode-mcp.json) or OpenCode's [MCP guide](https://opencode.ai/docs/mcp-servers/).
