koda-cli 0.6.2

A high-performance AI coding agent for macOS and Linux
docs.rs failed to build koda-cli-0.6.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: koda-cli-0.3.2

koda-cli

CLI frontend for the Koda AI coding agent.

Built with ratatui for an inline TUI experience — streaming markdown, tab completion, diff previews, and approval widgets without ever leaving the terminal.

Install

cargo install koda-cli

On first run, an onboarding wizard guides you through provider and API key setup.

Linux note: the default trust mode is Auto, which requires bubblewrap (bwrap) so the kernel sandbox can contain auto-approved mutations. Install it with your package manager (apt install bubblewrap, dnf install bubblewrap, pacman -S bubblewrap) or start with koda --mode safe to keep the human in every approval loop.

Quick start

koda                              # Interactive REPL
koda --provider anthropic         # Use a cloud provider
koda -p "fix the bug in auth.rs"  # Headless one-shot

Trust modes

Cycle with Shift+Tab:

Mode Behavior
Auto (default) Auto-approve safe in-project mutations within the kernel sandbox. Destructive ops and outside-project writes still ask. Requires sandbox availability.
Safe Confirm every mutation. Read-only tools auto-approved. Use this for CI or locked-down machines.

A third mode, Plan, is available for agent definitions that need investigation-only access — all writes are denied.

# Keep the old prompt-every-mutation behavior
koda --mode safe

# Via environment variable
export KODA_MODE=safe

Sandbox

The kernel sandbox is always active — every Bash command runs inside a sandboxed process with credential protection. No opt-out.

  • Writes restricted to project dir + /tmp + cache dirs
  • Credential dirs blocked: ~/.ssh, ~/.aws, ~/.gnupg, ~/.kube, …
  • Agent files protected: .koda/agents/ and .koda/skills/ are read-only
  • Network only through Koda's proxy: GitHub and the main package registries over HTTP(S). SSH, other hosts and the local network are blocked.

When the sandbox blocks a command you need, such as git push over SSH, the model asks to run that one command outside it, with a reason. You approve each one, in Auto too; sub-agents and headless runs are refused.

macOS uses sandbox-exec (seatbelt); Linux uses bwrap (bubblewrap). Sub-agents inherit the parent's trust mode via TrustMode::clamp() and can never run with less protection.

See the User Manual for full documentation.

License

MIT