Skip to main content
Glama
Claude Code × OpenCode

Claude Code × OpenCode

by AXLdev123

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENCODE_URLNoServer URL (otherwise: `opencode service status`).
OPENCODE_PASSWORDNoBasic auth password (otherwise: read from the service file).
OPENCODE_SERVICE_FILENoJSON 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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 session_id), picks model/agent/skills, waits for the end and returns the answer, the tools used, the files changed and the cost. Write a complete brief: the agent cannot see your conversation.

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 operation, show the detailed schema of the expected body.

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 params, the rest goes to the query string.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 15 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness5/5

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.