Connect OpenCode to Hex
What happens next
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 Hex
A preset of real Hex operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.
Connect Hex
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.
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.
Exact capabilities
Tools OpenCode gets
Hex
28 toolsTrigger a run of a project's latest published version.
Get the status of a single project run.
List recent runs for a project.
Cancel an in-progress run.
Download a rendered PNG of a chart/cell output from a run.
List all projects the caller can view.
Fetch metadata for a single project.
Update a project's status or endorsements.
Add or remove a project from collections.
Set workspace-wide or public access level for a project.
Add groups or change their access level on a project.
Add users or change their access level on a project.
Create a signed embed URL for a project.
List workspace users (Admin API; Team/Enterprise).
Return the token owner's user info.
Deactivate a workspace user.
List all groups.
Create a new group.
Fetch a group's details.
Rename a group or add/remove members.
Delete a group.
List all collections.
Create a collection.
Fetch a collection's details.
Edit a collection; upsert user/group/workspace access.
List configured data connections.
Edit a data connection / rotate secrets.
Ingest a semantic project from a zip (max 3 req/min).
Starting points
What you can build
Meet the runner
About OpenCode
Good to know
Frequently asked questions
Keep exploring
More ways to connect
Make it yours
Open your OpenCode agent in one click.
NoClick runs OpenCode for you with Hex wired in as tools. Connect your account and run.