CLI Reference

CortexPrism provides a comprehensive command-line interface for interacting with the agentic 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 serveStart the HTTP + WebSocket server with web UI
cortex daemonManage background daemon processes (validator, executor, scheduler)
cortex stopStop server, daemons, or both
cortex runExecute code files in sandboxed or direct subprocess mode
cortex memorySearch and manage the 5-tier memory system
cortex reflectInspect and consolidate reflection patterns
cortex vaultEncrypted credential vault (AES-256-GCM)
cortex policySecurity policy rule management
cortex jobsManage scheduled cron jobs
cortex sessionsList and manage chat sessions
cortex setupFirst-run setup wizard
cortex migrateInitialize or migrate all databases
cortex soulAgent soul/persona management
cortex discordDiscord bot integration
cortex pluginsPlugin management
cortex marketplaceMarketplace interaction
cortex importImport data from other sources
cortex agentAgent configuration management
cortex serviceMicro-service mode management