01 · Why connect
OpenCode documents local and remote MCP under mcp, including OAuth for remote servers.
Use the remote/HTTP MCP entry in opencode.json or opencode.jsonc. The Make0 MCP URL is https://make0.ai/mcp. OpenCode can sign in with OAuth on any plan, or use an API key on Pro and Max. Either way, you pick which brains it can use.
02 · How to connect OpenCode
Install Make0 Brain in 4 steps
- 01
Open OpenCode config
Edit opencode.json / opencode.jsonc.
- 02
Add remote MCP
Set type remote (or http) and url https://make0.ai/mcp.
- 03
Authorize
Reload OpenCode and finish Make0 OAuth.
- 04
Use tools
Ask OpenCode to search_brain for a known fact.
03 · opencode.json
Copy this into OpenCode
Use HTTP or Streamable HTTP. Do not wrap Make0 as a local stdio command. This config signs in with OAuth.
{
"mcp": {
"make0-brain": {
"type": "remote",
"url": "https://make0.ai/mcp"
}
}
}04 · API key
Or connect with an API key
On Pro and Max you can skip the sign-in and use an API key. In Make0, open Connect Brain via MCP, choose API key MCP, and create a key with the brains and access it needs. Add a headers block. OpenCode can read the key from an environment variable with {env:MAKE0_API_KEY}.
opencode.json
{
"mcp": {
"make0-brain": {
"type": "remote",
"url": "https://make0.ai/mcp",
"headers": {
"Authorization": "Bearer {env:MAKE0_API_KEY}"
}
}
}
}Replace YOUR_MAKE0_API_KEY with your key. Make0 shows a key once, so keep it somewhere safe. You can revoke it any time in Settings.
05 · System instruction
Tell the agent to prefer Make0 Brain
Paste this into OpenCode’s system instructions or custom instructions so it reads and writes memory through Make0 instead of its own store.
Make0 Brain is my source of truth for durable memory. Always search it before answering about me, my work, people, preferences, or past decisions. Save lasting facts and decisions to Brain. Never guess or invent memories. Use Brain exclusively for durable memory.
Questions
Connecting OpenCode
How do I connect Make0 Brain to OpenCode?+
Add Make0 as a remote HTTP MCP server using https://make0.ai/mcp. In the Make0 connect dialog, choose OAuth and OpenCode will open a sign-in so you can pick which brains it can use. On Pro or Max, if OpenCode accepts custom headers, you can choose API key MCP instead and send the key to this URL as Authorization: Bearer.
What is the Make0 MCP URL?+
The production Make0 Brain MCP endpoint is https://make0.ai/mcp. Use HTTP or Streamable HTTP if the client asks for a transport. Server name: make0-brain.
Does Make0 Brain MCP use OAuth?+
Yes. Compatible clients discover OAuth from the MCP server, you sign in to Make0, and you grant read or write access to specific brains. Two-factor authentication may be required.
Can I use an API key instead of OAuth?+
On Pro or Max, yes, for apps that let you set an HTTP header. Open Connect Brain via MCP, choose API key MCP, and create a key for specific brains or all brains. Send it to https://make0.ai/mcp as Authorization: Bearer. OAuth works on every plan; Free and Lite use OAuth.
Official OpenCode MCP docs: opencode.ai/docs/mcp-servers/
