Multi-Model AI Coding Agent, Right in Your Terminal
Kunya IDE CLI is a terminal-native AI coding agent for macOS, Windows, and Linux that lets developers switch between 100+ frontier models (Claude, GPT, Gemini, Grok, DeepSeek, and KunyaV2 auto-routing) in one session. It installs with a single command and zero Node.js prerequisites, checkpoints every turn with instant /rewind, isolates edits in git worktrees, runs headless in CI/CD with hard dollar budget caps, and starts at $4.99 with pay-as-you-go credit packs (no monthly subscription required) — or is included on paid Kunya plans from $19/month.
curl -fsSL https://kunya.ai/install-cli.sh | shBuilt for real engineering workflows
Interactive terminal sessions, CI automation, isolated git worktrees, and stdio MCP in one binary.
Everything serious terminal coding demands
Engineered with the same agent harness, tool sandboxing, and prompt-caching architecture powering Kunya Desktop IDE.
Switch frontier models mid-session — or let KunyaV2 auto-route
Use Claude, GPT, Gemini, Grok, DeepSeek, and Kimi inside the same terminal session without juggling separate vendor CLIs or billing accounts. KunyaV2 automatically routes scout, edit, and verify steps to the best cost/quality tier.
/model claude-sonnet-5-5 · --model kunyav2Per-turn file checkpoints & instant /rewind
Every turn snapshots touched files before writing. If a refactor takes the wrong turn, roll back one step or restore the entire session cleanly with a single command — without dirtying git history.
/rewind · kunya undo 1Isolated git worktrees for risk-free experiments
Run multi-file features in a dedicated git worktree so your active branch stays spotless. Review the full diff, merge back, or discard the branch cleanly when the agent finishes.
kunya --worktree feat-authHeadless CI/CD mode with hard USD spend caps
Pipe diffs, test logs, or issue text into non-interactive runs with structured JSON / NDJSON output, turn limits, and strict `--max-budget-usd` guards for GitHub Actions and build pipelines.
kunya -p "fix failing tests" --max-budget-usd 1.50 --output-format jsonOS sandbox isolation & granular permission modes
Choose read-only ask mode, interactive approvals, or workspace-write isolation backed by macOS Seatbelt / Linux bwrap, secret redaction, project trust prompts, and team policy enforcement.
--mode ask · --sandbox workspace-write · kunya doctorBuilt-in MCP server, hooks, and local code intel
Connect external MCP servers or expose Kunya’s sandboxed file, ripgrep, and edit tools over stdio MCP to Cursor, Claude Desktop, or custom agents. Full workspace rules (`AGENTS.md`, `KUNYA.md`) loaded automatically.
kunya mcp serve · .kunya/settings.jsonUp and shipping in 60 seconds
Run the macOS/Linux curl script or Windows PowerShell command. The installer verifies the bundle SHA-256 checksum, installs a local Node.js 22 runtime automatically if needed, and links the `kunya` command.
curl -fsSL https://kunya.ai/install-cli.sh | sh
Run `kunya login` to authorize securely in your browser (supports email, Google, GitHub, and 2FA) or export `KUNYA_API_KEY` for headless CI and SSH environments.
kunya login
Open any repository and run `kunya` for interactive multi-file agent mode, or pass `-p` with `--max-budget-usd` for scripted CI automation.
cd my-project && kunya
Essential commands & flags
Aliases: kunya · kunya-ide · kunya-codekunyaLaunch interactive agent REPL in the current repokunya -p "<prompt>"Run a non-interactive headless task (CI/CD & scripts)kunya --worktree <name>Run edits inside an isolated git worktree branchkunya --model <id>Pin any model (Claude, GPT, Gemini, DeepSeek, KunyaV2)kunya --max-budget-usd 2Enforce a hard dollar spend cap on the runkunya login / logoutAuthenticate via browser OAuth, email/2FA, or profileskunya doctorCheck auth, API health, sandbox isolation, PTY, ripgrep & telemetrykunya updateCryptographically verified atomic self-update to latest release/rewind · /model · /compactIn-session slash commands for undo, model switching & context compactionkunya mcp serveExpose sandboxed workspace tools over stdio MCPHow Kunya IDE CLI compares
Honest breakdown against single-vendor and BYOK terminal coding agents (checked 2026-11-30).
| Capability | Kunya IDE CLI | Claude Code | OpenAI Codex CLI | Aider |
|---|---|---|---|---|
| AI model choice | 100+ models (Claude, GPT, Gemini, Grok, DeepSeek, KunyaV2 auto-router) | Anthropic Claude models only | OpenAI GPT / Codex models only | Multi-provider via your own BYOK API keys |
| Prerequisites & install | 1-line installer; auto-bootstraps Node.js 22 if missing (~740 KB) | Native installer / npm (Node.js) | npm / Homebrew (Node.js or native binary) | Python 3.9+ / pip / uv |
| Per-turn checkpoints & /rewind | Built-in file snapshots + /rewind & `kunya undo` | Checkpoints & /rewind | Git diff / external git revert | Auto git commits + /undo |
| Isolated git worktrees | Built-in `--worktree` create, diff, merge & remove | Supported via git worktree workflow | Manual git worktree or cloud tasks | Manual git worktree |
| Headless CI + budget cap | `-p`, `--output-format json`, `--max-budget-usd` | `-p`, JSON stream output, max turns / spend | `codex exec` headless mode | `--message` non-interactive scripting |
| Billing & extra tools included | Pay-as-you-go credit packs from $4.99 (no subscription required) or paid plans from $19/mo — shared credits across Web, Desktop, CLI, API & media | Claude Pro ($20/mo) / Max ($100–$200/mo) or Anthropic API | ChatGPT Plus ($20/mo) / Pro ($200/mo) or OpenAI API | Open-source tool; pay each model provider API separately |
Start from $4.99 in credits — no monthly subscription required
Buy a one-time credit pack starting at $4.99 (375 credits) to unlock Kunya IDE CLI and the full model catalog with zero recurring commitment — or choose Starter ($19/mo) or Professional ($29.99/mo) for a monthly allowance. Either way, one shared balance powers Kunya IDE CLI, Desktop IDE, Web Chat, iOS & Android, and the REST API with no separate CLI seat fee. Set --max-budget-usd per run so automated scripts never surprise you.
Frequently asked questions
Installation, model access, CI usage, pricing, and security.
Explore more developer resources
Read this page as Markdown (/cli.md)Honest side-by-side comparison with pricing and trade-offs
Compare multi-model routing, worktrees, and billing
How to pick a terminal coding agent in 2026
Visual IDE for macOS, Windows, Linux plus iOS & Android
OpenAI/Anthropic-compatible API keys and MCP setup
Deterministic coding & reasoning scores across models