Port Forwarding
Port forwarding exposes ports from agent containers on your local machine. If an agent is running a dev server on port 3000 inside its container, you can make it available at localhost:<port> on your host.
Adding a forward
vibespace forward add 3000 --vibespace my-projectThis allocates a local port automatically. To specify the local port:
vibespace forward add 3000 --vibespace my-project --local 3000Target a specific agent (defaults to the primary):
vibespace forward add 8080 --vibespace my-project --agent codex-1Listing forwards
vibespace forward list --vibespace my-projectShows the agent, local port, remote port, type, and status for each active forward.
Removing a forward
vibespace forward remove 3000 --vibespace my-projectDNS names
Instead of remembering port numbers, you can give forwards a DNS name under .vibespace.internal:
vibespace forward add 3000 --vibespace my-project --dnsThis makes the forward accessible at claude-1.vibespace.internal:3000 (the name is derived from the agent). Set a custom name with:
vibespace forward add 3000 --vibespace my-project --dns --dns-name myappDNS setup requires sudo (it writes to /etc/resolver/ on macOS). The daemon runs an embedded DNS server on 127.0.0.1:5553.
Note: Chromium-based browsers bypass the macOS resolver and won’t resolve .vibespace.internal names. Use Safari, curl, or other tools that respect /etc/resolver/.
How it works
The daemon manages all forwards. When you add a forward, the daemon opens an SSH tunnel to the agent container and binds it to a local port. If the tunnel drops, the daemon reconnects automatically.
Forwards survive agent restarts. The daemon watches for pod changes and re-establishes tunnels when pods come back up.