Troubleshooting
Owner: PhantomPM User Docs Team
Last Updated: 2026-02-13
Status: Real
PHANTOM command fails to run
Symptoms:
command not found: phantom
Fix:
- run from repo via
npm run phantom -- --help - ensure install path is in PATH when installer is available
Build fails in modules package
Symptoms:
- TypeScript reports no inputs for
packages/modules
Fix:
- ensure
packages/modules/src/index.tsexists - rerun
npm run build
CLI fails with duplicate command error
Symptoms:
- startup error about duplicate
contextcommand
Fix:
- ensure using build with corrected command/subcommand architecture
- rerun build and retry
phantom --help
Integration command reports unknown target
Symptoms:
unsupported integration target
Fix:
- run
phantom integrate scanto view candidates - use supported targets listed by command help
Swarm output seems inconsistent
Explanation:
- current swarm behavior is
Betaand may include simulated elements
Reference:
Need debug snapshot
Use:
The Phantom Supervisor: Automated Troubleshooting
If the system crashes, the PhantomSupervisor is your first line of defense.
Logs
You can view the internal logs for the supervisor and the server by running:
tail -f ~/.phantom/logs/supervisor.log
tail -f ~/.phantom/logs/server.log
Common Auto-Fixes
- Server Restart: If the server becomes unresponsive, the supervisor will reboot it automatically within 5 seconds.
- AI Provider Fallback: If you see “Switching to Fallback Provider” in the UI, the system has detected a failure in your primary AI connection and is routing through a backup.
- Port Conflicts: Phantom defaults to port
3333. If this is blocked, the supervisor will attempt to notify you and recommend a port shift.
When to Manual Reset
If the supervisor enters an “Error Loop” (restarting more than 5 times in 1 minute), it will halt. In this case:
- Run
phantom healthto check the diagnostic report. - Run
phantom boot --forceto re-download the matrix UI and reset core configurations.
phantom doctor
phantom status --json
Include output in issue report with OS and Node version.