# Kimi Code CLI vs Claude Code

> Kimi Code CLI is Moonshot AI's open-source terminal coding agent: it reads and edits code, runs shell commands, searches files and fetches web pages; Claude Code is Anthropic's agentic coding tool: it reads your codebase, edits files and runs commands, in the terminal and beyond, driven by Claude models. Side by side, with every command checked.

_Updated November 23, 2026 · Checked against Kimi Code CLI 2.1.1 and Claude Code 2.1.308 in EnvHaven v1.9.0_

|  | Kimi Code CLI | Claude Code |
| --- | --- | --- |
| Made by | Moonshot AI | Anthropic |
| Kind | Coding agent | Coding agent |
| Open source | Yes, MIT | No |
| Models | Moonshot AI models | Anthropic models |
| Install | `curl -fsSL https://code.kimi.com/kimi-code/install.sh \| bash` | `curl -fsSL https://claude.ai/install.sh \| bash` |
| Full-access switch | `kimi --auto` | `claude --dangerously-skip-permissions` |
| Instructions file | `AGENTS.md`, `.kimi-code/AGENTS.md` | `CLAUDE.md`, `.claude/CLAUDE.md` |
| Add an MCP server | Config file | `claude mcp add` |
| Headless | `kimi -p` | `claude -p` |
| Version checked | 2.1.1 | 2.1.308 |

## How to choose

- Pick **Kimi Code CLI** if you want to read, audit or modify the agent itself: it is open source under MIT.
- If you already pay for a plan from Moonshot AI, **Kimi Code CLI** is the natural start: Kimi membership includes Kimi Code, with model access by tier; Remote Control needs a paid membership.
- If you already pay for a plan from Anthropic, **Claude Code** is the natural start: Claude Pro, Max, Ultra, Team and Enterprise plans sign in through claude.ai; API keys bill per token.
- Not sure? Run both on the same task. An EnvHaven workspace has both built in: sign in to each once from the Launch menu, give them the same prompt in two terminal windows side by side, and compare, so the comparison costs one prompt each.

## Kimi Code CLI in detail

Moonshot AI's open-source terminal coding agent: it reads and edits code, runs shell commands, searches files and fetches web pages. `--auto` starts in "Never Ask" mode: everything runs without interrupting you. `--yolo` is the milder "Ask When Needed" mode, where risky actions, questions and plans still ask. The two cannot be combined, and `-p` already runs with auto permission.

More: [Kimi Code CLI setup and commands](https://envhaven.com/agents/kimi-code-cli), [its full-access mode](https://envhaven.com/yolo/kimi-code-cli).

## Claude Code in detail

Anthropic's agentic coding tool: it reads your codebase, edits files and runs commands, in the terminal and beyond, driven by Claude models. Bypass mode runs every tool without asking, with two exceptions worth knowing. Claude Code refuses it as root or under sudo ("--dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons") unless it detects a recognized sandbox, and it ignores the setting in a project's `.claude/settings.json`. `rm` on critical paths still asks, with a two-minute countdown before it denies.

More: [Claude Code setup and commands](https://envhaven.com/agents/claude-code), [its full-access mode](https://envhaven.com/yolo/claude-code).

## Keep reading

- [Kimi Code CLI](https://envhaven.com/agents/kimi-code-cli)
- [Claude Code](https://envhaven.com/agents/claude-code)
- [Every agent compared](https://envhaven.com/compare)

Source: https://envhaven.com/compare/kimi-code-cli-vs-claude-code
