[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116071":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":15,"stars7d":15,"stars30d":15,"stars90d":16,"forks30d":16,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},116071,"herdr-anywhere","jt-wang\u002Fherdr-anywhere","jt-wang","Use the agents running in Herdr on your computer from your phone. Scan once, then any network.","https:\u002F\u002Fherdr-anywhere.jingtao.io",null,"TypeScript",56,9,51,1,0,3,45.6,"MIT License",false,"main",true,[],"2026-11-23 20:12:21","2026-11-23 05:20:35","# Herdr Anywhere\n\nYour agents in Herdr, on your phone.\n\n\u003Cp>\n  \u003Cimg src=\"https:\u002F\u002Fherdr-anywhere.jingtao.io\u002Ftype.jpg\" width=\"32%\" alt=\"Pi's terminal on a phone, working on a sentence typed there, with the terminal keys below\">\n  \u003Cimg src=\"https:\u002F\u002Fherdr-anywhere.jingtao.io\u002Fagents.jpg\" width=\"32%\" alt=\"The phone's home screen: Claude Code, Kimi and Pi across four spaces\">\n  \u003Cimg src=\"https:\u002F\u002Fherdr-anywhere.jingtao.io\u002Fneeds.jpg\" width=\"32%\" alt=\"Two agents waiting for an answer: Kimi asks to trust a folder, Claude Code asks to run npm test\">\n\u003C\u002Fp>\n\nYou leave your computer with three agents running. One finishes, one stops to ask before it runs a command, and you find out an hour later. With Herdr Anywhere your phone plays Herdr's \"needs you\" sound the moment an agent stops. You open its terminal, answer, and it carries on. From the same screen you can start another agent in any folder, on Wi-Fi or on 4G.\n\nThe connection is encrypted end to end. There is no account to create and no server of your own to run. Fully open source, under the MIT license. [The website](https:\u002F\u002Fherdr-anywhere.jingtao.io\u002F) shows it running.\n\n## What it does\n\n- **Alerts, as on the desktop.** An agent that becomes blocked or fails always alerts; one that finishes alerts if you weren't looking at it. Each alert plays Herdr's own sound and shows a toast. Settings › Alerts turns each kind off.\n- **Live terminals.** Each pane streams from herdr-core as it does to the desktop app. Swiping scrolls and keeps gliding, in full-screen programs like Pi too. A key bar above the keyboard has what a phone keyboard lacks: Esc, Tab, Ctrl, the arrows, paste and copy.\n- **Start work.** Open a new tab or space with a shell or any agent Herdr knows, and split panes side by side.\n- **Stays connected on Android.** The app keeps its connection in the background, with a quiet notification saying so, and an agent's question reaches you as a notification. Settings can turn this off.\n- **Updates itself.** Home says when a new version is out, and one tap installs it on the computer, then on the phone. The app asks first whether the computer may check: after a yes it asks GitHub once a day, and Settings can turn that off, check right away, or have the computer install new versions by itself. The phone reaches GitHub only to download the app after you tap Download.\n- **Agents on a server you ssh into.** They show up on the phone too, through your computer or with the companion on the server: [INSTALL.md](INSTALL.md#if-the-users-agents-run-on-a-server-they-reach-with-ssh).\n- **Your phone's language.** English, Simplified and Traditional Chinese, Spanish, Korean, Japanese and Russian, following the phone.\n\n## Try it\n\n1. Paste this into your coding agent on the computer running [Herdr](https:\u002F\u002Fherdr.dev). It follows [INSTALL.md](INSTALL.md) and checks each step:\n\n   ```text\n   Read https:\u002F\u002Fraw.githubusercontent.com\u002Fjt-wang\u002Fherdr-anywhere\u002Fmain\u002FINSTALL.md and install Herdr Anywhere on this computer.\n   ```\n\n   \u003Cdetails>\n   \u003Csummary>Or install it yourself\u003C\u002Fsummary>\n\n   ```sh\n   mkdir -p ~\u002F.local\u002Fbin\n   curl -fsSL -o ~\u002F.local\u002Fbin\u002Fherdr-anywhere https:\u002F\u002Fgithub.com\u002Fjt-wang\u002Fherdr-anywhere\u002Freleases\u002Flatest\u002Fdownload\u002Fherdr-anywhere-macos-$(uname -m | sed 's\u002Fx86_64\u002Famd64\u002F')\n   chmod +x ~\u002F.local\u002Fbin\u002Fherdr-anywhere\n   ~\u002F.local\u002Fbin\u002Fherdr-anywhere install-dialog\n   ```\n\n   On Linux, x64 or Arm:\n\n   ```sh\n   mkdir -p ~\u002F.local\u002Fbin\n   curl -fsSL -o ~\u002F.local\u002Fbin\u002Fherdr-anywhere https:\u002F\u002Fgithub.com\u002Fjt-wang\u002Fherdr-anywhere\u002Freleases\u002Flatest\u002Fdownload\u002Fherdr-anywhere-linux-$(uname -m | sed 's\u002Fx86_64\u002Famd64\u002F; s\u002Faarch64\u002Farm64\u002F')\n   chmod +x ~\u002F.local\u002Fbin\u002Fherdr-anywhere\n   ~\u002F.local\u002Fbin\u002Fherdr-anywhere install-dialog\n   ```\n\n   On Windows, in PowerShell:\n\n   ```powershell\n   New-Item -ItemType Directory -Force \"$env:LOCALAPPDATA\\Programs\\herdr-anywhere\" | Out-Null\n   curl.exe -fsSL -o \"$env:LOCALAPPDATA\\Programs\\herdr-anywhere\\herdr-anywhere.exe\" https:\u002F\u002Fgithub.com\u002Fjt-wang\u002Fherdr-anywhere\u002Freleases\u002Flatest\u002Fdownload\u002Fherdr-anywhere-windows-amd64.exe\n   & \"$env:LOCALAPPDATA\\Programs\\herdr-anywhere\\herdr-anywhere.exe\" install-dialog\n   ```\n\n   \u003C\u002Fdetails>\n\n2. On the phone, download [Herdr-Anywhere.apk](https:\u002F\u002Fgithub.com\u002Fjt-wang\u002Fherdr-anywhere\u002Freleases\u002Flatest\u002Fdownload\u002FHerdr-Anywhere.apk) and open it.\n\n3. In the Herdr desktop app press `cmd-shift-m` (`ctrl-shift-m` on Windows and Linux), press Start, and scan the QR code with the phone app.\n\nThe phone and the computer can be on different networks from then on. Paired phones are listed under the code, and you can remove them there. The companion starts again by itself when you log in after a restart.\n\n### From a terminal instead of the dialog\n\n```sh\n~\u002F.local\u002Fbin\u002Fherdr-anywhere start               # runs in the background, and again after each restart\n~\u002F.local\u002Fbin\u002Fherdr-anywhere pair                # shows a QR code that works once, for 2 minutes\n```\n\n`herdr-anywhere stop` stops it and keeps it from starting at login.\n\n`herdr-anywhere devices` lists the paired phones and `herdr-anywhere revoke \u003Cid>` cuts one off at once.\n\n### Over your own network only\n\nOn the same network the phone can reach the computer directly, end-to-end encrypted, with no relay in between.\n\n```sh\n~\u002F.local\u002Fbin\u002Fherdr-anywhere start --lan         # keeps running, also after a restart\n~\u002F.local\u002Fbin\u002Fherdr-anywhere pair                # prints a QR code (herdr2:…)\n```\n\nScan it with the app. It works once, for 2 minutes.\n\n### In a browser\n\nThe companion can serve the web build (see below). A browser cannot run TailPocket, so over the network this is plain HTTP: listen on an address only you can reach, such as your own VPN's, and open the link `pair` prints. The page posts a system notification when an agent needs you while it's in the background; Settings › Alerts asks the browser for permission.\n\n```sh\nherdr-anywhere serve --listen 127.0.0.1:7681 --listen \u003Cyour VPN address>:7681 --web \"app\u002Fdist\u002Fweb\u002FHerdr Anywhere\"\n```\n\n## iPhone and other agents\n\n**iPhone:** the app is in TestFlight testing. The public invitation will be announced on [X (@thejingtao)](https:\u002F\u002Fx.com\u002Fthejingtao). With an invitation, install it through TestFlight and scan the same pairing code. You can also [build it under your own Apple account](app\u002Fios\u002FREADME.md). The app asks for notification permission, but iOS can pause it in the background; notices still appear when you open it.\n\n**Agents:** anything that runs in Herdr opens in a terminal you can type into. Status and alerts come from each agent's own reports. Claude Code, Pi, Kimi and Antigravity send them. OpenCode, Grok, Cursor and Codex 0.159 don't, so they work without alerts.\n\n## Security\n\nherdr-core can run any command as you, and so can a paired phone. The companion:\n\n- listens on `127.0.0.1` only, never `0.0.0.0`; `--lan` adds the computer's private LAN address for end-to-end encrypted sessions only;\n- accepts only paired phones; a pairing code works once and expires after 10 minutes;\n- closes a revoked phone's connections at once.\n\nThrough [Tailcat](https:\u002F\u002Fgithub.com\u002Ftailscale\u002Ftailcat), which the dialog and `serve --tailcat` use, traffic is end-to-end encrypted with WireGuard. It goes straight to the computer when it can, otherwise through Tailcat's public relays, which see only encrypted packets. Settings › Computer shows which one it is using.\n\nOver `--lan` (0.3 and later), traffic is end-to-end encrypted too (TailPocket's Noise session, pinned to the computer's key from the QR code): someone on the same Wi-Fi can neither read it nor pose as the computer. Phones paired over the plain LAN link before 0.3 must pair again within 3 days; the app says so. An address you add with `--listen` off loopback is plain HTTP.\n\nUpdates install only what the release's signed list says: the computer checks the list against a key built into it, then each file's SHA-256 and size, and Android also requires the app to carry the same signing key as the installed one.\n\n## Build from source\n\nThe app is TSX on [NSH](https:\u002F\u002Fnsh.dev) 0.3.0, in `app\u002F`. The companion is Go, in `companion\u002F`.\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002Fjt-wang\u002Fherdr-anywhere\ncd herdr-anywhere\u002Fcompanion\ngo build -o ~\u002F.local\u002Fbin\u002Fherdr-anywhere .\u002Fcmd\u002Fherdr-anywhere    # needs Go 1.27.1 or newer\n~\u002F.local\u002Fbin\u002Fherdr-anywhere install-dialog\n```\n\n| | Command | Output |\n|---|---|---|\n| Android | `app\u002Fandroid\u002Fbuild.sh` (needs a JDK, the Android SDK and NDK, and Go) | `app\u002Fandroid\u002Fbuild\u002FHerdr.apk` |\n| iOS simulator | [Prepare NativeShell](app\u002Fios\u002FREADME.md#build-and-install), then `app\u002Fios\u002Fbuild.sh App.tsx simulator` (needs Xcode, xcodegen and Go) | `app\u002Fios\u002Fbuild\u002FHerdr.app` |\n| iPhone, under your Apple account | [app\u002Fios\u002FREADME.md](app\u002Fios\u002FREADME.md) | `app\u002Fios\u002Fbuild\u002FHerdr.app` |\n| Web | `cd app && nsh package --target web -o dist\u002Fweb` | `app\u002Fdist\u002Fweb\u002FHerdr Anywhere` |\n| The release's companion | `cd companion && CGO_ENABLED=0 go build -buildvcs=false -trimpath -ldflags '-s -w' -o herdr-anywhere-macos-arm64 .\u002Fcmd\u002Fherdr-anywhere` (for an Intel Mac: `GOARCH=amd64` and `-o herdr-anywhere-macos-amd64`) | `companion\u002Fherdr-anywhere-macos-arm64` |\n\nTests:\n\n```sh\ncd companion && go test .\u002F...\ncd app && scripts\u002Ftest.sh                                # unit and screen tests\nANDROID_SERIAL=emulator-5554 app\u002Fe2e\u002Fandroid.sh          # on a device or emulator\nANDROID_SERIAL=emulator-5554 app\u002Fe2e\u002Fandroid-switcher.sh \u003Capk> \u003Ccompanion>   # the switcher's buttons and swiping, with real taps\nANDROID_SERIAL=emulator-5554 app\u002Fe2e\u002Fandroid-update.sh \u003Cfiles listed in the script>   # updating the computer and the app\nSIM_UDID=\u003Csimulator udid> app\u002Fe2e\u002Fios.sh                 # on a simulator\nSIM_UDID=\u003Csimulator udid> app\u002Fe2e\u002Fios-tailcat.sh         # on a simulator, through TailPocket (needs the internet)\nSIM_UDID=\u003Csimulator udid> app\u002Fe2e\u002Fios-glyphs.sh          # on an iOS 26 simulator: agents' symbols are not the missing box\nSIM_UDID=\u003Csimulator udid> app\u002Fe2e\u002Fios-keyboard.sh        # on a simulator: the keyboard comes up for the terminal, with real taps\napp\u002Fe2e\u002Fuser-path.sh \u003Cfolder with the release files>     # INSTALL.md's steps, without Go\n```\n\nEvery pull request runs the companion, unit, screen and page tests and a secret scan. [CONTRIBUTING.md](CONTRIBUTING.md) says\nwhich test to write for which change.\n\n## License\n\nHerdr Anywhere's own code is [MIT](LICENSE). It uses Herdr's icons, program table and sounds from [herdr-app](https:\u002F\u002Fgithub.com\u002Fherdrdev\u002Fherdr-app)\n(Apache License 2.0). [NOTICE](NOTICE) lists everything it includes and the licenses.\n","Herdr Anywhere 是一款用于在手机上远程访问和控制本地 Herdr 智能代理的开源工具。它通过端到端加密连接，实现实时终端流式传输、代理阻塞即时通知（含声音与弹窗）、跨网络（Wi-Fi\u002F4G）无缝操作，并支持在手机端启动新代理、分屏执行任务及后台持续连接。项目无需账号、不依赖中心服务器，完全离线运行，更新机制兼顾安全与便捷。适用于开发者在移动场景下快速响应本地 AI 代理请求（如代码审核、文件权限确认、测试执行等），提升多端协同效率。",2,"2026-11-24 04:52:43","CREATED_QUERY"]