Install directly from npm using bun x:
bun x gm-kilo@latestThis command will automatically install gm-kilo to the correct location for your platform and restart Kilo to activate.
Windows and Unix:
git clone https://github.com/AnEntrypoint/gm-kilo ~/.config/kilo/plugin && cd ~/.config/kilo/plugin && bun installWindows PowerShell:
git clone https://github.com/AnEntrypoint/gm-kilo "\$env:APPDATA\kilo\plugin" && cd "\$env:APPDATA\kilo\plugin" && bun installKilo uses the OpenCode configuration format. Create or update ~/.config/kilo/opencode.json:
{
"\$schema": "https://opencode.ai/config.json",
"mcp": {
"dev": {
"type": "local",
"command": ["bun x", "mcp-gm@latest"],
"timeout": 360000,
"enabled": true
},
"code-search": {
"type": "local",
"command": ["bun x", "codebasesearch@latest"],
"timeout": 360000,
"enabled": true
}
}
}Update ~/.config/kilo/kilocode.json to reference the plugin:
{
"\$schema": "https://kilo.ai/config.json",
"default_agent": "gm",
"plugin": ["/home/user/.config/kilo/plugin"]
}Replace /home/user with your actual home directory path.
Start Kilo and verify the tools appear:
kiloCheck MCP tools are connected:
kilo mcp listYou should see dev and code-search marked as connected.
- MCP tools - Code execution (
dev) and semantic search (code-search) - State machine agent - Complete
gmbehavioral rule system - Git enforcement - Blocks uncommitted changes and unpushed commits on session idle
- AST analysis - Automatic codebase analysis via mcp-thorns on session start
- .prd enforcement - Blocks exit if work items remain in .prd file
MCP tools not appearing:
- Verify
~/.config/kilo/opencode.jsonexists with correct MCP server definitions - Check that
pluginpath inkilocode.jsonpoints to the correct directory - Run
kilo mcp listto verify servers are connected - Restart Kilo CLI completely
Plugin not loading:
- Verify plugin path in
kilocode.jsonis absolute (e.g.,/home/user/.config/kilo/plugin, not relative) - Check
index.jsandgm.mjsexist in the plugin directory - Run
bun installin the plugin directory to ensure dependencies are installed
The plugin activates automatically on session start once MCP servers are configured.