Skip to main content

Root Command

The root command is defined in packages/cli/src/index.ts.

Syntax

codebolt [options] [command]

Runtime Modes

The root command supports four main operating modes:

  • Default mode: starts the CodeBolt server and launches the TUI
  • Server-only mode: starts the server without the TUI via --server
  • Connect mode: attaches the TUI to an already running server via --connect
  • Headless prompt mode: runs an agent prompt over WebSocket without the TUI via --prompt

Global Options

FlagsDescriptionNotes
-p, --port <number>Port to listen onDefaults to 2719, otherwise the next free port
-d, --project <path>Project directoryDefaults to the current working directory. Also supported through CODEBOLT_PROJECT_PATH
-s, --serverServer-only modeDoes not launch the TUI
-w, --webRequire the web frontendExits if the web build is not available
-c, --connect <port>Connect the TUI to an existing serverUses the specified port instead of starting a server
--prompt <text>Run an agent with the given promptHeadless mode
--agent <name>Agent to use with --promptDefaults to the built-in default agent
--provider <name>LLM providerAlso supported through CODEBOLT_LLM_PROVIDER
--model <name>LLM modelAlso supported through CODEBOLT_LLM_MODEL
--api-key <key>API key for the LLM providerAlso supported through CODEBOLT_API_KEY
--api-url <url>Custom API base URLAlso supported through CODEBOLT_API_URL
--embedding-provider <name>Embedding providerAlso supported through CODEBOLT_EMBEDDING_PROVIDER
--embedding-model <name>Embedding modelAlso supported through CODEBOLT_EMBEDDING_MODEL
--auth-token <token>Authentication token for headless loginAlso supported through CODEBOLT_AUTH_TOKEN
--debugEnable debug modeExposes additional debug behavior in the launched runtime
-v, --versionShow CLI versionProvided by Commander

Top-Level Commands

CommandPurpose
codebolt actionManage extensions such as agents, tools, providers, plugins, skills, capabilities, executors, and action blocks
codebolt agentTop-level alias for the same command group as codebolt action agent
codebolt commandConnect to a running server and execute server-backed command modules

Examples

codebolt
codebolt --project /path/to/project
codebolt --server
codebolt --connect 2719
codebolt --prompt "fix the login bug"