Crux + CruxCLI / OpenCode

CruxCLI is a hard fork of OpenCode, rebranded for the Crux ecosystem. Both connect to Crux via MCP.

Setup

# Adopt the project
crux adopt cruxcli   # or: crux adopt opencode

# Or manually create .cruxcli/cruxcli.jsonc:
{
  "mcp": {
    "crux": {
      "type": "local",
      "command": ["/path/to/crux", "mcp", "start"],
      "environment": {
        "CRUX_HOME": "~"
      }
    }
  }
}

MCP Integration

All 57 Crux MCP tools are available. The Rust binary starts in under 1ms.

Supported Features

Feature Support
MCP Tools (57) Full
Knowledge lookup Yes
Session state Yes
Session recovery Yes
Modes (24) Yes
Corrections Yes
Safety pipeline (7 gates) Yes
Impact analysis (AST) Yes
Memory system Yes
Git context Yes

Tool Switching

# Switch to CruxCLI from another tool
crux switch cruxcli

# Switch away
crux switch claude-code

Session state, knowledge, corrections, and handoff context transfer automatically.

See Also