Problem
When running claw on a remote machine (e.g., iMac Pro), executions don't appear in the dashboard because Redis (127.0.0.1:6379) and PostgreSQL (127.0.0.1:5432) are bound to loopback on the mini.
Current warnings on remote machines:
[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[warn] could not register run in DB (dashboard won't show it)
Options
Option A — Per-execution SSH tunnel (alias)
alias claw='ssh -fNL 6379:127.0.0.1:6379 -L 5432:127.0.0.1:5432 mini 2>/dev/null; CLAW_ENGINE_DATABASE_URL="postgresql://claw_engine:claw_engine_local@127.0.0.1:5432/claw_engine" /path/to/node $(which claw) "$@"'
Option B — Persistent tunnel with autossh (recommended)
brew install autossh
autossh -M 0 -fNL 6379:127.0.0.1:6379 -L 5432:127.0.0.1:5432 mini
export CLAW_ENGINE_DATABASE_URL="postgresql://claw_engine:claw_engine_local@127.0.0.1:5432/claw_engine"
Acceptance Criteria
Problem
When running
clawon a remote machine (e.g., iMac Pro), executions don't appear in the dashboard because Redis (127.0.0.1:6379) and PostgreSQL (127.0.0.1:5432) are bound to loopback on the mini.Current warnings on remote machines:
Options
Option A — Per-execution SSH tunnel (alias)
Option B — Persistent tunnel with autossh (recommended)
Acceptance Criteria