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 loginto 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
| Command | What it does |
|---|---|
kunya | Start interactive multi-file coding agent in the current project |
kunya -p "fix failing tests" --max-budget-usd 1.50 | Run headless with a strict dollar spend limit |
kunya --worktree feat-refactor | Run edits on an isolated git worktree branch |
/model claude-sonnet-5-5 | Switch models mid-session (100+ models + KunyaV2 auto-router) |
/rewind | Roll back the previous turn's file edits instantly |
kunya doctor | Verify auth, API connectivity, OS sandbox, PTY, and ripgrep |
kunya update | SHA-256 verified atomic self-update |
kunya mcp serve | Expose 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.