{"id":50517758,"url":"https://github.com/superbereza/claude-remote-launcher","last_synced_at":"2026-06-03T01:03:44.757Z","repository":{"id":356782592,"uuid":"1233256845","full_name":"superbereza/claude-remote-launcher","owner":"superbereza","description":"Launch Claude Code Remote Control sessions in a detached tmux pane and get the claude.ai/code URL — skill + CLI","archived":false,"fork":false,"pushed_at":"2026-06-02T08:28:55.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-02T10:22:59.098Z","etag":null,"topics":["ai-tools","claude-code","cli","remote-control","shell","skills","tmux"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/superbereza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-05-08T19:03:14.000Z","updated_at":"2026-06-02T08:28:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/superbereza/claude-remote-launcher","commit_stats":null,"previous_names":["superbereza/claude-remote-launcher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/superbereza/claude-remote-launcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbereza%2Fclaude-remote-launcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbereza%2Fclaude-remote-launcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbereza%2Fclaude-remote-launcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbereza%2Fclaude-remote-launcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superbereza","download_url":"https://codeload.github.com/superbereza/claude-remote-launcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbereza%2Fclaude-remote-launcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33843611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"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":["ai-tools","claude-code","cli","remote-control","shell","skills","tmux"],"created_at":"2026-06-03T01:03:43.812Z","updated_at":"2026-06-03T01:03:44.723Z","avatar_url":"https://github.com/superbereza.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# claude-remote-launcher\n\nA tiny skill + CLI that spawns a Claude Code [Remote Control](https://code.claude.com/docs/en/remote-control) session in a detached `tmux` pane. By default it just confirms the session started (the remote chat appears on your device); pass `--url` to also print the `claude.ai/code` link.\n\nDesigned so an agent (or you) can launch fresh Claude sessions in existing or brand-new project folders without leaving the current session. The skill is wired up for **Claude Code, Cursor, Codex and Gemini** from one source (see [Install](#install)).\n\n## Install\n\nThree ways — pick one. All end with the same `claude-remote` CLI and skill.\n\n### 1. Standalone (clone + symlinks)\n\n```bash\ngit clone https://github.com/superbereza/claude-remote-launcher ~/dev/claude-remote-launcher\ncd ~/dev/claude-remote-launcher\n./install.sh\n```\n\n`install.sh` creates two symlinks:\n- `~/.local/bin/claude-remote` → `bin/claude-remote` (`~/.local/bin` must be on `PATH`)\n- `~/.claude/skills/claude-remote` → `skills/claude-remote`\n\n### 2. As a Claude Code plugin (this repo is its own marketplace)\n\n```text\n/plugin marketplace add superbereza/claude-remote-launcher\n/plugin install claude-remote@claude-remote-launcher\n```\n\n### 3. From an aggregate marketplace\n\n```text\n/plugin marketplace add superbereza/superbereza-skills\n/plugin install claude-remote@superbereza-skills\n```\n\n### Other agents\n\nThe same `skills/` directory is exposed to **Cursor** (`.cursor-plugin/`), **Codex** (`.codex-plugin/`) and **Gemini** (`gemini-extension.json` → [`AGENTS.md`](AGENTS.md)). One skill, one source — see [`AGENTS.md`](AGENTS.md).\n\n## Usage\n\n```bash\n# Existing folder — chat title defaults to the folder name\nclaude-remote ~/dev/myproject\n\n# New folder (auto-created and pre-trusted)\nclaude-remote ~/dev/scratch-experiment\n\n# Custom session name (= the remote-control chat title, used verbatim)\nclaude-remote ~/dev/myproject debug-auth\n\n# Also print the claude.ai/code URL\nclaude-remote ~/dev/myproject --url\n```\n\nDefault output (status only):\n```\nSESSION: cc—myproject\nSTATUS:  remote-control active\nATTACH:  tmux attach -t 'cc—myproject'\n```\n\nWith `--url` the `STATUS` line becomes `URL: https://claude.ai/code/...`. Exit code is `1` if the remote-control URL doesn't appear within 30s.\n\n## Subcommands\n\n| Command | Action |\n|---------|--------|\n| `claude-remote \u003cpath\u003e [name] [--url]` | Spawn (default; same as `spawn`) |\n| `claude-remote spawn \u003cpath\u003e [name] [--url]` | Spawn, explicit |\n| `claude-remote ls` | List running `cc—` tmux sessions |\n| `claude-remote kill \u003csession\u003e` | Kill one |\n| `claude-remote kill --all` | Kill all `cc—` sessions |\n| `claude-remote refresh \u003csession\u003e` | Re-issue `/remote-control` inside an existing pane → fresh URL, same chat |\n| `claude-remote --version` | Print version |\n\nThe session `name` is the remote-control chat title, **used verbatim** — nothing is\nprepended automatically, so include a `device/` prefix yourself if you use that\nconvention (e.g. `claude-remote ~/dev/x \"mac-mini/x\"`).\n\nDisconnecting from claude.ai/code only drops the remote view; the local `claude` process keeps running until you kill the tmux session. The trust entry written to `~/.claude.json` is left in place after killing sessions, so re-launching in the same folder is fast.\n\n## How it works\n\n1. Resolves the absolute path and detects whether the folder is new.\n2. Creates the folder with `mkdir -p` if missing.\n3. **Pre-trusts the folder** by atomically writing `hasTrustDialogAccepted: true` into `~/.claude.json` under the project entry.\n4. Starts a detached tmux session in the folder.\n5. Runs `claude --dangerously-skip-permissions` inside the pane (interactive TUI).\n6. Waits for `bypass permissions on` (bottom-bar indicator) — the TUI is ready. Trust dialog is skipped thanks to step 3.\n7. Sends `/remote-control \u003cname\u003e` slash command to enable Remote Control (name defaults to the folder).\n8. Polls `tmux capture-pane` (with `-J` to join wrapped lines) for `https://claude.ai/code/...` (timeout 30 s) to confirm it came up.\n9. Prints the status (or the URL with `--url`). Tmux session keeps running after the script exits.\n\n## Why slash command, not server mode\n\n`claude remote-control` (server mode) bundles all sessions inside a single process — when the server's OAuth token rotates (~24 h), the daemon dies and takes every session with it (see [#53635](https://github.com/anthropics/claude-code/issues/53635), [#53563](https://github.com/anthropics/claude-code/issues/53563)).\n\nThe slash-command approach this script uses keeps the conversation as a plain Claude session backed by `\u003cuuid\u003e.jsonl`. If Remote Control drops, run `claude-remote refresh \u003csession\u003e` to re-issue `/remote-control` inside the existing tmux pane — fresh URL, history preserved. If the `claude` process itself dies, you can `claude --resume \u003cuuid\u003e --dangerously-skip-permissions` and `/remote-control` again.\n\n## Requirements\n\n- `claude` ≥ 2.1.51 (Remote Control support), logged in with a Claude subscription\n- `tmux`\n- `python3` (used for absolute-path resolution and atomic JSON edits)\n\n## Uninstall\n\n```bash\n./scripts/uninstall.sh\n```\n\nRemoves the symlinks. Repo and `~/.claude.json` are not touched.\n\n## OpenCode\n\nThis skill also supports [OpenCode](https://opencode.ai) — see [`.opencode/INSTALL.md`](.opencode/INSTALL.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbereza%2Fclaude-remote-launcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperbereza%2Fclaude-remote-launcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbereza%2Fclaude-remote-launcher/lists"}