Cuckoo Code: How a Zero-Token-Cost Desktop AI Agent Works
Cuckoo Code is an open-source desktop AI agent that reuses a web chat account instead of billed API tokens. This guide explains its Electron architecture, tool-call loop, supported platforms, skills and subagents, safety controls, and installation steps, plus the limits hidden behind the zero-token-cost claim.
View 2 referencesAllow the functional cookie to save your likes. Privacy details
What is Cuckoo Code?
Cuckoo Code is a zero-token-cost AI agent desktop application that turns a web-based AI chat account into a local coding agent. It embeds the web version of a chat service in an Electron window, injects a side overlay, and lets the model call tools after the user confirms them.
The project README states that no API key is required: you sign in to the web product you already use rather than paying per token through an interface. The software is open source under GPL-3.0.
How does Cuckoo Code turn web chat into an agent?
Cuckoo Code works by guiding the model through a system prompt to emit tool calls as JavaScript code blocks in a cuckoo fenced block. The app detects those blocks, shows a preview, and after confirmation runs them in a local sandbox, then feeds the result back to the model.
That creates a think, act, observe, act again loop. The model can read a file, inspect the result, edit the file, and continue without the user copying and pasting between a chat window and an editor.
Which AI platforms does Cuckoo Code support?
Cuckoo Code ships provider modules for DeepSeek, Claude, and ChatGPT, with each module handling input-box detection, send-button detection, completion detection, and message parsing. A new window can choose a platform, and users can import a custom provider from a template.
This provider layer is the reason the tool can claim zero token cost: it depends on what the web accounts allow, not on a separately metered API. It also means behavior changes when a provider changes its web interface.
What tools can Cuckoo Code call?
Cuckoo Code exposes file and shell tools including read, readLines, write, edit, glob, grep, bash, pwsh, todoWrite, and deleteFile, plus webFetch, mysql, and several browser-window helpers. All file operations are relative to the currently bound project directory, which keeps a session from wandering across the machine.
It also supports MCP servers in Claude Desktop compatible format, with both stdio and HTTP servers. Helpers such as mcpListServers, mcpGetTools, and mcpCall let the agent discover and invoke external tools at runtime.
How do skills, agents and rules work in Cuckoo Code?
Cuckoo Code mirrors Claude Code's directory conventions. Skills are SKILL.md files in project-level .cuckoo/skills/ or user-level ~/.cuckoo/skills/; only names and descriptions are injected at startup, and the full file is read when relevant. This progressive disclosure keeps large instruction sets out of the context window until they are actually needed.
Subagents live in .cuckoo/agents/, run in an isolated context, and return only a summary to the main conversation. Rules in .cuckoo/rules/ can carry a paths field so they are injected only when the model reads a matching file, which keeps long sessions from filling up with irrelevant instructions.
What safety controls does Cuckoo Code have?
Cuckoo Code includes a 30-second command timeout, a 60-second sandbox timeout, a 1 MB output buffer, and confirmation for dangerous commands including compound commands joined by &&, ||, ;, |, or &. Web fetch can optionally reject internal network addresses to reduce SSRF risk.
These controls matter because the agent executes model-generated JavaScript locally. The README notes that the SSRF protection is opt-in through settings, so a security-conscious user should enable it explicitly rather than assuming it is on by default.
How do you install Cuckoo Code?
Cuckoo Code requires Node.js 16 or newer, with 18 or newer recommended, plus npm. The README gives a source install: clone the repository, run npm install, approve blocked Electron and esbuild postinstall scripts if your npm setup blocks them, then run npm start.
git clone https://github.com/wangyongpeng90/cuckoo-code.git
cd cuckoo-code
npm install
npm start
Prebuilt Windows and macOS installers are published on the project's releases page, which is the simpler route for most users.
What are the limits of Cuckoo Code?
The zero-token-cost claim is really a shift in billing model: you are still subject to the web account's rate limits, session rules, and terms of service. Automation through an embedded web client may be fragile if a provider changes its interface or detects automated use.
The README also states the project is for learning use and that users bear the risk of losses. It is a community project rather than a vendor-supported product, so treat confirmation prompts and sandboxing as helpful guardrails, not a substitute for reviewing commands on a machine with real credentials.
Frequently asked questions about Cuckoo Code
These questions cover the practical concerns around Cuckoo Code: why it avoids API billing, how closely it resembles Claude Code's extension model, whether it is maintained, and where to get the official code. The answers are based on the repository documentation.
Is Cuckoo Code free?
The project itself is open source under GPL-3.0 and does not charge for the software. Its "zero token cost" claim means it uses a web account rather than a metered API, so you still need an account with one of the supported providers and must respect that service's limits.
Is Cuckoo Code a fork of Claude Code?
No. It is an Electron desktop app that embeds web chat and adds a tool-call overlay. It borrows Claude Code's conventions for skills, subagents, and rules, but the code and execution model are its own.
Does Cuckoo Code work on Windows and macOS?
Yes. The README says the desktop app runs on both Windows and macOS, and the project's GitHub Actions builds installers for both platforms when a version tag is pushed. Linux is not listed among the built targets.
Where is the official repository?
The source is hosted at github.com/56218995/cuckoo-code, with an English README and releases linked from that page. Read the safety notes and the architecture guide before connecting it to a production repository.