OpenCode Compatibility
What OpenCode configuration works in crabcode and what is crabcode-specific.
Treat it like OpenCode
Don't think CrabCode as another agent config to manage, just treat it like configuring OpenCode.
Most OpenCode docs apply directly: config is JSON/JSONC, project assets live under .opencode/, and command files use the OpenCode markdown command format. crabcode adds a small terminal-specific layer for notifications and theme selection.
Compatibility map
Blank cells mean that runtime behavior is not supported by that project today. ❌ means crabcode intentionally ignores the OpenCode setting.
MCP notes
Use the OpenCode MCP docs for the config shape. crabcode reads OpenCode v2 mcp.servers.<name> and still accepts the older mcp.<name> map. Local stdio servers and remote HTTP servers are supported, and discovered MCP tools are registered into the normal tool list. Only enabled servers are exposed to the model. disabled: true (OpenCode v2) and enabled: false both keep a server configured without connecting it. The /mcp toggle drops those schemas from the next request.
In /mcp, space toggles a server. Enter opens that server: status, auth, URL or command, the config file that won (project or global, crabcode or OpenCode), capabilities, and tool count, then reauthenticate, clear authentication, or enable/disable. Reauthenticate opens another page. Enter opens the default browser; the link row copies it. crabcode mcp auth <name> does the same from the shell. Tokens are stored in ~/.local/state/crabcode/mcp-auth.json.
crabcode mcp add writes mcp.servers.<name> into the crabcode config layer: the project file (.crabcode/crabcode.jsonc when none exists yet) or, with --global, the global crabcode file. Adding to a file that already uses mcp.<name> keeps that legacy entry and writes new servers under mcp.servers. Updating a legacy name replaces it in place.
crabcode mcp add context7 --url https://mcp.context7.com/mcp
crabcode mcp add everything --env LOG_LEVEL=debug -- npx -y @modelcontextprotocol/server-everything
crabcode mcp add context7 --url https://mcp.context7.com/mcp --header 'CONTEXT7_API_KEY={env:CONTEXT7_API_KEY}'MCP server enabled flags are respected. The remote UI can toggle configured servers, and those overrides are persisted in crabcode preferences. MCP resources are not exposed as separate resource-list/read tools yet; tool calls are supported.