Hero Background

Next-Gen App & Browser Testing Cloud

Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud
ProductAI

One Binary, Three Modes: How Kane CLI Runs

Kane CLI runs the same way everywhere through three modes: interactive TUI for humans, headless for scripts, agent mode for AI and CI. One syntax, one flag.

Author

Bhawana

Author

June 18, 2026

Most tools make you choose a product for each context. One for local work, another for CI, a third for whatever the agent needs. Kane CLI does not. It has one binary and three modes, and you pick the mode with a flag.

Same syntax, same objectives, same engine. Only the output and the surface change.

Interactive TUI for Exploring and Debugging by Hand

Run kane-cli with no arguments and you get a full terminal interface. A chat prompt, a status bar, and a step tree that fills in as the agent thinks, observes the page, and acts.

The browser is headed, so you see what the agent sees. State persists across runs in a session, which makes multi-step debugging iterative without re-running earlier steps. This is the inner-loop mode, for when you are building and want to watch.

Headless Mode for Scripts and Quick One-Offs

Add --headless and the interface goes away. Kane CLI streams progress to stderr, prints the final result as a single JSON object on stdout, and exits with a status code.

kane-cli run "verify the homepage loads" --headless > result.json

No display server, no UI, nothing to click. This is the mode for a shell script or a quick one-off where you just want the result captured into a file or a variable.

Agent Mode for AI Coding Agents and Pipelines

Add --agent --headless and the output becomes structured NDJSON, one JSON object per line. The interface is fully suppressed and stdin is not used.

kane-cli run "log in and assert the dashboard shows 'Welcome'" --agent --headless

Each event in the run becomes a typed line, and the final run_end line carries the full result. This is what AI coding agents and CI runners consume, because they need machine-parseable output, not prose.

Note

Note: Want to try all three from your terminal? Start free. Try Kane CLI

How to Pick the Right Mode for the Job

Kane CLI three modes compared

The rule is short. Debugging at your workstation, use the TUI. A quick scripted one-off, use headless. An AI agent, a GitHub Actions job, or a cron run, use agent mode with headless. A live demo with a visible browser, back to the TUI.

One thing worth knowing for automation: the ask_user prompt auto-disables when stdin is not a terminal, so in CI and agent contexts it never blocks a run.

Note

Note: Want the full mode matrix and flags? Read the Kane CLI docs. Read the docs

The Same Engine Underneath Every Mode

Switching modes does not change what Kane CLI does. It drives a real Chrome browser, runs your plain English objective, and returns pass or fail. The mode only decides how the result reaches you.

Note

Note: Want to see how it is wired? Open the repo. Open the repo

One binary covers your laptop, your scripts, your agents, and your pipeline. You learn the objectives once, then choose a flag for wherever the run needs to happen.

Author

Bhawana is a Community Evangelist at TestMu AI with over 3 years of experience creating technically accurate, strategy-driven content in software testing. She has authored 50+ blogs on test automation, cross-browser testing, mobile testing, and real device testing. She also serves as Product Marketing Manager for Kane CLI, the command-line tool that runs browser automation from the terminal using natural-language flows in a real Chrome browser. Bhawana is certified in KaneAI, Selenium, Appium, Playwright, and Cypress, reflecting her hands-on knowledge of modern automation practices. On LinkedIn, she is followed by 6000+ QA engineers, testers, AI automation testers, and tech leaders.

Open in ChatGPT Icon

Open in ChatGPT

Open in Claude Icon

Open in Claude

Open in Perplexity Icon

Open in Perplexity

Open in Grok Icon

Open in Grok

Open in Gemini AI Icon

Open in Gemini AI

Copied to Clipboard!
...

3000+ Browsers. One Platform.

See exactly how your site performs everywhere.

Try it free
...

Write Tests in Plain English with KaneAI

Create, debug, and evolve tests using natural language.

Try for free

Did you find this page helpful?

More Related Hubs

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests