OpenCode Setup

Add Memcone memory to OpenCode in under 60 seconds.

Run this in your project directory:

bash
npx @memcone/cli link
npx @memcone/cli link

link detects OpenCode and writes the MCP config automatically. Restart OpenCode and you're done.

You need a Memcone API key from dashboard → API keys. The CLI will prompt for it on first run and save it to ~/.memcone/credentials.


Manual config

Open (or create) ~/.config/opencode/opencode.json (global; project overrides use opencode.json in the repo):

json
{
  "mcp": {
    "memcone": {
      "type": "remote",
      "url": "https://memcone.com/api/mcp",
      "headers": {
        "Authorization": "Bearer mem_live_YOUR_KEY_HERE"
      }
    }
  }
}
{
  "mcp": {
    "memcone": {
      "type": "remote",
      "url": "https://memcone.com/api/mcp",
      "headers": {
        "Authorization": "Bearer mem_live_YOUR_KEY_HERE"
      }
    }
  }
}

Verify with opencode mcp listmemcone should appear as connected.


Using it

OpenCode calls Memcone automatically during sessions:

  • memcone.context — injects your project identity, rules, and past session memory
  • memcone.remember — stores facts the AI learns about you
  • memcone.recall — searches past memory on demand

"Remember that I want all database queries to go through the repository layer"

"What have we decided about the project architecture?"


Troubleshooting

Not showing as connected → Check that the JSON has "type": "remote" and the URL is correct. Run opencode mcp list to verify.

401 Unauthorized → Verify your key at dashboard → API keys. It must start with mem_live_.

No memory returned → Nothing is stored yet. Tell OpenCode: "Remember that this project uses Go and Postgres". Confirm at dashboard → Memory.