Appearance
Commands
FreshSource: bible/runbook.md (Common operations)
Every command for running and operating Ghost Engine.
Start
bash
cd C:\Users\jennb\browser-sender\lib\dna-engine\mini-engine-v2
node server.mjs
# Or via CLI
node cli.mjs startVerify
bash
curl -s http://localhost:4700/health
# Expected: {"success":true,"data":{"status":"ok","engine":"ghost","version":"2.0.0"...}}Service inventory
| Port | Service | Check |
|---|---|---|
| 4700 | Ghost Engine V2 | curl http://localhost:4700/health |
| 4600 | Mini Engine V1 | curl http://localhost:4600/health |
| 3500 | Big antidetect engine | curl http://localhost:3500/health |
| 3700 | Ponmelli | curl http://localhost:3700/health |
| 11434 | Ollama | curl http://localhost:11434/api/tags |
Import accounts (first-time setup)
bash
node cli.mjs setup \
--registry C:\Users\jennb\browser-sender\data\account-identity\registry.json \
--cookies C:\Users\jennb\browser-sender\data\login-results
# Dry run first
node cli.mjs setup --registry ... --cookies ... --dry-runLaunch browser
bash
# Default
curl -X POST http://localhost:4700/browser/launch \
-H "Content-Type: application/json" \
-H "x-api-key: ghost-engine-key" \
-d '{"email":"someone@gmail.com","headless":false}'
# Ghost mode
curl -X POST http://localhost:4700/browser/launch \
-H "Content-Type: application/json" \
-H "x-api-key: ghost-engine-key" \
-d '{"email":"someone@gmail.com","mode":"ghost","platform":"reddit","headless":false}'Fire one CTR
bash
# CLI
node cli.mjs ctr \
--keyword "junk removal dallas" \
--domain "journeyjunkremoval.com" \
--city "Dallas" \
--state "TX"
# API
curl -X POST http://localhost:4700/ctr/run \
-H "Content-Type: application/json" \
-H "x-api-key: ghost-engine-key" \
-d '{"keyword":"junk removal dallas","targetDomain":"journeyjunkremoval.com","city":"Dallas","state":"TX"}'Schedule CTR
bash
curl -X POST http://localhost:4700/schedules \
-H "Content-Type: application/json" \
-H "x-api-key: ghost-engine-key" \
-d '{"campaignId":"...","clicksPerDay":50,"startHour":8,"endHour":22,"spreadStrategy":"natural"}'Account management
bash
node cli.mjs accounts list
node cli.mjs accounts list --status active --client journey-junk --phase 2
node cli.mjs accounts army-status
node cli.mjs accounts ready --min-health 50
curl http://localhost:4700/accounts
curl http://localhost:4700/accounts/army-status
curl "http://localhost:4700/accounts?status=active&phase=2"Cookie refresh
bash
# Single
curl -X POST http://localhost:4700/cookies/refresh \
-H "Content-Type: application/json" \
-H "x-api-key: ghost-engine-key" \
-d '{"email":"someone@gmail.com"}'
# Batch (stale > 7 days)
curl -X POST http://localhost:4700/cookies/refresh-batch \
-H "Content-Type: application/json" \
-H "x-api-key: ghost-engine-key" \
-d '{"staleDays":7}'
# Status
curl http://localhost:4700/cookies/statusVision click (ghost mode)
bash
curl -X POST http://localhost:4700/browser/abc123/vision-click \
-H "Content-Type: application/json" \
-d '{"instruction":"Click the blue Sign In button"}'Social posting
bash
# List platforms
curl http://localhost:4700/social/platforms
# Post
curl -X POST http://localhost:4700/social/tumblr/post \
-H "Content-Type: application/json" \
-H "x-api-key: ghost-engine-key" \
-d '{"email":"someone@gmail.com","content":"Post text","url":"https://moneysite.com"}'Cascade
bash
curl -X POST http://localhost:4700/cascade/run \
-H "Content-Type: application/json" \
-H "x-api-key: ghost-engine-key" \
-d '{"keyword":"junk removal dallas","content":"article text..."}'Mobile (ADB)
bash
# List devices
curl http://localhost:4700/mobile/devices
# Connect
curl -X POST http://localhost:4700/mobile/connect \
-H "Content-Type: application/json" \
-d '{"serial":"192.168.1.100:5555"}'
# Tap
curl -X POST http://localhost:4700/mobile/mob-abc123/tap \
-H "Content-Type: application/json" \
-d '{"x":540,"y":960}'Autopilot
bash
# Engage
curl -X POST http://localhost:4700/schedules/autopilot -H "x-api-key: ghost-engine-key"
# Disengage
curl -X DELETE http://localhost:4700/schedules/autopilot -H "x-api-key: ghost-engine-key"All routes
bash
curl http://localhost:4700/routes
# 704 routes