Kunya IDE CLI•v0.3.7•802 KB•macOS · Windows · Linux

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.

zsh, bash, sh · Apple Silicon, Intel & x64/arm64 Linux
$curl -fsSL https://kunya.ai/install-cli.sh | sh
Zero prerequisites — automatically bootstraps a private Node.js 22 runtime if missing and links `kunya`, `kunya-ide`, and `kunya-code`.Direct .mjs bundle
Pay-as-you-go from $4.99 · No subscription required Zero Node.js prerequisites Claude · GPT · Gemini · DeepSeek · Grok SHA-256 verified updates Privacy-first opt-out telemetry

Built for real engineering workflows

Interactive terminal sessions, CI automation, isolated git worktrees, and stdio MCP in one binary.

Interactive REPL
$ cd payments-api && kunya
Kunya IDE CLI · KunyaV2 Auto-Router · workspace-write · checkpoints ON
> Add idempotency keys to POST /v1/refunds and write regression tests
[scout] read src/routes/refunds.ts, src/db/schema.ts, tests/refunds.test.ts
- export async function createRefund(req: RefundInput) {
+ export async function createRefund(req: RefundInput, idempotencyKey?: string) {
[verify] pnpm test tests/refunds.test.ts → 14 passed (0 failed)
✓ Updated 3 files · checkpoint #4 saved (/rewind to undo) · $0.04 credits

Everything serious terminal coding demands

Engineered with the same agent harness, tool sandboxing, and prompt-caching architecture powering Kunya Desktop IDE.

100+ Models

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 kunyav2
Instant Safety

Per-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 1
Git Native

Isolated 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-auth
Automation

Headless 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 json
Security

OS 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 doctor
Extensibility

Built-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.json

Up and shipping in 60 seconds

1Install Kunya IDE CLI in one command

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
2Sign in via browser OAuth or API key

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
3Start coding interactively or run headless tasks

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-code
kunyaLaunch interactive agent REPL in the current repo
kunya -p "<prompt>"Run a non-interactive headless task (CI/CD & scripts)
kunya --worktree <name>Run edits inside an isolated git worktree branch
kunya --model <id>Pin any model (Claude, GPT, Gemini, DeepSeek, KunyaV2)
kunya --max-budget-usd 2Enforce a hard dollar spend cap on the run
kunya login / logoutAuthenticate via browser OAuth, email/2FA, or profiles
kunya doctorCheck auth, API health, sandbox isolation, PTY, ripgrep & telemetry
kunya updateCryptographically verified atomic self-update to latest release
/rewind · /model · /compactIn-session slash commands for undo, model switching & context compaction
kunya mcp serveExpose sandboxed workspace tools over stdio MCP

How Kunya IDE CLI compares

Honest breakdown against single-vendor and BYOK terminal coding agents (checked 2026-11-30).

CapabilityKunya IDE CLIClaude CodeOpenAI Codex CLIAider
AI model choice100+ models (Claude, GPT, Gemini, Grok, DeepSeek, KunyaV2 auto-router)Anthropic Claude models onlyOpenAI GPT / Codex models onlyMulti-provider via your own BYOK API keys
Prerequisites & install1-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 & /rewindBuilt-in file snapshots + /rewind & `kunya undo`Checkpoints & /rewindGit diff / external git revertAuto git commits + /undo
Isolated git worktreesBuilt-in `--worktree` create, diff, merge & removeSupported via git worktree workflowManual git worktree or cloud tasksManual 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 includedPay-as-you-go credit packs from $4.99 (no subscription required) or paid plans from $19/mo — shared credits across Web, Desktop, CLI, API & mediaClaude Pro ($20/mo) / Max ($100–$200/mo) or Anthropic APIChatGPT Plus ($20/mo) / Pro ($200/mo) or OpenAI APIOpen-source tool; pay each model provider API separately
Pay-as-you-go or subscription · One shared balance

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.

Kunya IDE CLI is a cross-platform terminal AI coding agent for macOS, Windows, and Linux. It reads and edits multi-file codebases, runs shell commands inside an optional OS sandbox, saves per-turn checkpoints for instant /rewind, and lets you switch across 100+ AI models (including Claude, GPT, Gemini, DeepSeek, and KunyaV2 auto-routing) from one account.

Explore more developer resources

Read this page as Markdown (/cli.md)