Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AGENT_GATEWAY_PI_MODELNoDefault Pi model; defaults to 'opencode-go/deepseek-v4-flash'.opencode-go/deepseek-v4-flash
AGENT_GATEWAY_PI_COMMANDNoExecutable for PI provider.
AGENT_GATEWAY_CODEX_MODELNoDefault Codex model.
AGENT_GATEWAY_PI_PROVIDERNoDefault Pi provider; defaults to 'opencode-go'.opencode-go
AGENT_GATEWAY_KIMI_COMMANDNoExecutable for KIMI provider.
AGENT_GATEWAY_CODEX_COMMANDNoExecutable for CODEX provider.
AGENT_GATEWAY_ZCODE_COMMANDNoExecutable for ZCODE provider. Overrides auto-detection.
AGENT_GATEWAY_CLAUDE_COMMANDNoExecutable for CLAUDE provider.
AGENT_GATEWAY_PI_API_KEY_ENVNoWindows user-environment key read for Pi; defaults to 'OPENCODE_API_KEY'.OPENCODE_API_KEY
AGENT_GATEWAY_PI_PREFIX_ARGSNoJSON array inserted before normal CLI arguments for PI provider.
AGENT_GATEWAY_CLAUDE_CLEAN_ENVNoWhen set to '1', removes Anthropic endpoint overrides only for the Claude child process.
AGENT_GATEWAY_KIMI_PREFIX_ARGSNoJSON array inserted before normal CLI arguments for KIMI provider.
AGENT_GATEWAY_CODEX_PREFIX_ARGSNoJSON array inserted before normal CLI arguments for CODEX provider.
AGENT_GATEWAY_ZCODE_PREFIX_ARGSNoJSON array inserted before normal CLI arguments for ZCODE provider.
AGENT_GATEWAY_CLAUDE_PREFIX_ARGSNoJSON array inserted before normal CLI arguments for CLAUDE provider.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
agents_listA

List supported local CLI agents and their structured transport, resume, and permission capabilities.

agents_spawnA

Start a local CLI agent asynchronously and return a task id immediately. Use read-only unless edits are required. Parallel write tasks must use independent Git worktrees.

agents_resumeA

Resume a completed CLI agent session as a new asynchronous task. Never use this to inject into a session still open in an interactive TUI.

agents_statusB

Return the current state of an asynchronous agent task.

agents_waitA

Wait for an agent task to reach a terminal state, bounded by wait_seconds.

agents_logsA

Read agent stdout/stderr from a character cursor. Pass the returned cursor to fetch only new output.

agents_cancelA

Cancel a running agent task. This does not attach to or modify unrelated interactive TUI sessions.

kimi_statusA

Check whether the local Kimi Code CLI is callable and report its version.

kimi_runA

Start a new non-interactive Kimi Code agent session in a working directory. The Kimi CLI may read, edit, and run commands in that directory. Scope the prompt and work_dir carefully.

kimi_resumeA

Resume a Kimi Code session. Do not resume a session that is still open in an interactive TUI, because two writers can race on the same session.

kimi_list_sessionsA

List local Kimi Code sessions, optionally filtered by working directory.

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/Kvxw1105/agent-gateway-mcp'

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