Kode CLI

A terminal-native, multi-model coding agent that orchestrates subagents and expert-model consults across whole workflows.

Stars
★ 5.2k
Last updated
1mo ago
FARS reviewed
Nov 08, 2026
License
Apache-2.0
Primary language
TypeScript

At a glance

How it runs
CLI
Works with
Universal · cross-platformOpenAI API · Claude APIClaude Code (Partial support)
Cost
Free software; you pay for model usage
Setup effort
Low · running in minutes
You'll need
Node.jsnpmBun (development only)ripgrep (rg) or @shareai-lab/kode-ripgrep-<platform>-<arch>bubblewrap (bwrap) for Linux system sandbox (optional)Shell / CLINetwork accessLocal filesystemMCP Server
Typical use
Developers who want each task phase on a different model — o3/GPT-5 for architecture, Qwen Coder or Claude Sonnet 4 for implementation, Grok 4 for hard reasoning
Not a fit if
  • Teams that require strict permission gates by default rather than YOLO-mode execution
  • Users who want a single vendor-hosted service instead of configuring their own model endpoints and API keys
  • Teams relying on older Q&A-oriented models for long autonomous tasks
Maintenance
Commits in the last 6 monthslast commit 2026-11-02

What does this agent do, and when should you use it?

Kode is an AI coding assistant that lives in your terminal: it reads a codebase, edits files, runs shell commands, and carries multi-step development tasks to completion. Its distinguishing idea is genuine multi-model collaboration — a ModelManager holds model profiles plus main/task/compact/quick pointers, so the main loop, subagents, context compaction, and small utilities can each use a different model, switched at runtime without losing session context. Mentions like @ask-claude-sonnet-4 route to the AskExpertModel tool for isolated consultation, while @run-agent-architect or the Task tool delegate to subagent templates stored under .kode/agents. Surrounding it are MCP server support (.mcp.json), Agent Skills and a plugin marketplace, AGENTS.md instruction discovery compatible with legacy .claude layouts, and an ACP server mode via kode-acp. It ships as an npm package alongside per-platform native binaries, GitHub Releases single-file executables, and a Docker build; you bring your own model endpoints and keys.

Running kode opens an interactive terminal prompt that completes slash commands, file paths, subagents, configured models, and shell commands. On start it walks instruction files from the Git repo root down to the working directory, preferring AGENTS.override.md over AGENTS.md per directory (one file each) and also reading a legacy CLAUDE.md; discovered files are concatenated root-to-leaf with a 32 KiB cap adjustable via KODE_PROJECT_DOC_MAX_BYTES. Model profiles and pointers are managed through /model or kode models import/export YAML. The @ask-<model> mention invokes the AskExpertModel tool, which runs the expert model out-of-band so its answer doesn't disturb the main conversation, and @run-agent-<type> or Task(subagent_type: ...) hands work to agent templates loaded from .kode/agents and .claude/agents. Tools cover file reads, edits and writes, Bash execution, WebFetch/WebSearch, and MCP servers declared in .mcp.json/.mcprc. /cost reports per-model token usage and spend, kode plugin install pulls skill packs from local paths or GitHub owner/repo marketplaces into SKILL.md-based skills and slash commands, and kode-acp exposes the whole thing as a stdio JSON-RPC ACP agent for clients like Toad and Zed.

  1. Developers who want each task phase on a different model — o3/GPT-5 for architecture, Qwen Coder or Claude Sonnet 4 for implementation, Grok 4 for hard reasoning
  2. Teams standardizing coding-agent instructions in AGENTS.md while keeping existing CLAUDE.md and .claude configs working
  3. Groups that want repeatable procedures packaged as SKILL.md skill packs and invoked as slash commands such as /pdf or /xlsx
  4. Users of ACP clients like Zed or Toad who need a local stdio agent backend, launched with kode-acp or kode --acp
  5. Engineers on machines where they prefer a portable single-file binary from GitHub Releases or a Docker container with mounted ~/.kode config
  6. Anyone facing a tricky bug who wants a second, stronger model consulted without polluting the main thread's context

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • npm install -g @shareai-lab/kode
  • npm install -g @shareai-lab/kode --registry=https://registry.npmmirror.com
  • npm install -g @shareai-lab/kode@dev
  • docker run -it --rm \
Environment variables
KODE_RIPGREP_PATH KODE_CONFIG_DIR OPENAI_API_KEY
Config files
HOME/.kode.json kode.json ~/.kode.json kode-models.yaml
Install notes cover
Docker

How do you install or deploy this agent?

Install globally from npm; the kode, kwa, and kd commands all become available.

npm install -g @shareai-lab/kode

If the default registry is slow (notably in China), use a mirror.

npm install -g @shareai-lab/kode --registry=https://registry.npmmirror.com

For the newest features there is a dev channel.

npm install -g @shareai-lab/kode@dev

Prefer no npm? Download a Bun-compiled single-file binary from GitHub Releases, or build the image from source.

