How do I install and use Kunya IDE CLI?

Last updated

Install Kunya IDE CLI on macOS or Linux with `curl -fsSL https://kunya.ai/install-cli.sh | sh`, or on Windows PowerShell with `irm https://kunya.ai/install-cli.ps1 | iex`. The installer verifies the SHA-256 checksum and bootstraps a private Node.js 22 runtime automatically if needed. Then run `kunya login` to sign in via browser OAuth (or set `KUNYA_API_KEY`) and run `kunya` inside any repository.

1. Install (zero prerequisites)

  • macOS / Linux:
    curl -fsSL https://kunya.ai/install-cli.sh | sh
    
  • Windows (PowerShell):
    irm https://kunya.ai/install-cli.ps1 | iex
    

2. Sign in

  • Interactive machines: run kunya login to authenticate in your browser (email, Google, GitHub, and 2FA supported).
  • CI/CD & headless servers: export KUNYA_API_KEY=kunya_... from your Kunya dashboard.

3. Essential workflows

CommandWhat it does
kunyaStart interactive multi-file coding agent in the current project
kunya -p "fix failing tests" --max-budget-usd 1.50Run headless with a strict dollar spend limit
kunya --worktree feat-refactorRun edits on an isolated git worktree branch
/model claude-sonnet-5-5Switch models mid-session (100+ models + KunyaV2 auto-router)
/rewindRoll back the previous turn's file edits instantly
kunya doctorVerify auth, API connectivity, OS sandbox, PTY, and ripgrep
kunya updateSHA-256 verified atomic self-update
kunya mcp serveExpose sandboxed workspace tools over stdio MCP

Pricing & access

Kunya IDE CLI works with pay-as-you-go credit packs starting at $4.99 (375 credits, one-time — no monthly subscription required), or on any paid Kunya plan starting at Starter ($19/month). Purchased credits unlock the CLI and full model catalog immediately, never reset at month-end, and require no separate CLI seat add-on.