CLI Reference

CortexPrism provides a comprehensive command-line interface for interacting with the AI Agent Operating System. All commands are invoked through the cortex binary.

Usage

cortex <command> [options]

Global Options

OptionEnvironment VariableDescription
--config, -cCORTEX_CONFIGPath to config file (default: ~/.cortex/config.json)
--data-dirCORTEX_DATA_DIRData directory path (default: ~/.cortex/)
--verbose, -vEnable verbose logging
--help, -hShow help
--version, -VShow version

Available Commands

CommandDescription
cortex chatInteractive streaming chat session with LLM providers
cortex setupFirst-run setup wizard
cortex migrateInitialize or migrate all databases
cortex sessionsList and manage chat sessions
cortex jobsManage scheduled cron jobs
cortex memorySearch and manage the 5-tier memory system
cortex runExecute code files in sandboxed or direct subprocess mode
cortex serveStart the HTTP + WebSocket server with web UI
cortex reflectInspect and consolidate reflection patterns
cortex vaultEncrypted credential vault (AES-256-GCM)
cortex policySecurity policy rule management
cortex daemonManage background daemon processes (validator, executor, scheduler)
cortex soulAgent soul/persona management
cortex discordDiscord bot integration
cortex logView and manage logging (show, tail, clear, set-level, status)
cortex pluginsPlugin management (install, enable, disable, remove, update, verify)
cortex marketplaceMarketplace interaction (list, categories, stats, install)
cortex importImport data from other sources (openclaw, json)
cortex agentAgent configuration management (create, update, delete, select, inspect)
cortex serviceMicro-service mode management (list, create, start, stop)
cortex stopStop server, daemons, or both
cortex updateCheck, apply, or rollback Cortex updates with channel support
cortex gitFull git porcelain via agent workspace (status, log, diff, commit, push, clone)
cortex githubGitHub integration (PRs, issues, repos, branches)
cortex hooksGit hooks management
cortex triggersFile watchers, webhooks, and git hook event triggers
cortex channelsCommunication channels (Discord integration)
cortex mcpMCP server management (serve, stdio transport)
cortex remoteRemote agent management (add, connect, remove)
cortex tuiTerminal UI
cortex projectsProject management (create, delete)
cortex workflowWorkflow engine (run, approve)
cortex desktopDesktop app automation (screenshot, click, type, clipboard)
cortex nodeHub node management (register, list, connect)
cortex evalEvaluation framework for benchmarking agent performance
cortex modelsModel management (list, show, set, available)
cortex qmModel Quartermaster (patterns, weights, stats, decisions, dashboard)
cortex mqmModel Quartermaster (model-level: stats, decisions, weights, accuracy)
cortex installInstall Cortex as a system service
cortex uninstallUninstall Cortex system service
cortex startStart Cortex server and daemon
cortex restartRestart Cortex server and daemon
cortex voiceVoice mode management (enable, disable, set-voice, set-speed)
cortex a2aA2A Protocol bridge (agent card, skills)
cortex agentlintAudit agent configs, tools, plugins, and prompts
cortex mcp-gatewayManaged MCP server health and status
cortex memoriPersistent checkpointing and agent-state survival
cortex chrome-bridgeChrome Bridge MCP server (real-browser automation)