# Kane CLI for AI coding agents: test every change in a real browser.

> Kane CLI lets AI coding agents test their own changes. Claude Code, Codex CLI, Gemini CLI, Cursor and Copilot call one command, Kane CLI drives a real browser, and the agent gets an exit code and an evidence file to act on before it opens a pull request.

Canonical: https://www.testmuai.com/kane-cli/agents/  
Last verified: 2026-11-21

Get started: [Start free](https://www.testmuai.com/register/) · [Book a demo](https://www.testmuai.com/demo/?type=Kane-CLI)

## Kane CLI for coding agents, in brief

- Free to install; runs use KaneAI credits. Start with 10,000 free Kane CLI credits, valid for 30 days
- No separate paid plan: Kane CLI runs use KaneAI plan credits (Starter from $17/month, billed annually).
- Pricing source: [TestMu AI pricing](https://www.testmuai.com/pricing/) (checked 2026-11-21)

| Fact | Detail |
|---|---|
| Works with | Claude Code, Codex CLI, Gemini CLI, Cursor, Copilot |
| Install | npm install -g @testmuai/kane-cli |
| Agent contract | Exit code plus a .evidence file per run |
| Repeat runs | Saved tests can be re-run from the command line or CI |
| Agent docs | llms.txt and AGENTS.md snippets for each coding agent |
| Pricing | Free to install; runs use KaneAI credits (10,000 free for 30 days) |

## Your coding agent asks, Kane CLI verifies

1. **Add Kane CLI to the agent.** Install the CLI and paste the AGENTS.md snippet so the agent knows when to call it.
2. **The agent tests its change.** After editing code, the agent runs a plain-English check in a real browser.
3. **Act on the exit code.** Exit 0 lets the agent continue; a failure returns evidence the agent can read and fix.

## What the agent gets back from each check

- **One command.** kane-cli run with a sentence of intent; no test code to write.
- **Machine-readable result.** Exit codes and an evidence file the agent can parse.
- **Real browser, not a guess.** Each check drives Chrome locally or on TestMu AI cloud browsers.
- **Cached replay.** Unchanged steps replay from cache with no LLM cost.
- **Guides per agent.** Setup notes for Claude Code, Codex CLI, Gemini CLI and Cursor.
- **Evidence in the PR.** Reviewers open the evidence to see every step and screenshot.

## An agent that ships unchecked vs one with a test step

### Inside a coding agent session

```bash
npm install -g @testmuai/kane-cli
kane-cli login
kane-cli run "Sign in with a valid user and land on the dashboard" --agent --headless --timeout 180
```
_Commands as shown on the live Kane CLI for coding agents page._

| What matters | Agent without a test step | Agent with Kane CLI |
|---|---|---|
| Knows the change works | Only if unit tests cover it | A real-browser check passes or fails |
| What the agent reads | Its own diff | Exit code and evidence of the run |
| Reviewer's proof | The PR description | Evidence file with screenshots |
| Cost of reruns | None, nothing runs | Unchanged steps replay from cache with no LLM cost |

## More ways to test agent-written code

- [Kane CLI](https://www.testmuai.com/kane-cli/): plain-English checks as a CI step
- [Browser Cloud](https://www.testmuai.com/browser-cloud/): cloud browsers for AI agents
- [Agentic Testing](https://www.testmuai.com/agentic-testing/): what changes when agents run the tests
- [Playwright Testing](https://www.testmuai.com/playwright-testing/): run Playwright suites on the cloud
- [Web Automation Agent](https://www.testmuai.com/web-automation-agent/): web automation testing with Kane CLI

### Related pages

- [Verify a change](https://www.testmuai.com/kane-cli/agents/verify-a-change/)
- [Reproduce a bug](https://www.testmuai.com/kane-cli/agents/reproduce-a-bug/)
- [Save a test](https://www.testmuai.com/kane-cli/agents/save-a-test/)
- [Gate CI](https://www.testmuai.com/kane-cli/agents/gate-ci/)

### Docs and guides

- [Kane CLI Agent Mode docs](https://www.testmuai.com/docs/kane-cli-agent-mode)

## Questions from teams using coding agents

### How does a coding agent use Kane CLI?

The agent calls kane-cli run with a plain-English check after changing code. Kane CLI drives a real browser and returns an exit code and an evidence file.

### Which coding agents are supported?

Claude Code, Codex CLI, Gemini CLI, Cursor and Copilot can call Kane CLI from their terminal.

### Does every run call an LLM?

No. The first run works out the path. When you save it as a test, its unchanged steps replay from cache with no LLM cost; a step that broke because the page changed is re-authored.

### What does Kane CLI cost for agent use?

Kane CLI is free to install. Runs use KaneAI credits; you can claim 10,000 free Kane CLI credits valid for 30 days.

### How is this different from a browser tool for agents?

A browser tool lets an agent act on a page. Kane CLI verifies the change against acceptance criteria and returns a verdict with evidence.

## Add a test step to your coding agent

Free to install. 10,000 free Kane CLI credits, valid for 30 days.

- Start free: https://www.testmuai.com/register/
- Book a demo: https://www.testmuai.com/demo/?type=Kane-CLI
- Pricing: https://www.testmuai.com/pricing/
- Install: `npm install -g @testmuai/kane-cli`
