PHANTOM v4.0.0 DOCS
Website GitHub

CLI Reference

Complete reference for all Phantom CLI commands.

Global Options

OptionDescription
--version, -VShow version number
--help, -hShow help for any command
--jsonOutput as JSON (where supported)

Commands

phantom (default)

Launch the interactive chat REPL.

phantom
phantom chat
phantom chat --model gpt-4o
phantom chat --provider ollama --model llama3.1:8b
OptionDescription
--model <name>Model to connect
--provider <name>Force a specific provider

phantom swarm <question>

Run a multi-agent consensus analysis.

phantom swarm "Should we add dark mode?"
phantom swarm "Should we add dark mode?" --json

phantom prd <title>

Generate a Product Requirements Document.

phantom prd "User Authentication"
phantom prd "User Authentication" --json

phantom simulate <scenario>

Run a product simulation.

phantom simulate "User onboarding flow"
phantom simulate "User onboarding flow" --json

phantom agents scan

Discover AI agents on your system.

phantom agents scan
phantom agents scan --json

phantom register

Register Phantom with AI agents.

phantom register --all
phantom register --target cursor
phantom register --target claude-desktop

phantom model

List available AI models across all providers.

phantom model
phantom model list

phantom config

Manage configuration.

phantom config setup              # Interactive wizard
phantom config set <key> <value>  # Set a value
phantom config get [key]          # Get a value
phantom config env                # Show environment status
phantom config clear              # Reset configuration

phantom doctor

Run a system health check.

phantom doctor

phantom mcp

Start the MCP server.

phantom mcp start        # Start MCP server
phantom mcp stdio        # Run in stdio mode (for agents)
phantom mcp tools        # List available MCP tools