Skip to content

About

Run Codex and Claude Code on your own computer, drive them from your phone or browser — Web, Android and iOS clients. Native tmux sessions, end-to-end encrypted, self-hosted.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

remote-agent

Run Codex and Claude Code on your own computer. Pick up the same session on your phone.

Latest release License: AGPL-3.0 Daemon Clients

English · 简体中文

Claude Code in tmux on a computer asks to run go test; the request crosses a self-hosted relay as ciphertext; it is approved on a phone and the same session carries on.
  • The real CLI — Codex and Claude Code run natively in tmux; your terminal and your phone drive the same session.
  • End-to-end encrypted — the relay only stores and forwards ciphertext and never holds a key.
  • Self-hosted — your relay, your web client, no third-party account.
  • On every screen — Web, Android and iOS (preview): chat, approvals, live terminal, images (push on Android and Web), all your computers in one list.

The client that creates the account is its sole authority (Web, Android or iOS) and signs membership states with its device key; every device signs its own traffic, removal rotates keys immediately, and remote control has a 72-hour lease. See the security model and limits.

Try it on the public relay

Create an account in the web client, Android app or iOS app (preview); save the recovery code it shows once offline. Then, on macOS or Linux with tmux 3.2+ and a signed-in codex or claude:

curl -fsSL https://raw.githubusercontent.com/Lewin671/remote-agent/main/install.sh | sh
remote-agent-service install                                     # run the daemon in the background
remote-agent account join --server https://ra.remote-agent.top --code <code from the authority>
remote-agent codex                                               # or: remote-agent claude

The relay ra.remote-agent.top and the page remote-agent.top are run by the maintainer for trying it out: still end-to-end encrypted, but you trust the maintainer's copy of the web page. Up to 8 devices, 2 computers and 200 sessions per account, no uptime promise.

Host your own

Three pieces: a relay on a server, the web client on a static host, the daemon on your computer. Details in the self-hosting guide.

1. Relay — on a Linux server with Docker and a domain pointing at it:

curl -fsSL https://raw.githubusercontent.com/Lewin671/remote-agent/main/install.sh | sh -s -- server
# Set RELAY_DOMAIN and ALLOWED_ORIGINS in remote-agent-server/.env, then:
cd remote-agent-server && docker compose up -d --build

2. Web client — static files for Cloudflare Pages or any HTTPS host:

curl -fsSL https://raw.githubusercontent.com/Lewin671/remote-agent/main/install.sh | sh -s -- web
npx wrangler pages deploy remote-agent-web --project-name <your-project>

Important

Put the relay and the web client under the same registrable domain, such as ra.example.com and app.example.com. Some content blockers drop cross-site WebSockets, and the client then signs in but never connects.

3. Your computer — macOS or Linux with tmux 3.2+ and a signed-in codex or claude:

curl -fsSL https://raw.githubusercontent.com/Lewin671/remote-agent/main/install.sh | sh
remote-agent-service install                                # run the daemon in the background
remote-agent account join --server https://ra.example.com --code <code from the authority>
remote-agent codex                                          # or: remote-agent claude

Create the account in a client (Web, Android or iOS preview; it asks for the relay's setup token) and use Settings › Add device on that authority to join this computer; the session you just started is already there.

Status and limitations

  • Pre-1.0. Upgrade all components together and read the release notes first; stored data may have to be recreated.
  • The client UI is in Simplified Chinese.
  • iOS is a preview: build it from source with Xcode; no App Store or TestFlight build and no push yet, tested only in the simulator.
  • No Android push on a self-hosted relay: the published app gets pushes only through the maintainer's relay; use the web client's Web Push instead.
  • One person per account. No teams or sharing; a relay can host many separate accounts.

More

License

AGPL-3.0. If you run a modified version as a network service, offer its source to that service's users.

About

Run Codex and Claude Code on your own computer, drive them from your phone or browser — Web, Android and iOS clients. Native tmux sessions, end-to-end encrypted, self-hosted.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages