phyra-research/roamux

Run AI coding agents on your own machines. Control them from anywhere.

1

stars

78

commits

TypeScript

primary language

Sep 13, 2026

updated

remote.phyra.ai

README

roamux

Run AI coding agents on your own machines. Control them from anywhere.

Your computer stays the execution host — the agent, your repo, shell, files, git state, credentials, and model access never leave it. A phone or browser signs in and steers the agent live.

Quick start · How it works · Contributing · Architecture

License: MIT TypeScript Runtime: Bun


What it is

roamux is a remote control plane for AI coding agents running on machines you own. Install a small host daemon on any computer; it dials out to the cloud and lets your authenticated devices watch and steer its agents. From your phone you can:

  • see your connected machines and their live agent sessions,
  • start a new session (pick a machine, a project, and an agent) and send tasks,
  • watch activity stream in real time,
  • approve or deny the agent's permission requests,
  • stop a run, and review the files it changed.

Your code never leaves your machine. The cloud routes structured control messages and stores only metadata (labels and ids) — never your files, paths, credentials, or model keys.

Supported agents (bring your own): OpenCode, Claude Code, and Codex. roamux does not implement its own agent — it drives yours through a swappable HarnessAdapter.

Prerequisites

roamux drives an agent you already run locally — it does not ship or proxy a model. So before you start, install and sign in to one of the supported agent CLIs on the machine you want to control (this is where your model access and auth live — nothing leaves the box):

AgentInstallSign in
OpenCodecurl -fsSL https://opencode.ai/install | bashopencode auth login
Claude Codecurl -fsSL https://claude.ai/install.sh | bashclaude (run once, complete the login)
Codexnpm install -g @openai/codexcodex login

You only need one. If the agent isn't installed or signed in, roamux host refuses to start and prints the exact commands to fix it.

Quick start

On the machine you want to control (macOS or Linux):

# 1. Install the host CLI
curl -fsSL https://remote.phyra.ai/install.sh | sh

# 2. Link it to your account (opens a code — approve it in your browser)
roamux login

# 3. Start it in the project you want the agent to work on, picking the agent.
#    AGENT_ADAPTER defaults to `opencode` — set it for Claude Code or Codex.
cd ~/your/project
AGENT_ADAPTER=claude-code roamux host      # or opencode | codex

Then open the web app on your phone or browser, sign in, pick your machine → New Session → choose the project + agent + a task → Start, and watch it run.

A host serves one agent — whichever AGENT_ADAPTER you launched it with. To offer several, run one host per agent.

File edits: the agent auto-accepts file edits so it can actually do the work (it still won't run destructive shell commands unattended). Point it at a project you're comfortable letting it change — a git repo is ideal.

Keep it running in the background (survives closing the terminal / logout): roamux service install

CLI

CommandWhat it does
roamux loginLink this machine to your account (device authorization)
roamux hostStart the host daemon and serve your agents
roamux service installInstall the host as a background service (launchd / systemd)
roamux service status / uninstallManage the background service
roamux help · roamux versionUsage / version

Configure via env: AGENT_ADAPTER=opencode|claude-code|codex picks the agent (default opencode), DEFAULT_PROJECT_PATH=<dir> sets the project (default: the current directory), HOST_NAME=<name> labels the machine.

How it works

Phone / Browser ─▶ roamux Cloud (web + API)        your machine
      │                 │  auth · host & session registry     host daemon ─▶ agent ─▶ model
      │                 │  mints scoped realtime tokens              ▲
      └─────────────── realtime transport (Ably) ─────────────────────┘   (host dials OUT)

Three boundaries carry the whole design:

  • Protocol (packages/protocol) — every message on the wire is a versioned, Zod-validated envelope. No raw internal objects, ever.
  • Transport — how bytes move, behind one interface: a local WebSocket relay for development, and Ably in production. Swappable.
  • HarnessAdapter (packages/agent-adapters) — how a runtime is driven. Agent-specific code lives only inside its adapter; the rest of the system speaks one normalized event vocabulary.

Security invariants (enforced in code and tests):

  • the agent runtime binds to localhost only;
  • the host dials out — nothing local is exposed via an inbound port;
  • routing is authenticated and scoped per user, so one account can never reach another's machines;
  • there is no arbitrary remote shell — clients send a small set of explicit, validated commands, never shell strings or filesystem paths;
  • repos, credentials, env vars, and model keys never cross the wire.

Full write-ups, with diagrams, in docs/architecture.md (the as-built local slice) and docs/beta-architecture.md (the multi-host, hosted design of record).

Repository layout

apps/
  host/    the daemon + `roamux` CLI. Runs on the user's machine, dials out,
           owns sessions. Compiles to a single binary.
  relay/   local-dev WebSocket router (not used in production — Ably replaces it).
  web/     Next.js — the mobile-first control UI + API + auth. Deploys to Vercel.
packages/
  protocol/        Zod envelopes, commands/events, the Transport interface, channels.
  agent-adapters/  HarnessAdapter + OpenCode / Claude Code / Codex + a mock for tests.
  db/              Postgres schema, migration runner, typed repositories.
docs/              architecture and design docs.

Development

You do not need any cloud accounts to develop. The fastest path:

bun install
bun run dev        # relay + host (mock agent) + web at http://localhost:3000

Full guide — local database, real agents, running the test suite — in CONTRIBUTING.md. Before opening a PR:

bun run check      # typecheck + lint + tests — must be green

Tech stack

TypeScript (strict) · Bun · Next.js · Zod · Ably (realtime) · Supabase (Postgres + auth) · deployed on Vercel.

Contributing

Contributions are welcome. Start with CONTRIBUTING.md for setup, and CLAUDE.md (aliased AGENTS.md) for the working agreement every contributor — human or AI coding agent — follows. Keep bun run check green and never weaken a security invariant silently.

License

MIT

Contributors

finpoke

72 commits

hemxDev

6 commits

phyra-research/roamux

Run AI coding agents on your own machines. Control them from anywhere.

1

stars

78

commits

TypeScript

primary language

Sep 13, 2026

updated

remote.phyra.ai

README

roamux

Run AI coding agents on your own machines. Control them from anywhere.

Your computer stays the execution host — the agent, your repo, shell, files, git state, credentials, and model access never leave it. A phone or browser signs in and steers the agent live.

Quick start · How it works · Contributing · Architecture

License: MIT TypeScript Runtime: Bun


What it is

roamux is a remote control plane for AI coding agents running on machines you own. Install a small host daemon on any computer; it dials out to the cloud and lets your authenticated devices watch and steer its agents. From your phone you can:

  • see your connected machines and their live agent sessions,
  • start a new session (pick a machine, a project, and an agent) and send tasks,
  • watch activity stream in real time,
  • approve or deny the agent's permission requests,
  • stop a run, and review the files it changed.

Your code never leaves your machine. The cloud routes structured control messages and stores only metadata (labels and ids) — never your files, paths, credentials, or model keys.

Supported agents (bring your own): OpenCode, Claude Code, and Codex. roamux does not implement its own agent — it drives yours through a swappable HarnessAdapter.

Prerequisites

roamux drives an agent you already run locally — it does not ship or proxy a model. So before you start, install and sign in to one of the supported agent CLIs on the machine you want to control (this is where your model access and auth live — nothing leaves the box):

AgentInstallSign in
OpenCodecurl -fsSL https://opencode.ai/install | bashopencode auth login
Claude Codecurl -fsSL https://claude.ai/install.sh | bashclaude (run once, complete the login)
Codexnpm install -g @openai/codexcodex login

You only need one. If the agent isn't installed or signed in, roamux host refuses to start and prints the exact commands to fix it.

Quick start

On the machine you want to control (macOS or Linux):

# 1. Install the host CLI
curl -fsSL https://remote.phyra.ai/install.sh | sh

# 2. Link it to your account (opens a code — approve it in your browser)
roamux login

# 3. Start it in the project you want the agent to work on, picking the agent.
#    AGENT_ADAPTER defaults to `opencode` — set it for Claude Code or Codex.
cd ~/your/project
AGENT_ADAPTER=claude-code roamux host      # or opencode | codex

Then open the web app on your phone or browser, sign in, pick your machine → New Session → choose the project + agent + a task → Start, and watch it run.

A host serves one agent — whichever AGENT_ADAPTER you launched it with. To offer several, run one host per agent.

File edits: the agent auto-accepts file edits so it can actually do the work (it still won't run destructive shell commands unattended). Point it at a project you're comfortable letting it change — a git repo is ideal.

Keep it running in the background (survives closing the terminal / logout): roamux service install

CLI

CommandWhat it does
roamux loginLink this machine to your account (device authorization)
roamux hostStart the host daemon and serve your agents
roamux service installInstall the host as a background service (launchd / systemd)
roamux service status / uninstallManage the background service
roamux help · roamux versionUsage / version

Configure via env: AGENT_ADAPTER=opencode|claude-code|codex picks the agent (default opencode), DEFAULT_PROJECT_PATH=<dir> sets the project (default: the current directory), HOST_NAME=<name> labels the machine.

How it works

Phone / Browser ─▶ roamux Cloud (web + API)        your machine
      │                 │  auth · host & session registry     host daemon ─▶ agent ─▶ model
      │                 │  mints scoped realtime tokens              ▲
      └─────────────── realtime transport (Ably) ─────────────────────┘   (host dials OUT)

Three boundaries carry the whole design:

  • Protocol (packages/protocol) — every message on the wire is a versioned, Zod-validated envelope. No raw internal objects, ever.
  • Transport — how bytes move, behind one interface: a local WebSocket relay for development, and Ably in production. Swappable.
  • HarnessAdapter (packages/agent-adapters) — how a runtime is driven. Agent-specific code lives only inside its adapter; the rest of the system speaks one normalized event vocabulary.

Security invariants (enforced in code and tests):

  • the agent runtime binds to localhost only;
  • the host dials out — nothing local is exposed via an inbound port;
  • routing is authenticated and scoped per user, so one account can never reach another's machines;
  • there is no arbitrary remote shell — clients send a small set of explicit, validated commands, never shell strings or filesystem paths;
  • repos, credentials, env vars, and model keys never cross the wire.

Full write-ups, with diagrams, in docs/architecture.md (the as-built local slice) and docs/beta-architecture.md (the multi-host, hosted design of record).

Repository layout

apps/
  host/    the daemon + `roamux` CLI. Runs on the user's machine, dials out,
           owns sessions. Compiles to a single binary.
  relay/   local-dev WebSocket router (not used in production — Ably replaces it).
  web/     Next.js — the mobile-first control UI + API + auth. Deploys to Vercel.
packages/
  protocol/        Zod envelopes, commands/events, the Transport interface, channels.
  agent-adapters/  HarnessAdapter + OpenCode / Claude Code / Codex + a mock for tests.
  db/              Postgres schema, migration runner, typed repositories.
docs/              architecture and design docs.

Development

You do not need any cloud accounts to develop. The fastest path:

bun install
bun run dev        # relay + host (mock agent) + web at http://localhost:3000

Full guide — local database, real agents, running the test suite — in CONTRIBUTING.md. Before opening a PR:

bun run check      # typecheck + lint + tests — must be green

Tech stack

TypeScript (strict) · Bun · Next.js · Zod · Ably (realtime) · Supabase (Postgres + auth) · deployed on Vercel.

Contributing

Contributions are welcome. Start with CONTRIBUTING.md for setup, and CLAUDE.md (aliased AGENTS.md) for the working agreement every contributor — human or AI coding agent — follows. Keep bun run check green and never weaken a security invariant silently.

License

MIT

Contributors

finpoke

72 commits

hemxDev

6 commits

Languages

TypeScript

98.3%