{"id":49355162,"url":"https://github.com/hsoerensen/claude-control","last_synced_at":"2026-04-27T13:02:34.888Z","repository":{"id":344208488,"uuid":"1180845940","full_name":"hsoerensen/claude-control","owner":"hsoerensen","description":"Run Claude Code in the background. Access from the Claude app or any browser - even when your server isn't reachable via SSH.","archived":false,"fork":false,"pushed_at":"2026-03-13T17:57:42.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-14T03:57:27.564Z","etag":null,"topics":["background-service","claude","claude-code","cli","developer-tools","remote-control","systemd"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/hsoerensen.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-03-13T13:27:14.000Z","updated_at":"2026-03-13T18:00:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hsoerensen/claude-control","commit_stats":null,"previous_names":["hsoerensen/claude-control"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/hsoerensen/claude-control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsoerensen%2Fclaude-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsoerensen%2Fclaude-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsoerensen%2Fclaude-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsoerensen%2Fclaude-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hsoerensen","download_url":"https://codeload.github.com/hsoerensen/claude-control/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsoerensen%2Fclaude-control/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32337274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["background-service","claude","claude-code","cli","developer-tools","remote-control","systemd"],"created_at":"2026-04-27T13:02:33.826Z","updated_at":"2026-04-27T13:02:34.877Z","avatar_url":"https://github.com/hsoerensen.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# claude-control\n\nRun Claude Code in the background on your Linux machine. Access it from the Claude mobile app or any browser — even when your server isn't reachable via SSH.\n\n## Why claude-control?\n\nClaude Code can connect to remote machines via SSH, but that requires SSH access from the device you're on *and* the server accepting inbound connections. Your phone or tablet can't SSH into your dev server — and your server may be behind NAT or a firewall anyway.\n\n`claude remote-control` solves this by flipping the connection direction — your server connects *out* to Claude, so you can use it from the Claude mobile app or claude.ai in any browser. claude-control wraps it in a systemd user service so it starts on boot and restarts on failure. Each session gets its own isolated git worktree. Everything runs in user space, no `sudo` needed.\n\n## Who is this for?\n\n- You want to use Claude Code from the Claude mobile app or any browser via claude.ai\n- Your devices don't have SSH access to your dev server\n- Your server is behind a firewall, NAT, or VPN and can't accept incoming connections\n- You want Claude Code always running and ready across multiple projects\n\n## Prerequisites\n\n- `claude` CLI installed and logged in (`claude --version` must work)\n- A Claude subscription (required for remote-control)\n- `git` installed\n- A git repository with at least one commit\n\n## Quick start\n\nRun from your project directory:\n\n```bash\ncd ~/my-project\ncurl -fsSL https://raw.githubusercontent.com/hsoerensen/claude-control/main/install.sh | bash\n```\n\nThe installer detects the git repo you're in and picks sensible defaults.\n\n### Development\n\nIf you want to work on claude-control itself:\n\n```bash\ngit clone https://github.com/hsoerensen/claude-control\ncd claude-control\n./install.sh --project-dir ~/my-project\n```\n\nTo test your changes on another machine, serve the repo locally and override `CLAUDE_CONTROL_REPO_BASE`:\n\n```bash\n# On your dev machine\npython3 -m http.server 8080\n\n# On the test machine\nexport CLAUDE_CONTROL_REPO_BASE=http://\u003cdev-machine-ip\u003e:8080\ncurl -fsSL $CLAUDE_CONTROL_REPO_BASE/install.sh | bash\n```\n\n## Configuration options\n\nEverything has defaults. Pass flags to override:\n\n```bash\ncurl -fsSL .../install.sh | bash -s -- --capacity 2 --session-name \"my app\"\n```\n\n| Option | Default | Description |\n|--------|---------|-------------|\n| `--project-dir \u003cpath\u003e` | current directory | Path to the git repository |\n| `--project-name \u003cname\u003e` | directory basename | Name used for the service and config files |\n| `--capacity \u003cn\u003e` | `8` | Maximum concurrent sessions |\n| `--session-name \u003cname\u003e` | project-name | Name shown in claude.ai/code |\n\n### Changing settings after install\n\nEdit `~/.config/claude-control/\u003cproject-name\u003e.env` and restart:\n\n```bash\nsystemctl --user restart claude-control-my-project.service\n```\n\n## Multi-project setup\n\nEach project runs its own background service. Run the installer once per project directory:\n\n```bash\ncd ~/projects/express \u0026\u0026 curl -fsSL .../install.sh | bash\ncd ~/projects/fastapi-app \u0026\u0026 curl -fsSL .../install.sh | bash\n```\n\nList all installed services:\n\n```bash\n./install.sh --list\n```\n\n## How it works\n\n1. **Background service** — systemd keeps `claude remote-control` running so you can access Claude Code from any device at any time. If it crashes, it restarts after 5 seconds.\n\n2. **Session isolation** — each session gets its own git worktree, so multiple sessions don't interfere with each other. If worktree mode isn't available on your account yet, it falls back to single-session mode.\n\n## Uninstall\n\nRemove a single project:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/hsoerensen/claude-control/main/install.sh | bash -s -- --uninstall my-project\n```\n\nRemove all installed services at once:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/hsoerensen/claude-control/main/install.sh | bash -s -- --uninstall-all\n```\n\n### Manual uninstall\n\n```bash\nsystemctl --user stop claude-control-my-project.service\nsystemctl --user disable claude-control-my-project.service\nrm ~/.config/systemd/user/claude-control-my-project.service\nrm ~/.config/claude-control/my-project.env\nrm ~/.config/claude-control/wrapper-my-project.sh\nsystemctl --user daemon-reload\n```\n\n## Troubleshooting\n\n**\"Worktree mode not available, starting in single mode\"**\n\nYour account doesn't have multi-session remote control yet. It still works fine in single-session mode. Once multi-session is enabled, it'll switch to worktree mode on the next restart.\n\n**Error: Claude Code not found**\n\nInstall Claude Code and make sure `claude --version` works, then re-run the installer.\n\n**Error: has no commits**\n\nWorktrees need at least one commit to work. Make an initial commit and try again.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsoerensen%2Fclaude-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhsoerensen%2Fclaude-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsoerensen%2Fclaude-control/lists"}