Skip to content

CLI Overview

The kolega-code command has two shapes:

  • No subcommand → launches the interactive Terminal UI.
  • A subcommand (ask, sessions, doctor, update) → runs a specific non-interactive task.
Terminal window
kolega-code [PROJECT_PATH] [options] # interactive TUI
kolega-code ask "<prompt>" [options] # one-shot prompt
kolega-code sessions <list|delete|export> [options]
kolega-code doctor [options]
kolega-code update
CommandWhat it does
kolega-code .Launch the Textual TUI in the given project directory (default .)
askRun a single prompt and print the answer
sessionsList, delete, or export saved sessions
doctorCheck local configuration and API-key status
updateUpdate Kolega Code to the latest released version
Terminal window
kolega-code [PROJECT_PATH]
Argument / optionDescription
PROJECT_PATHProject directory to work in (default .)
--newStart a new session (this is the default)
--resume [THREAD_ID]Resume the latest saved thread, or a specific thread/session ID
--browser-visibleLaunch visible Playwright browser windows instead of headless
--permission-mode <auto|ask>Shell/edit permission mode. TUI sessions default to ask
--session <ID>Legacy alias for --resume THREAD_ID

See Sessions & Resuming for the full session workflow.

These options are accepted by the TUI launch, ask, and doctor. They override environment variables and saved settings for the run.

OptionDescription
--providerProvider for the main coding model
--modelMain coding model
--fast-providerProvider for fast utility calls
--fast-modelFast utility model
--thinking-providerProvider for think-hard operations
--thinking-modelModel for think-hard operations
--thinking-effortModel-specific thinking effort, such as auto, medium, high, or max
--environmentEnvironment label for tracing/metadata
OptionDescription
--state-dir <PATH>Directory for CLI session state (defaults to the platform state directory)
--session <ID>Session ID to resume or create

The default state directory and the KOLEGA_CODE_STATE_DIR override are described in Settings & API Keys.

CodeMeaning
0Success
2Configuration / usage error (e.g. invalid provider, missing API key, project path not found, Textual not installed)
130Interrupted (Ctrl+C)