Skip to content

feat: dashboard integration from remote machines (SSH tunnel for Redis + DB) #59

@dougss

Description

@dougss

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

  • Executions from iMac appear in dashboard at http://192.168.1.100:3004
  • Redis events stream correctly to dashboard SSE
  • Task registered in DB with correct metadata
  • Document setup in CLAUDE.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions