---
title: "How do I install and use Kunya IDE CLI?"
url: "https://kunya.ai/answers/how-to-install-and-use-kunya-cli"
canonical: "https://kunya.ai/answers/how-to-install-and-use-kunya-cli"
category: "how-to"
updated: "2026-11-30"
language: "en"
---
# How do I install and use Kunya IDE CLI?

> **Direct Answer:** 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:**
  ```bash
  curl -fsSL https://kunya.ai/install-cli.sh | sh
  ```
- **Windows (PowerShell):**
  ```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
| 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.

## Related Links

- [Kunya IDE CLI overview](https://kunya.ai/cli)
- [Kunya CLI Markdown docs](https://kunya.ai/cli.md)
- [Kunya Developers & API docs](https://kunya.ai/developers)
- [Kunya pricing](https://kunya.ai/pricing)

---
HTML page: https://kunya.ai/answers/how-to-install-and-use-kunya-cli | Start free: https://kunya.ai/auth/register
