← Back to Registry
OpenCode

OpenCode

Agent

Run OpenCode, an open-source coding agent, inside agentOS.

Add to agentOS

Register the OpenCode adapter as your VM's software: [], then open a session with the opencode agent id.

import { agentOS, setup } from "@rivet-dev/agentos";
import opencode from "@agentos-software/opencode";
 
// Register the OpenCode adapter as VM software
const vm = agentOS({ software: [opencode] });
 
export const registry = setup({ use: { vm } });
 
// Then start a session from your client with the "opencode" agent id:
// const session = await agent.createSession("opencode", { env: { /* API keys */ } });
View documentation