Main Command
Launches the interactive TUI when run without subcommands.
Cannot run from home directory. Use --dir or cd into a project first.
Global Options
Commands
version
Display CLI version.
run
Run agent(s) with enhanced syntax.
Options
The run command uses the default engine (first authenticated engine).
Script Syntax
Agent Options
Agent options are specified in brackets after the agent name:
templates
Interactive workflow template selection. Saves selection to .codemachine/template.json and regenerates agents folder.
List available template names (non-interactive).
auth
Authenticate with an AI engine (interactive provider selection).
Sign out from an AI engine (interactive provider selection).
agents
List all active and offline agents in tree view.
View logs for a specific agent by numeric ID.
Export agent registry to .codemachine/logs/registry-export.json.
import
Import external workflow packages.
Options
Examples
export
Show the imports folder path.
mcp router
Start MCP router server (stdio mode). This command is for internal agent use only.
Environment Variables
Engine Configuration
Claude (Anthropic)
OpenCode
Mistral
Cursor
Auggie
Codex
CCR
Examples
Quick Reference