Connect KaKeKiKoKu to Z.ai's agentic development environment for GLM
This guide covers integrating KaKeKiKoKu with ZCode, Z.ai's desktop agentic development environment. ZCode is designed around long-running software work and is closely integrated with the GLM model family.
The current flagship path is GLM-5.2, which Z.ai presents with a one-million-token context window and multiple reasoning-effort levels. KaKeKiKoKu connects to the ZCode client through MCP; it does not call the Z.ai API or consume model credits by itself.
This guide covers Windows and Linux. ZCode's Linux build is currently distributed through its beta group. Neither combination has yet been validated by the KaKeKiKoKu author on a recorded ZCode and OS version, so the compatibility matrix marks them as Not tested.
ZCode does not support KaKeKiKoKu channels today. KaKeKiKoKu therefore works in Precise mode: GLM 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:
Open the official installation page and choose your platform:
https://zcode.z.ai/en/docs/install
On first launch, choose a project directory as the ZCode workspace and connect your Z.ai account or model provider.
↑ Back to topIf ZCode is new to you. Ask the Agent to list the files in a small workspace before adding KaKeKiKoKu. This confirms the desktop app and model connection work independently of MCP.
ZCode manages MCP servers in its settings. You can add KaKeKiKoKu directly, import it from OpenCode, or paste a standard JSON configuration.
wuniq as the server name.wuniq-mcp.exe
Linux. Install KaKeKiKoKu from the Snap Store first:
sudo snap install wuniq
/snap/bin/wuniq.wuniq-mcp
Windows path note. Use
wuniq-mcp.exe. Do not browse to an absolute path underC:\Program Files\WindowsApps\...; Windows protects that folder and external MCP clients can hit Permission denied or EPERM.
If you already followed the OpenCode annex and placed KaKeKiKoKu in OpenCode's global configuration, ZCode can import it:
~/.config/opencode/opencode.json.ZCode leaves the original OpenCode configuration untouched. If KaKeKiKoKu exists only in a project-level opencode.json, add it manually in ZCode instead; the documented importer scans OpenCode's global configuration.
ZCode accepts standard mcpServers JSON in its Full configuration mode:
{
"mcpServers": {
"wuniq": {
"command": "wuniq-mcp.exe",
"args": []
}
}
}
{
"mcpServers": {
"wuniq": {
"command": "/snap/bin/wuniq.wuniq-mcp",
"args": []
}
}
}
For the current UI and import behavior, see ZCode's official MCP Servers documentation.
↑ Back to topMCP registration gives ZCode the KaKeKiKoKu tools. The project instructions file tells ZCode Agent to use them when a new task starts.
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`.
ZCode also reads global user instructions from ~/.zcode/AGENTS.md. When both files exist, it loads the global instructions first and the current workspace instructions afterward.
↑ Back to topWorkspace root matters. ZCode does not merge multiple
AGENTS.mdfiles across nested folders and does not continuously readCLAUDE.md. Put the KaKeKiKoKu instructions in the root of the workspace ZCode actually opened.
AGENTS.md: start a new task. ZCode reads workspace instructions when a task begins.AGENTS.md.If either piece still seems stale, close ZCode completely, reopen the workspace, and begin a fresh task.
↑ Back to topAGENTS.md.Run open list with the KaKeKiKoKu tool.
Read the project index with KaKeKiKoKu.
GLM should use the KaKeKiKoKu MCP instead of answering from general model knowledge. If it does not, ask explicitly to use the KaKeKiKoKu tool and verify the instruction file location.
↑ Back to topIn Precise mode, KaKeKiKoKu cannot push messages into ZCode. The daily flow is:
AGENTS.md should make ZCode Agent 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.
ZCode is designed for the GLM family. At the time this page was reviewed, Z.ai positioned GLM-5.2 as its flagship long-horizon coding model with a one-million-token context window. ZCode also supports model connections through Z.ai, BigModel, and API keys.
Model availability, context limits, reasoning modes, prices, and quotas belong to Z.ai and can change without a KaKeKiKoKu release. Check the official ZCode documentation and GLM-5.2 announcement for the current state.
KaKeKiKoKu itself remains model-agnostic. Its search and read tools load project knowledge progressively, so it does not require the whole repository to fit into one prompt.
↑ Back to topmcpServers keys.The documented importer scans OpenCode's global configuration at ~/.config/opencode/opencode.json. A KaKeKiKoKu entry that exists only in a project's opencode.json may not appear. Add KaKeKiKoKu manually in ZCode or move the entry to OpenCode's global configuration if that matches your preferred scope.
AGENTS.mdAGENTS.md; ZCode does not merge the directory hierarchy.Usually the MCP command points into C:\Program Files\WindowsApps\.... Edit the server and use only:
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 ZCode after installing KaKeKiKoKu.
Check that the KaKeKiKoKu Snap is installed and that this command exists:
/snap/bin/wuniq.wuniq-mcp
ZCode and KaKeKiKoKu must run under the same Linux user account. Remember that ZCode's Linux distribution is currently beta.
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.
Z.ai authentication, plan limits, service availability, and GLM behavior are separate from the local MCP connection. Confirm ZCode can complete an ordinary task, then test KaKeKiKoKu with an explicit open list request.
Email support@kakekikoku.com with your operating system, ZCode version, MCP scope, configured command, and any visible error. KaKeKiKoKu can also generate a diagnostic report from the Support function in the app.
↑ Back to top