Connect KaKeKiKoKu to a multi-model coding agent through local MCP
This guide covers integrating KaKeKiKoKu with OpenCode, an open-source coding agent available as a terminal interface, desktop app, and IDE extension.
OpenCode is model-agnostic. You can connect it to commercial, open-source, cloud, or local providers and switch models without changing the KaKeKiKoKu integration.
This guide covers native Windows and Linux. The npm proxy route was validated on 22 July 2026 with OpenCode Desktop 1.18.4, KaKeKiKoKu 1.15.1, @wuniq/mcp 1.0.1, and Windows 11 Home build 26200. Linux remains Not tested.
OpenCode does not support KaKeKiKoKu channels today. KaKeKiKoKu therefore works in Precise mode: the model can use KaKeKiKoKu MCP tools, while KaKeKiKoKu UI actions that would push messages to the AI copy text to the clipboard for you to paste.
Before you start the KaKeKiKoKu integration flow, you need:
Windows and WSL are different environments. The Windows instructions below assume OpenCode and the KaKeKiKoKu npm proxy run natively on Windows. If OpenCode runs inside WSL, do not point it at the Windows alias
wuniq-mcp.exeor assume the environments are interchangeable. That cross-environment combination is not covered by this guide.
OpenCode publishes several installation methods. Two common choices are:
npm install -g opencode-ai
OpenCode also documents Chocolatey, Scoop, Mise, Docker, and downloadable binaries. Run it from a native Windows terminal for the KaKeKiKoKu configuration on this page.
curl -fsSL https://opencode.ai/install | bash
OpenCode also documents npm, Homebrew, Arch packages, Docker, and downloadable binaries.
After installation, open your project directory and run:
opencode
If OpenCode is new to you, connect a provider and complete a small task before adding KaKeKiKoKu. This separates model or account setup problems from MCP setup problems.
↑ Back to topOpenCode reads MCP servers from its regular configuration under the mcp key. A project configuration is the clearest option because it travels with the workspace and keeps KaKeKiKoKu scoped to that project.
opencode.json.wuniq entry inside the existing mcp object.{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"wuniq": {
"type": "local",
"command": ["npx", "-y", "@wuniq/mcp@1.0.1"],
"enabled": true,
"timeout": 30000
}
}
}
Linux. Install KaKeKiKoKu from the Snap Store first:
sudo snap install wuniq
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"wuniq": {
"type": "local",
"command": ["/snap/bin/wuniq.wuniq-mcp"],
"enabled": true,
"timeout": 30000
}
}
}
The Windows example uses the public KaKeKiKoKu npm proxy and is the route covered by the measured validation above. It requires Node.js and npm. If you prefer the direct Microsoft Store alias, replace the command array with ["wuniq-mcp.exe"]. The longer timeout gives KaKeKiKoKu enough time to start and expose its tools on machines where the first launch takes more than OpenCode's short default discovery window.
If you want KaKeKiKoKu available in every OpenCode workspace, put the same mcp entry in OpenCode's global configuration instead:
%USERPROFILE%\.config\opencode\opencode.json
~/.config/opencode/opencode.json
Project configuration overrides global configuration when both define the same setting.
Windows path note. The validated npm route avoids protected Microsoft Store paths. If you use the direct alias, use
wuniq-mcp.exe; do not point OpenCode at an absolute path underC:\Program Files\WindowsApps\..., where external MCP clients can hit Permission denied or EPERM.
Close any existing OpenCode process, open a new terminal in the project, and run:
opencode mcp list
KaKeKiKoKu should appear as a configured local server. If it does not, check which opencode.json OpenCode is loading and validate the JSON.
For the current schema and configuration precedence, see OpenCode's official MCP servers and configuration pages.
↑ Back to topMCP registration gives OpenCode the KaKeKiKoKu tools. Startup instructions tell its model to use them at the beginning of every session.
AGENTS.md if it does not already exist.# KaKeKiKoKu Studio (Knowledge Engine)
At the start of every session, run `open list` using the KaKeKiKoKu MCP tool. If it returns projects, `open` each one. If the list is empty, proceed normally — the user may open projects later from the KaKeKiKoKu UI. Never assume the working directory is a KaKeKiKoKu project; the working directory may be a container folder holding multiple projects. Only open paths that `open list` explicitly returns.
Before working on any code file, `read` its KaKeKiKoKu sidecar for context. After changing code, run `sync`.
OpenCode also supports a global instructions file at ~/.config/opencode/AGENTS.md. The project file is recommended for KaKeKiKoKu because it keeps the workflow visible to everyone working in that repository.
↑ Back to topIf you already use
CLAUDE.md. OpenCode can read it as a fallback, butAGENTS.mdtakes precedence when both exist. Put the KaKeKiKoKu block in the file OpenCode actually loads; do not maintain conflicting copies.
opencode.json and AGENTS.md.Use opencode mcp list before opening the interface if you want to confirm that the MCP configuration is visible independently of the model.
AGENTS.md.Run open list with the KaKeKiKoKu tool.
Read the project index with KaKeKiKoKu.
The model should call a tool whose name starts with the configured KaKeKiKoKu server name. If it answers from general memory, ask explicitly to use the KaKeKiKoKu MCP and re-check AGENTS.md.
In Precise mode, KaKeKiKoKu cannot push messages into OpenCode. The daily flow is:
AGENTS.md should make the model open KaKeKiKoKu projects automatically. If not, ask it to run open list with the KaKeKiKoKu tool.sync when you want it to reconcile code and context.↑ Back to topRecommended KaKeKiKoKu configuration. Go to KaKeKiKoKu > Settings > Application > AI Sync and choose Precise mode.
KaKeKiKoKu connects to OpenCode, not to a particular model provider. Changing models does not require changing the KaKeKiKoKu MCP entry or the startup instructions.
OpenCode supports a broad range of commercial, open-source, cloud, and local models. The provider and model are the user's choice; KaKeKiKoKu does not prefer, require, endorse, or depend on any of them.
Instruction following matters. A working MCP connection does not guarantee that every model will act on
AGENTS.mdwithout prompting. During the Windows validation, two free preview models received and understood the startup instructions and usedopen,read, andsynccorrectly when asked, but did not reliably runopen liston their own at session start. If you want a seamless KaKeKiKoKu workflow, choose a model with strong instruction-following and tool-use behavior. Otherwise, prompt it explicitly to runopen list.
Check OpenCode's official provider documentation and current OpenCode Go model list before choosing a plan.
A large context window can help long agentic sessions, but KaKeKiKoKu does not require the whole repository to be injected at once. Its search and read tools load project knowledge progressively.
↑ Back to topopencode mcp list does not show KaKeKiKoKuopencode.json or opencode.jsonc.~/.config/opencode/.wuniq is inside the top-level mcp object.mcp object, merge the entry instead of creating a duplicate JSON key.Keep "timeout": 30000 in the KaKeKiKoKu MCP entry. Then close OpenCode completely and retry. The setting controls how long OpenCode waits for the local server to expose its tools.
The Windows setup in this guide was validated with OpenCode and npx running natively on Windows. A client inside WSL runs in a Linux environment with different paths, process behavior, and permissions; the Windows alias wuniq-mcp.exe does not make those environments interchangeable. Run OpenCode natively for the Windows setup above. A cross-environment WSL-to-Windows KaKeKiKoKu bridge is not validated or documented here.
Usually the configuration points into C:\Program Files\WindowsApps\.... Replace the absolute path with:
"command": ["wuniq-mcp.exe"]
where.exe wuniq-mcp.exe returns nothingWindows cannot find the KaKeKiKoKu alias. Check that KaKeKiKoKu is installed, that it opens from the Start menu, and that %LOCALAPPDATA%\Microsoft\WindowsApps is in your PATH. Close and reopen the terminal after installing KaKeKiKoKu.
Check that the KaKeKiKoKu Snap is installed and that this command exists:
/snap/bin/wuniq.wuniq-mcp
OpenCode and KaKeKiKoKu must run under the same Linux user account.
If projects live under /mnt/, /media/, a USB drive, or a VM shared folder such as /mnt/hgfs/, grant the KaKeKiKoKu Snap access:
sudo snap connect wuniq:removable-media
Then reload the KaKeKiKoKu web UI and open the project again.
AGENTS.md is in the project root OpenCode is using.AGENTS.md. If it can quote or summarize the block, the instructions were loaded and the remaining issue is instruction-following behavior rather than MCP registration.Provider authentication, quotas, overloaded endpoints, and model-specific tool-use quality are separate from the MCP connection. Run opencode mcp list and a direct open list test before changing the KaKeKiKoKu configuration.
Email support@kakekikoku.com with your operating system, OpenCode version, the relevant opencode.json MCP entry, and the output of opencode mcp list. KaKeKiKoKu can also generate a diagnostic report from the Support function in the app.