Connect OpenCode to Cradl 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 Cradl AI
A preset of real Cradl AI operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.
Connect Cradl 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
Cradl AI
24 toolsList the connected account's agents.
Read an agent and its resource IDs.
List one page of runs for an agent.
Start a run, optionally passing variables through to its output.
Read a run's status and output file references.
Archive a run using the documented status patch.
Delete one explicitly selected agent run.
Read an agent's processing statistics.
List one page of documents, optionally within a dataset.
Create a document record with optional inline base64 file content. If content is omitted, upload separately to the returned fileUrl before expecting predictions. Creating the record alone does not upload a file.
Read a document's metadata and file references.
Patch only supplied document metadata fields.
Delete one explicitly selected document.
List stored predictions, optionally filtered by model.
Extract structured data from an existing document using a model.
Read a stored prediction and its extracted values.
List the account's extraction models.
Read an extraction model's configuration.
List the account's human review configurations.
Read a human review configuration.
List one page of review tasks within a validation.
Create a review task; reuse an existing task when one already exists.
Read a task and its current review state.
Update review output or status, including completing or cancelling a task.
About OpenCode
Frequently asked questions
More ways to connect
More tools for OpenCode
Use Cradl AI with other agents
Open your OpenCode agent in one click.
NoClick runs OpenCode for you with Cradl AI wired in as tools. Connect your account and run.