# Kane CLI > Kane CLI is TestMu AI's command-line testing agent: it runs a plain-English test in a real browser and returns a pass/fail exit code a coding agent can act on. Kane CLI by TestMu AI; npm @testmuai/kane-cli; skills and docs repo github.com/LambdaTest/kane-cli (Apache-2.0). Install, then sign in: - `npm install -g @testmuai/kane-cli` (Node 18+; or `brew install LambdaTest/kane/kane-cli`), then `kane-cli login --oauth`. Local browser runs need Google Chrome. - Claude Code, Codex CLI, Gemini CLI: `npx @testmuai/kane-cli-skill`, then start a new agent session. Cursor, GitHub Copilot and other agents that read AGENTS.md: `curl -fsSL https://www.testmuai.com/kane-cli-agent/AGENTS.md >> AGENTS.md` at the repository root. Runs use KaneAI credits. Kane CLI: 10,000 credits for 7 days, claimed at https://www.testmuai.com/kane-cli/. KaneAI has no free-forever plan; new accounts get a 7-day free trial (10,000 credits, 200 HyperExecute minutes across Linux, Windows, macOS and real devices, 2 concurrent AI authoring agents, 2 Test Manager licenses, 10 sessions of 10 minutes each, and authoring on KaneAI Web Cloud, KaneAI Mobile Cloud or Kane CLI; eligibility is set by the product team). The verify and fix loop, the rules for writing objectives, the NDJSON events and the exit codes are in AGENTS.md (first link under Reference). ## Guides - [Kane CLI for coding agents](https://www.testmuai.com/kane-cli/agents/): how Claude Code, Codex CLI, Gemini CLI, Cursor and GitHub Copilot use Kane CLI, the exit-code contract and links to every how-to guide - [Verify a change you just made](https://www.testmuai.com/kane-cli/agents/verify-a-change/): the after-edit check, the exact command, and how to read `run_end` and the exit code - [Reproduce a bug report](https://www.testmuai.com/kane-cli/agents/reproduce-a-bug/): turn the report into a failing run before the fix, then make the same run pass - [Save a verified run as a committed test](https://www.testmuai.com/kane-cli/agents/save-a-test/): `--name`, `_test.md`, `output-/`, `testmd run`, and replay of unchanged steps with no LLM cost - [Gate a pull request in CI](https://www.testmuai.com/kane-cli/agents/gate-ci/): the official GitHub Action, `testrun run --headless --agent`, and exit codes as the gate ## Reference - [AGENTS.md instructions for coding agents](https://www.testmuai.com/kane-cli-agent/AGENTS.md): rules, the verify and fix loop, objectives, NDJSON output and exit codes, saved tests, suites, test cases from requirements, mobile, and gating a pull request - [Kane CLI skill for coding agents](https://www.testmuai.com/docs/kane-cli-skills): install the skill for Claude Code, Codex CLI or Gemini CLI with `npx @testmuai/kane-cli-skill` - [kane-testing-skills](https://github.com/LambdaTest/kane-testing-skills): five Agent Skills for the workflow around any runner: acceptance criteria first, tests in the repo's existing framework, results only from a runner's exit code, failure triage, and a "Tested" section in the pull request; Kane CLI is the optional runner - [Agent mode and NDJSON output](https://www.testmuai.com/docs/kane-cli-agent-mode): every event type, the `run_end` fields and the exit codes an agent reads - [Command and flag reference](https://www.testmuai.com/docs/kane-cli-cli-reference): commands and flags; `kane-cli --help` prints the list for your installed version - [Kane CLI on GitHub](https://github.com/LambdaTest/kane-cli): README, install options, changelog, the skill and issues ## Comparisons - [Kane CLI vs Playwright](https://www.testmuai.com/kane-cli-vs-playwright/): a testing agent next to Playwright, its CLI, MCP server and Test Agents: who writes, runs and heals the test, CI output and cost - [Playwright CLI vs Playwright MCP, and when to add Kane CLI](https://www.testmuai.com/blog/playwright-cli-vs-mcp-vs-kane-cli/): tokens, setup, CI and who judges the result, with Cursor and Claude Code - [Kane CLI vs Cypress](https://www.testmuai.com/kane-cli-vs-cypress/): keep your Cypress specs and add a testing agent for new flows - [Kane CLI vs Selenium](https://www.testmuai.com/kane-cli-vs-selenium/): natural-language checks with exit codes next to a WebDriver suite - [Kane CLI vs Puppeteer](https://www.testmuai.com/kane-cli-vs-puppeteer/): verdicts and exit codes compared with Chrome scripting ## Optional - [Real Android and iOS devices](https://www.testmuai.com/docs/kane-cli-mobile-real-device): `--target android|ios --app ` runs on a real device in the TestMu AI cloud from any machine (kane-cli 0.9.0+, with KaneAI Max or KaneAI credits plus a Real Device Plus Automation Cloud plan); the local emulator and simulator need macOS on Apple Silicon - [Test cases from requirements](https://www.testmuai.com/docs/kane-cli-assurance): ingest a PRD or spec, approve the use cases, design tests and report coverage - [Evidence packs](https://www.testmuai.com/docs/kane-cli-evidence): what a sealed `.evidence` pack holds and how to open it - [Official GitHub Action](https://github.com/LambdaTest/kane-cli/tree/main/integrations/github-action/kane-cli-browser-run): run committed tests on pull requests with evidence and a verdict comment - [Kane CLI Cookbook](https://www.testmuai.com/kane-cli-cookbook/): recipes for network calls, console errors, cookies, local storage and generated test cases - [Verification Bench](https://www.testmuai.com/research/verification-bench/): TestMu AI's first-party nightly benchmark of Kane CLI against coding agents driving Playwright MCP