← All integrations
opencode

Add to opencode.json.

Paste this block into your opencode config — global or per-project — and restart.
Step 01

Open ~/.config/opencode/opencode.json and add the mcp block.

(Or create a project-local opencode.json — project overrides global.)

~/.config/opencode/opencode.json
{
  "mcp": {
    "bankbridge": {
      "type": "remote",
      "url": "https://bankbridge.money/api/mcp",
      "enabled": true,
      "oauth": false,
      "headers": {
        "Authorization": "Bearer bbk_your_api_key_here"
      }
    }
  }
}
Restart opencode after editing the config.

"oauth": falsetells opencode not to attempt a browser OAuth flow on 401 — we’re using a static bearer.

Step 02

Verify it works.

Start opencode, run opencode mcp list to confirm bankbridge is listed. Then ask:

try this
how much did I spend this week?
Troubleshooting
Client connects but shows 0 tools.
Usually the client is caching an old config, or you're on a mode that doesn't expose tools (Ask/Edit vs Agent, for example).
Fix: Fully quit + relaunch the host app. In VS Code Copilot, switch to Agent mode.
401 Unauthorized on every call.
The API key is missing, typo'd, or got revoked. Check the Authorization header starts with `Bearer ` (note the space) and ends in a key you still own.
Fix: Paste a fresh key from Settings.
Tools return a NO_CONNECTIONS warning.
You haven't linked a bank yet.
Fix: Visit Connect a bank — the bank-connect flow opens automatically, ~30 seconds.
Problems? Email hello@bankbridge.money.