git clone https://github.com/shareAI-lab/Kode-CLI.git
cd Kode
docker build --no-cache -t kode .

The container runs as the unprivileged node user, so create the host config paths before mounting them.

cd your-project
docker run -it --rm \
  -v "$PWD:/workspace" \
  -v "$HOME/.kode:/home/node/.kode" \
  -v "$HOME/.kode.json:/home/node/.kode.json" \
  -w /workspace \
  kode

Caveat: installing with --no-optional omits the per-platform ripgrep package, so supply a system rg or set KODE_RIPGREP_PATH. Nothing is downloaded from GitHub during install.

How do you use this agent?

Configure a model first. Global config lives in ~/.kode.json (or <KODE_CONFIG_DIR>/config.json); set it in the /model UI or import a shared YAML.

version: 1
profiles:
  - name: OpenAI Main
    provider: openai
    modelName: gpt-4o
    maxTokens: 8192
    contextLength: 128000
    apiKey:
      fromEnv: OPENAI_API_KEY
pointers:
  main: gpt-4o
  task: gpt-4o
  compact: gpt-4o
  quick: gpt-4o
kode models import kode-models.yaml
kode models list

Start an interactive session, or ask a one-shot question with -p. The default is YOLO mode with permission checks bypassed — add --safe when touching important files.

kode
kode -p "explain this function" path/to/file.js
kode --safe

Use the mention system in the prompt for expert consults, subagents, and file references.

@ask-claude-sonnet-4 How should I optimize this React component?
@run-agent-architect Design a microservices architecture for this system
@packages/core/src/query/index.ts

To serve other ACP clients, run the ACP entry point:

kode-acp
toad acp "kode-acp"

Subagent templates go in ./.kode/agents/reviewer.md and can be checked with kode agents validate.

---
name: reviewer
description: 'Review diffs for correctness, security, and simplicity'
tools: ['Read', 'Grep']
model: inherit
---

Be strict. Point out bugs and risky changes. Prefer small, targeted fixes.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

FARS trust-control audit

Not found in source — apply before daily use
  • least-privilege scoping — Grant only what the task needs: a dedicated account or read-only token, scoped to specific directories and repos.
  • confirmation before acting — Turn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.

What are this agent's strengths and limitations?

Pros
  • Multi-model orchestration is a first-class design, not a bolt-on: ModelManager profiles plus main/task/compact/quick pointers let the main loop, subagents, compaction, and utilities each use a different model, with runtime switching that keeps context
  • The @ask-<model> expert consult runs through AskExpertModel in isolation, so a second opinion doesn't derail the main conversation
  • Codex-style AGENTS.md discovery (root-to-cwd walk, AGENTS.override.md precedence, 32 KiB cap, legacy CLAUDE.md) means instruction files carry over from other agent tooling
  • Broad extension surface in one tool: MCP servers via .mcp.json/.mcprc, SKILL.md skill packs, a plugin marketplace, custom output styles, and an ACP server mode
  • Three real distribution paths — npm with per-platform native binaries, GitHub Releases single-file builds, and a Docker image — and nothing is fetched from GitHub at install time
  • No product telemetry by default; network traffic is tied to features you explicitly invoke
Limitations
  • YOLO is the default: permission checks are bypassed unless you pass --safe, which is unsafe for repos with important files or for weaker models
  • Heavy toolchain: Node.js and npm to run, Bun to develop, per-platform ripgrep packages (or system rg) for search, and bubblewrap on Linux if you want the system sandbox
  • The README warns that older Q&A-oriented models such as GPT-4o or Gemini 2.5 Pro perform poorly on sustained autonomous tasks, so results hinge on picking capable models and endpoints
  • Configuration knowledge is spread across many docs files (agents, skills, plugins, output styles, MCP, ACP, binary distribution), raising the first-day learning cost
  • You supply every provider endpoint and API key yourself; there is no hosted model or bundled quota

How does this agent compare with similar options?

The README's feature table compares Kode against a generic single-model CLI, contrasting unlimited configurable models, Option+M hot switching, parallel subagents, per-model cost tracking, per-purpose default models, and the AskExpertModel tool. It also credits anonkode for some code, gemini-cli for UI inspiration, and upstream agent CLIs for system design. All of this is the project's own framing, with no third-party benchmarks provided.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Kode CLI This agent 60 · Blocked CLIFree + model costs ★ 5.2k 1mo ago TypeScript OpenAI API · Claude API
CoreCoder 64 · Some gaps CLIFree + model costs ★ 2k 4d ago Python OpenAI API
Deep Copilot 60 · Some gaps IDE extensionFree + model costs ★ 79 6mo ago JavaScript —
Whale 56 · Major gaps CLIFree + model costs ★ 933 1mo ago Go —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Blocked
60/ 100 5-point scale 3.0 / 5
Trust 11/29
Reliability 9/14
Adaptability 14/18
Convention 14/18
Effectiveness 7/13
Verifiability 5/8
Why each dimension lost points
Trust11 / 29 · 1.9/5

