Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OC_BINNoOpenCode executable.
OC_CWDNoOpenCode working directory.
PI_BINNopi executable. Default: pi
PI_CWDNopi working dir. Default: $PWD
OC_PORTNoOpenCode server port.
PI_NAMENo--name passthrough. Default: paired-with-claude-code
OC_MODELNoOpenCode model (provider/model).
PI_MODELNo--model passthrough. Default: pi default
AGENT_BUSNoBus dir. Must match on both sides. Default: $PI_CWD/.agentbus
PI_OFFLINENoSet to 1 to skip update checks for bridge-owned pi spawns.
RESULT_CAPNoDelegated results capped at RESULT_CAP (default 8000 chars) with overflow spilled to $AGENT_BUS/results/ and a pointer returned.
OC_BASE_URLNoOpenCode base URL (for tests/attach).
BRIDGE_WARMUPNoSet to 0 to opt out of background warm-up after MCP initialize.
PI_EXTRA_ARGSNoPrepended to pi argv (tests/wrappers). Default: —
PI_SESSION_DIRNo--session-dir passthrough. Default: pi default
BUS_KEEP_CONSUMEDNoNumber of consumed bus records to keep before compaction (default 200 kept).
OC_ASK_TIMEOUT_MSNoOpenCode oc_ask wall budget.
PI_ASK_TIMEOUT_MSNoOne pi_ask wall budget. Default: 900000
PI_MAX_CONSECUTIVE_BLOCKSNoStop-hook loop cap. Default: 3

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

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources