Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TRANSPORTNoTransport backend (local-relay, future: tailscale)local-relay
RELAY_REGISTRY_DIRNoDirectory containing registration JSON files~/.local/share/opencode-relay
DISCOVERY_INTERVAL_MSNoHow often to refresh instance list (ms)30000
HEALTH_CHECK_TIMEOUT_MSNoTimeout for health-checking each instance (ms)3000
OPENCODE_SERVER_PASSWORDNoHTTP Basic auth password for opencode instances
OPENCODE_SERVER_USERNAMENoHTTP Basic auth usernameopencode

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_instances

List all discovered opencode instances across connected machines

refresh_instances

Re-scan for opencode instances, health-check each one, and return the updated list

list_sessions

List all sessions on an opencode instance, showing ID, title, message count, and status

get_session

Get session details and recent messages from an opencode instance, formatted as a readable conversation

create_session

Create a new chat session on an opencode instance

send_message

Send a message to a session on an opencode instance. Use async=true for long-running tasks (builds, multi-file edits) to avoid timeouts.

get_status

Get the status (idle/busy/retry) of all sessions on an opencode instance

abort_session

Abort a running session on an opencode instance

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/klutometis/opencode-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server