The README explicitly says default YOLO mode bypasses all permission checks and can edit files and run shell commands; only safe mode requires approval for Bash and file writes. Broad agent execution by default, without default confirmation or a general recovery guarantee, crosses the grossly disproportionate permissions / destructive-default-without-consent red line, so least_privilege and user_confirmation score 0 and status is blocked. The README describes when network features are used and says telemetry is off by default; configuration guidance recommends environment variables for secrets, and settings errors avoid exposing file contents. The sandbox document also says Windows has no equivalent system sandbox and Linux requires bwrap and socat. A backup appears only in a configuration example and does not establish rollback for general actions. Package author metadata offers an attribution clue, but publisher identity remains unknown.

Reliability9 / 14 · 3.2/5

The README, package metadata, and CI broadly align: Node and Bun versions, cross-platform CI, and release steps are documented; settings load failures stop initialization and provide errors that avoid exposing contents. Linux sandboxing needs extra system packages and Windows lacks equivalent isolation, so dependency availability and failure handling are not equally complete across environments.

Adaptability14 / 18 · 3.9/5

The product targets terminal coding workflows and documents interactive, non-interactive, ACP, subagent, MCP, skills, sandbox, and multi-model scenarios, with installation guidance for multiple platforms. Permission boundaries and feature triggers receive some explanation, but default YOLO and optional safe mode coexist, and Windows isolation is limited; broad examples do not prove finely constrained behavior in every scenario.

Convention14 / 18 · 3.9/5

The repository map and configuration, installation, skills, sandbox, development, and release docs are organized clearly; the README includes command and configuration examples, and Apache-2.0 metadata matches the LICENSE. The update log is brief and known limitations are only partly covered. AGENTS.md describes itself as a contributor contract and should not be treated as end-user product guidance. Package author metadata and CI release steps provide some maintenance clues, but no clear, verifiable responsible party or support commitment is established.

Effectiveness7 / 13 · 2.7/5

The terminal assistant offers useful code understanding, editing, command execution, model collaboration, subagents, and ACP, with reusable command and configuration examples. Concrete scenarios support its potential value, but multi-model and performance advantages are mostly asserted, while the risks and costs of autonomous execution are not sufficiently quantified; cost-benefit evidence is limited.

Verifiability5 / 8 · 3.1/5

Installation, network, permission, configuration, and sandbox claims have support across docs, package metadata, entrypoint code, CI workflows, and tests. Static files support checking permission defaults and settings failure behavior, but many capability and performance claims lack independent evidence in this packet. This review does not infer the contents of unseen files and does not claim execution or testing.

Risks and how to mitigate them
  • Not found in source: least-privilege scopingGrant only what the task needs: a dedicated account or read-only token, scoped to specific directories and repos.
  • Not found in source: confirmation before actingTurn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
  • The README says YOLO is the default and bypasses all permission checks; assess safe mode and sandbox settings before use outside trusted environments.
  • The docs state that Windows lacks an equivalent system sandbox and Linux sandbox availability depends on bwrap and socat.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 2b8a532ce9a7
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/kode-cli.svg)](https://followagents.com/en/agents/kode-cli)
<a href="https://followagents.com/en/agents/kode-cli"><img src="https://followagents.com/badge/kode-cli.svg" alt="FARS review"></a>

FAQ

Will it run commands without asking?
Yes by default — README states Kode runs in YOLO mode (equivalent to --dangerously-skip-permissions) and recommends it only for trusted environments and non-critical projects. Use kode --safe to require approval for Bash commands and file writes/edits; plan mode further restricts the agent to read-only and planning tools.
Who pays for the model usage?
The software is Apache-2.0 and free; you pay your model providers. /cost reports token usage and spend per model, and kode models export omits plaintext API keys by default so you can reference them via fromEnv environment variables.
What leaves my machine?
README says no product telemetry is sent by default. Network requests occur for configured model provider endpoints, WebFetch/WebSearch, plugin marketplace downloads and OAuth flows, and opt-in update checks. In safe mode on Linux, agent Bash calls attempt to run in a bwrap sandbox with networking disabled unless KODE_SYSTEM_SANDBOX_NETWORK=inherit.
How does AGENTS.md discovery actually work?
Kode walks from the Git repo root to the current directory, taking at most one file per directory and preferring AGENTS.override.md to AGENTS.md; discovered files are concatenated root-to-leaf with a 32 KiB default cap overridable by KODE_PROJECT_DOC_MAX_BYTES. Prompts prefixed with # format the answer as documentation appended to AGENTS.md.
Which runtimes and platforms are supported?
npm install works across platforms including Windows, with optional per-platform native binary and ripgrep packages; standalone Bun-compiled executables are published on GitHub Releases. The Linux bwrap sandbox is optional — set KODE_SYSTEM_SANDBOX=0 to disable it or required to fail closed when it can't start.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts