Skip to main content

Automatic Setup

cohaku init
Detects the .opencode/ directory and writes to opencode.json.

Manual Setup

Create or edit opencode.json in your project root:
{
  "mcp": {
    "cohaku": {
      "type": "local",
      "command": ["cohaku", "mcp"]
    }
  }
}

Config Generation

Export memories as an OpenCode instructions file:
cohaku generate opencode
This writes to .opencode/instructions.md.