{"id":48883344,"url":"https://github.com/sethwebster/rzr","last_synced_at":"2026-04-16T04:04:14.948Z","repository":{"id":348810148,"uuid":"1199983654","full_name":"sethwebster/rzr","owner":"sethwebster","description":"A razor-thin remote around any terminal process","archived":false,"fork":false,"pushed_at":"2026-04-10T20:40:22.000Z","size":6531,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-10T22:12:19.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sethwebster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-02T23:09:40.000Z","updated_at":"2026-04-10T20:40:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sethwebster/rzr","commit_stats":null,"previous_names":["sethwebster/rzr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sethwebster/rzr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethwebster%2Frzr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethwebster%2Frzr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethwebster%2Frzr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethwebster%2Frzr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sethwebster","download_url":"https://codeload.github.com/sethwebster/rzr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethwebster%2Frzr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31870522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-16T04:04:02.406Z","updated_at":"2026-04-16T04:04:14.931Z","avatar_url":"https://github.com/sethwebster.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rzr\n\n**`rzr` is a razor-thin remote around any terminal process.**\n\nIt launches a command inside `tmux`, serves a tiny local web UI, and gives you a phone-friendly remote that can:\n\n- watch a live terminal session\n- paste input into it\n- send terminal keys like `Enter`, `Tab`, `Ctrl+C`, arrows, and `Esc`\n- let multiple devices observe the same session at once\n\nUse it to check in on `codex`, `claude`, shells, REPLs, and other TTY-first tools from your phone.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/sethwebster/rzr/main/assets/rzr-demo.gif\" alt=\"Animated terminal-style demo of rzr launching a remote codex session\" width=\"960\"\u003e\n\u003c/p\u003e\n\n---\n\n## Why it exists\n\nMost “remote terminal” tools get complicated fast.\n\n`rzr` stays small on purpose:\n\n- **`tmux` handles terminal reality** — real TTY behavior, durable sessions, reconnectability\n- **`rzr` handles remote access** — a tiny web server, tokenized URL access, optional public tunnel, optional password gate\n- **your process stays normal** — you still run the tool you already use\n\nThat makes it useful for:\n\n- checking a long-running coding agent from your phone\n- reconnecting to a CLI after your laptop sleeps or your browser disconnects\n- exposing an existing `tmux` session without changing how you work\n- letting another device observe the same live terminal\n\n---\n\n## Quickstart\n\n### Requirements\n\n- `bun`\n- `node` 20+\n- `tmux`\n\nOptional for public internet access:\n\n- `cloudflared`\n- `ngrok`\n- or `npx localtunnel` as fallback\n\n### Run from npm\n\n```bash\nnpx @sethwebster/rzr run -- codex\n```\n\n### Run from source\n\n```bash\ngit clone https://github.com/sethwebster/rzr.git\ncd rzr\nbun install\n./rzr run -- codex\n```\n\n`rzr` will print URLs like:\n\n```text\nhttp://localhost:4317/?token=...\nhttp://192.168.1.20:4317/?token=...\n```\n\nOpen one on your phone.\n\n## Mobile app development\n\nFor the Expo mobile app in `apps/mobile`, use the repo-local Expo CLI via Bun scripts:\n\n```bash\nbun run mobile:start\nbun run mobile:ios\nbun run mobile:ios:device\nbun run mobile:android\n```\n\nDo **not** use `npx expo@latest ...` in this workspace. In this monorepo it can fail after native build with a misleading `Failed to resolve react-native` error because the temporary npx-installed Expo CLI resolves `react-native` from the wrong context.\n\n---\n\n## Install\n\n### Use without installing\n\n```bash\nnpx @sethwebster/rzr run -- codex\n```\n\n### Install globally\n\n```bash\nnpm install -g @sethwebster/rzr\nrzr run -- codex\n```\n\n### Run from this repo\n\n```bash\n./rzr run -- codex\n```\n\n`rzr` has **no npm runtime dependencies**.\n\n---\n\n## Common examples\n\n### Start a new wrapped session\n\n```bash\nrzr run -- codex\n```\n\n### Start a named session\n\n```bash\nrzr run --name claude -- claude\n```\n\n### Start in a specific project directory\n\n```bash\nrzr run --name codex --cwd /path/to/repo -- codex\n```\n\n### Start a shell instead of an app\n\n```bash\nrzr run --cwd /path/to/repo -- /bin/zsh\n```\n\n### Expose an existing `tmux` session\n\n```bash\nrzr attach claude\n```\n\n### Read-only remote view\n\n```bash\nrzr run --readonly -- codex\n```\n\n### Add a public tunnel\n\n```bash\nrzr run --tunnel -- codex\n```\n\n### Request a named tunnel\n\n```bash\nrzr run --tunnel --tunnel-name my-remote -- codex\n```\n\n### Add a password gate\n\n```bash\nrzr run --password secret -- codex\nrzr attach claude --password secret\n```\n\n### List `tmux` sessions\n\n```bash\nrzr list\n```\n\n---\n\n## Command reference\n\n### `rzr run`\n\nLaunch a new command inside `tmux` and expose it through the web UI.\n\n```bash\nrzr run [--name NAME] [--port PORT] [--host HOST] [--cwd PATH] [--readonly] [--tunnel] [--tunnel-name VALUE] [--password VALUE] -- \u003ccommand...\u003e\n```\n\nOptions:\n\n- `--name NAME` — tmux session name to create\n- `--port PORT` — local web server port, default `4317`\n- `--host HOST` — bind host, default `0.0.0.0`\n- `--cwd PATH` — working directory for the launched command\n- `--readonly` — disable remote input\n- `--tunnel` — create a public tunnel\n- `--tunnel-name VALUE` — request a provider-specific tunnel name\n- `--password VALUE` — require a password before exposing the live session\n- `-- \u003ccommand...\u003e` — the command to run inside `tmux`\n\n### `rzr attach`\n\nExpose an existing `tmux` session.\n\n```bash\nrzr attach \u003ctmux-session\u003e [--port PORT] [--host HOST] [--readonly] [--tunnel] [--tunnel-name VALUE] [--password VALUE]\n```\n\n### `rzr list`\n\nList local `tmux` sessions.\n\n```bash\nrzr list\n```\n\n---\n\n## Tunnel behavior\n\nWhen you use `--tunnel`, provider order is:\n\n1. installed `cloudflared`\n2. installed `ngrok`\n3. `npx localtunnel`\n\n`--tunnel-name` behavior depends on provider:\n\n- **Cloudflare**: if authenticated and the value looks like a hostname on a Cloudflare-managed zone, `rzr` tries a stable named tunnel first; otherwise it is used as Quick Tunnel metadata/label\n- **ngrok**: passes the value as the tunnel name\n- **localtunnel**: requests the value as the public subdomain\n\nThe selected tunnel is torn down when `rzr` exits.\n\n---\n\n## Security model\n\n`rzr` uses two possible gates:\n\n1. a **URL token** in the query string\n2. an optional **password** from `--password`\n\nNotes:\n\n- clients always need the tokenized URL\n- if `--password` is enabled, clients must also enter the password before the UI and API are exposed\n- the password is passed on the command line, so it will appear in **shell history** and **process listings**\n- if you expose a public tunnel, treat that URL like a secret\n\nIf you need stronger secret handling than a CLI flag, don’t rely on `--password` alone.\n\n---\n\n## Session behavior\n\n- `rzr run` creates a `tmux` session for the target command\n- the target process keeps running inside `tmux` even if the browser disconnects\n- you can reconnect later with `rzr attach \u003csession\u003e`\n- pressing `Ctrl+C` in the host terminal warns that the `tmux` session will keep running, then lets you keep it, kill it, or continue serving\n\nThis project intentionally standardizes on `tmux`.\n\nIf you need “observe an arbitrary existing process that was **not** launched in `tmux`,” that requires OS-specific session snooping and is out of scope here.\n\n---\n\n## Development\n\nThis repo is organized as a small Bun workspace monorepo. The published package lives in `packages/rzr`.\n\nThe Expo mobile companion lives in `apps/mobile`.\n\nRun the test suite:\n\n```bash\nbun test\n```\n\nStart the mobile app:\n\n```bash\nbun run mobile:start\n```\n\nUseful mobile workspace commands:\n\n```bash\nbun run mobile:ios\nbun run mobile:ios:device\nbun run mobile:android\nbun run mobile:web\nbun run mobile:typecheck\nbun run mobile:lint\n```\n\nRegenerate the README demo asset:\n\n```bash\npython3 scripts/generate_readme_gif.py\n```\n\nShow CLI help:\n\n```bash\nrzr --help\n```\n\n---\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsethwebster%2Frzr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsethwebster%2Frzr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsethwebster%2Frzr/lists"}