Connect OpenCode to Relevance AI
Set up in minutes
Choose where it runs
On your computer through your own OpenCode, or hosted in the cloud. The rest of setup adapts to your choice:
Pick what it can do in Relevance AI
A preset of real Relevance AI operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.
Connect Relevance AI
One sign-in. The agent acts through your account, scoped to the operations you picked.
Add your personal MCP link
The last step mints a private MCP URL for this agent and walks you through exactly this, with your real link filled in. The page flips to Connected the moment your OpenCode first calls in. opencode mcp add only saves the config. OpenCode connects when it starts — run opencode, or restart a running one.
1. Run this in your terminal
2. Choose Remote and paste your server URL
3. Choose No when asked about OAuth authentication — the link itself is the key
<your-link> is your personal server URL — setup mints it for you.
Tools OpenCode gets
Relevance AI
14 toolsList tools in this project (published endpoint; currently unsupported by provider).
Get a tool definition (published endpoint; currently unsupported by provider).
Run a tool once. Preserve output, status and execution errors.
Start a tool job; use its returned job_id with Get Tool Job.
Poll a tool job once; keep type and last_message_id for the next poll.
List project agents (published endpoint; currently unsupported by provider).
Get an agent definition (published endpoint; currently unsupported by provider).
Send a user message to start an agent or continue a conversation; returns job metadata, not the agent's final answer.
List agent conversations (published endpoint; currently unsupported by provider).
List knowledge tables (published endpoint; currently unsupported by provider).
Get knowledge table metadata (published endpoint; currently unsupported by provider).
Read/search knowledge rows (published endpoint; currently unsupported by provider).
Add text or JSON documents to a table (published endpoint; currently unsupported by provider).
Delete one knowledge row (published endpoint; currently unsupported by provider).
About OpenCode
Frequently asked questions
More ways to connect
More tools for OpenCode
Use Relevance AI with other agents
Open your OpenCode agent in one click.
NoClick runs OpenCode for you with Relevance AI wired in as tools. Connect your account and run.