OpenCode / OpenChamber Integration

Two ways to connect OpenCode (and OpenChamber, which runs on the OpenCode SDK) to ZoidMatter.

1. Plugin (recommended)

A first-class OpenCode plugin with custom tools (zoid_recall, zoid_retain, zoid_status), automatic harness:/machine:/os: tagging on every retain, a compaction hook that injects memory context into long-session summaries, and a session-idle consolidation hook. Ships with the zoidmatter-memory Agent Skill.

Quick Install

# Windows (PowerShell)
.\scripts\install-plugin.ps1 -BankId ctutor

# macOS/Linux
./scripts/install-plugin.sh --bank-id ctutor

Options: -BankId/--bank-id (default "default"), -ApiKey/--api-key, -Force/--force.

2. MCP Server

Connect the full 25+ tool MCP surface via HTTP. Set the endpoint and start the API:

export ZOIDMATTER_MCP_URL=http://localhost:8888/mcp
export ZOIDMATTER_API_URL=http://localhost:8888
export DATABASE_URL=postgresql://zoidmatter:***@localhost:5432/zoidmatter
rtk cargo build --workspace

Memory Context Injection

Configurable via memory_context_limit (default 4000 chars), memory_per_type (percentage allocation by memory type), memory_per_turn_limit, and memory_priority_inject (types always injected).