Kimi Code CLI full-access mode

Run Kimi Code CLI without permission prompts with kimi --auto. What it changes, what it still blocks, and the machines where it is safe.

Updated November 23, 2026 · Checked against Kimi Code CLI 2.1.1 in EnvHaven v1.9.0

In EnvHaven: The image launches kimi with --auto. Each workspace is its own Linux machine, so full access stays contained there. On any other machine, here is the switch, what it changes and where it is safe.

The switch

For one session:

kimi --auto

As the default, in ~/.kimi-code/config.toml:

default_permission_mode = "auto"

What it does

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

Milder settings

-y/--yolo runs routine edits and commands automatically and still asks before risky actions; default_permission_mode also takes manual.

Where full access is safe

  • On your everyday computer: rarely. An agent with full access can delete files, read credentials and run anything a mistyped instruction or a malicious README suggests.
  • In a container or VM that holds nothing you would miss: yes. A mistake costs a rebuild.
  • In an EnvHaven workspace: by default. The image launches kimi with --auto. The workspace is a separate Linux machine, so the worst case stays there.

Turning prompts back on

Leave out the flag, or reset the setting you changed. In a workspace, the setting EnvHaven applies is described above, and editing or removing it brings Kimi Code CLI’s own defaults back.

How this was checked

From the help text of Kimi Code CLI 2.1.1, as shipped in EnvHaven v1.9.0:

--auto Start in Never Ask mode: never interrupts you; everything runs and