Skip to main content

CLI Overview

The codebolt CLI is the command-line entry point for running the Codebolt server, launching the TUI, connecting to an existing server, running headless prompts, and executing command groups like action, agent, and command.

This page is about the CLI itself. The TUI is documented separately under TUI Overview.

Root command

codebolt [options] [command]

Without a subcommand, the CLI runs one of its runtime modes depending on the flags you pass.

Runtime modes

ModeHow to start itWhat it does
Default interactive modecodeboltStarts the server and launches the TUI
Server-only modecodebolt --serverStarts the server without the TUI
Connect modecodebolt --connect <port>Launches the TUI against an already running server
Headless prompt modecodebolt --prompt "..."Runs an agent prompt over the server WebSocket and exits

Root options

FlagWhat it does
--project <path>Set project directory
--port <number>Set server port. The base default in packages/cli is 2719
--serverStart server only
--connect <port>Connect the TUI to an existing server
--prompt "text"Run an agent with a prompt
--agent <name>Select the agent used with --prompt
--provider <name>Select an LLM provider
--model <name>Select an LLM model
--api-key <key>API key for the selected provider
--api-url <url>Custom provider API base URL
--embedding-provider <name>Embedding provider override
--embedding-model <name>Embedding model override
--auth-token <token>Authentication token
--webRequire the web frontend to be present
--debugEnable debug mode
--version / -vPrint version
--help / -hShow help

Command groups

The CLI also mounts separate command groups:

CommandPurpose
codebolt action ...Create, publish, and list extension types like tools, providers, plugins, skills, capabilities, executors, and action blocks
codebolt agent ...Top-level agent extension commands. This same group is also mounted under codebolt action agent ...
codebolt command ...Connect to a running server and run modules like threads, tasks, jobs, agents, git, system, projects, chat, todos, and llm

For the exact subcommand and flag reference, use Reference → Codebolt CLI.

Common patterns

Start the default server + TUI flow

codebolt

Start server only

codebolt --server

Connect to an existing server

codebolt --connect 2719

Run a one-shot prompt

codebolt --prompt "add a /health endpoint" --agent generalist

Manage extensions

codebolt action tool create --name my-tool
codebolt action plugin list
codebolt agent create --name my-agent --framework

Query a running server

codebolt command threads list
codebolt command git status
codebolt command llm providers

CLI vs neighboring surfaces

Use the CLI when you want:

  • shell-native workflows
  • scripting and CI
  • remote command execution
  • server administration and command-style inspection

Use the TUI when you want an interactive terminal interface instead of plain command output. Use Headless mode when you want no interactive UI at all.

See also