Connect OpenCode to ChatBotKit
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 ChatBotKit
A preset of real ChatBotKit operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.
Connect ChatBotKit
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
ChatBotKit
25 toolsList one page of bots; reuse the returned cursor for the next page.
Fetch a bot by its ID.
Create a bot with optional model and knowledge configuration.
Update supplied bot fields; omitted fields stay unchanged.
Delete the specified bot.
List one page of conversations; reuse the returned cursor for the next page.
Fetch a conversation by its ID.
Create a conversation initialized from an existing bot.
Send a user message and receive the generated response; may use ChatBotKit credits.
List one page of messages from a conversation.
Delete the specified conversation.
List one page of datasets; reuse the returned cursor for the next page.
Fetch a dataset by its ID.
Create a knowledge dataset.
Search a dataset for matching knowledge records.
List one page of contacts; reuse the returned cursor for the next page.
Fetch a contact by its ID.
Create a contact with the supplied profile fields.
Update supplied contact fields; omitted fields stay unchanged.
Delete the specified contact.
List one page of records in a dataset.
Fetch a record from the selected dataset.
Add text to a dataset as a knowledge record.
Replace the text and optional source of a knowledge record.
Delete a record from the selected dataset.
About OpenCode
Frequently asked questions
More ways to connect
More tools for OpenCode
Use ChatBotKit with other agents
Open your OpenCode agent in one click.
NoClick runs OpenCode for you with ChatBotKit wired in as tools. Connect your account and run.