Claude Code × OpenCode
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OPENCODE_URL | No | Server URL (otherwise: `opencode service status`). | |
| OPENCODE_PASSWORD | No | Basic auth password (otherwise: read from the service file). | |
| OPENCODE_SERVICE_FILE | No | JSON file holding `password` (default: `~/.config/opencode/service.json`). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| oc_delegateA | Hand a task to an OpenCode agent (an autonomous sub-agent with its own tools: files, shell, web, MCP, skills). Creates a new session (or continues |
| oc_delegate_parallelA | Start several independent OpenCode tasks at once (one session each, with any model/agent/skills) and wait for all of them. Built for fan-out: multi-angle research, independent files, model comparison. |
| oc_sendB | Send a follow-up message (or a slash command, or skills) to an existing OpenCode session, then wait for the answer. |
| oc_waitA | Wait until an OpenCode session started in the background (or unblocked) finishes, then return its result. Also stops when the agent is waiting for a permission or an answer to a question. |
| oc_resultA | Return the state and content of a session without waiting: final answer, tools, files changed, cost, and pending requests. |
| oc_pendingA | List the permission requests and questions (forms) blocking an OpenCode session, or all of them on the server if no session is given. |
| oc_answerB | Unblock a session: grant/deny a permission (request_id + decision) or answer a form (form_id + answer). |
| oc_interruptC | Stop the current turn of an OpenCode session. |
| oc_sessionsB | List OpenCode sessions (most recent first), filtered by directory, text or parent. |
| oc_sessionC | Actions on a session: info, diff (files changed), fork, compact, rename, archive, delete, set_model, set_agent, shell (run a shell command in the session), load_skill, revert (undo changes from a message on), context (context/tokens), export. |
| oc_modelsA | List the models available in OpenCode (every connected provider) with prices and variants (reasoning levels). Filter by text, provider or free only. |
| oc_catalogB | Read what OpenCode has available: agents, skills, commands (slash), mcp (MCP servers), providers, integrations, plugins, config, projects, worktrees, websearch_providers, info. |
| oc_api_opsA | List the ~120 operations of the OpenCode API (operationId, method, path, parameters), with a filter. With |
| oc_apiC | Raw access to the whole OpenCode API (worktrees, MCP, credentials, integrations, web search, files, terminals, config…). Give an operationId (see oc_api_ops) or method+path. Path parameters are filled from |
| oc_statusB | Check the connection to the OpenCode service (starting it if needed) and report version, URL, default model and how many models, agents and skills are available. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 15 tools
The core workflows are clearly separated: oc_delegate creates work, oc_send continues it, oc_delegate_parallel fans out, and oc_wait/oc_result/oc_pending differ in whether they block or inspect state. Some boundaries are softer, especially between oc_result, oc_wait, oc_pending, and oc_session info/context, and oc_api overlaps every other tool as a raw escape hatch.
All tools share an oc_ prefix and lowercase snake_case, which makes them easy to scan as a family. The convention mixes resource nouns (oc_sessions, oc_models, oc_catalog) with action verbs (oc_send, oc_wait, oc_interrupt), but the pattern remains readable.
Fifteen tools is at the upper end of the usual 3-15 range but still appropriate for an integration surface covering delegation, sessions, models, permissions, catalog, and raw API access. Each tool has a distinct role rather than padding the count.
The surface covers the full OpenCode lifecycle: starting and continuing sessions, parallel delegation, waiting/results, interruption, permission/form answers, session management, catalog discovery, model listing, and raw API access. The oc_api/oc_api_ops pair provides an escape hatch for any specialized operation not exposed directly.