{"slug": "show-hn-horus-turn-an-old-android-phone-into-a-box-for-coding-agents", "title": "Show HN: Horus – Turn an old Android phone into a box for coding agents", "summary": "Scarif Labs released Horus, an open-source Android app that runs a full ARM64 Linux workspace (Alpine, or Debian 13 as experimental) on an ARM64 phone running Android 7.0 or newer without root or Termux, putting Claude Code, Codex, and OpenCode one tap away. In the launch demo, Claude Code downloaded a film, installed ffmpeg, and cut a trailer while Codex trained a neural network from scratch to 97.97% on MNIST, both on a budget phone from 2021. Terminals run in a foreground service in their own process so agent sessions keep running with the screen off, and an optional `horus` CLI (installed via `npm install -g horus-cli`) adds SSH, file sync, and port forwarding over USB through `adb forward`, with the SSH server bound to the phone's loopback only.", "body_md": "**Claude Code, Codex, and OpenCode in a real Linux terminal on your Android phone.**\n\nNo root. No Termux. Open source.\n\n[Website](https://scariflabs.com/horus) · [Docs](https://scariflabs.com/horus/docs) · [CLI](https://github.com/scarif-labs/horus/blob/main/cli/README.md) · [Issues](https://github.com/scarif-labs/horus/issues) · [Discussions](https://github.com/scarif-labs/horus/discussions)\n\nHorus gives your phone a full ARM64 Linux workspace (Alpine, or Debian if you prefer) and a proper terminal to drive it, then puts the coding agents one tap away. Pick Claude Code, Codex, OpenCode, or a plain zsh shell, point it at a project, and let it work; sessions keep running with the screen off.\n\nFor the launch demo, Claude Code downloaded a film, installed ffmpeg, and cut a trailer, while Codex trained a neural network from scratch to 97.97% on MNIST. Both ran on a budget phone from 2021.\n\n𓋹 𓊽 𓌀 𓂀 𓌀 𓊽 𓋹\n\n1. **Get the app** from[F-Droid](https://f-droid.org/packages/com.scariflabs.horus/) ,\nor download the APK from[GitHub Releases](https://github.com/scarif-labs/horus/releases/latest) .\nBoth are the same F-Droid-signed file, so you can switch between them and\nkeep your data.\n2. **Open Horus, pick Alpine or Debian, and set a password.** It downloads\nLinux (a few MB for Alpine, about 17 MB for Debian) and sets up the\nworkspace.\n3. **Tap an agent.** It installs on first open, and you sign in to your\naccount inside the agent itself.\n\nYou need an ARM64 phone on Android 7.0 or newer. New to all this? The\n[beginner's guide](https://scariflabs.com/horus/docs) starts from zero.\n\n| Alpine Linux in app storage, or Debian 13 (experimental) for programs that need glibc, checked against a pinned SHA-256 before it's unpacked. `git` ,`curl` ,`jq` ,`rg` ,`python3` , and Node arrive when you first need them, and`apk add` or`apt install` gets you the rest. You get your own user with`sudo` , and can add a second user on the other distro later in Settings. | \n| Claude Code, Codex, and OpenCode each install into their own home the first time you open them, with the installer output right there in the terminal. | \n| Native PTY and renderer with resize, Ctrl‑C, and job control. The key bar adds Esc, Tab, arrows, and Ctrl/Alt for everything a phone keyboard leaves out (tap for one key, double-tap to lock). COPY opens the screen and scrollback as selectable text. | \n| Terminals run in a foreground service in their own process. Switch apps, lock the phone, let Android kill the UI; the agent keeps going and notifies you when it's waiting on you. | \n| Make a folder, clone any HTTPS or SSH URL, or pick from your GitHub repos after a device login in the browser. Everything lives in `/workspace/projects` , and a read-only file browser previews it and copies folders to Downloads. | \n| No analytics, ads, crash reporting, or Google services. A password locks the app after 15 minutes in the background, and Horus never touches your agent credentials. | \n\nHorus works fully on the phone. If you also want to treat it like a small\ncloud VM, plug it in over USB and use the [`horus` CLI](https://github.com/scarif-labs/horus/blob/main/cli/README.md) for\nSSH, file sync, port forwarding, and running one command on a whole drawer of\nphones:\n\n```\nnpm install -g horus-cli\nhorus pair\nhorus ssh\n```\n\nThe SSH server listens on the phone's loopback only and reaches your computer\nthrough `adb forward`, so nothing is exposed on Wi-Fi. Logins are key-only,\nroot is refused, and pairing needs your Horus password. **Settings → Remote\naccess** turns it off and lists paired computers you can revoke. The\n[CLI guide](https://scariflabs.com/horus/docs/cli) covers setup from scratch.\n\n```\nReact Native UI (App.tsx, src/)\n  │  TerminalRuntime TurboModule + TerminalCanvas / TerminalInput native views\n  ▼\nKotlin native layer (android/app/src/main/java/com/scariflabs/horus/terminal)\n  ├─ DistroStore*            rootfs download → verify → extract → promote\n  ├─ ProotSessionLauncher    builds the PRoot command line and guest environment\n  ├─ TerminalSessionService  foreground service in the :terminal process\n  └─ NativeTerminalEngine / TerminalCanvasView  VT parsing and rendering\n        │\n        ▼\nterminal_pty.c (JNI) ── PRoot (native/, built from source) ── Alpine or Debian rootfs\n```\n\nEach agent runs as its own guest user (UIDs 61001–61003) with a private home, and they all share workspace GID 1000 so they can work on the same projects.\n\nAndroid's app sandbox is the only real security boundary. PRoot emulates user IDs but gives no kernel isolation between agent users, so don't run code you don't trust.\n\nCodex's own Linux sandbox doesn't work under PRoot, which is why the shell\nwraps `codex` with `--sandbox danger-full-access`; Codex's approval prompts\nstill apply.\n\nRemote access stays off until you pair a computer or turn it on. Any app on the phone can reach loopback ports, so the paired key is what keeps others out.\n\n## **Build from source**\n\nYou need Node.js ≥ 22.11, JDK 17, and the Android SDK and NDK (the standard\n[React Native environment](https://reactnative.dev/docs/set-up-your-environment)),\nplus `make`, `bash`, and `git` for the native runtime.\n\n```\ngit clone --recurse-submodules https://github.com/scarif-labs/horus.git\ncd horus\nnpm ci\nnpm run build:android:debug      # or build:android:release\nadb install -r android/app/build/outputs/apk/debug/app-debug.apk\n```\n\nCloned without `--recurse-submodules`? Run `git submodule update --init` to\nfetch the PRoot and libandroid-shmem sources.\n\nDebug builds embed the JavaScript bundle, so they start without Metro. They also skip the password screens and open straight into a development terminal; release builds have the full onboarding and lock flow.\n\nRelease builds stay unsigned unless you pass a keystore through Gradle\nproperties, for example in `~/.gradle/gradle.properties`:\n\n```\nhorus.releaseStoreFile=/path/to/release.keystore\nhorus.releaseStorePassword=...\nhorus.releaseKeyAlias=...\nhorus.releaseKeyPassword=...\n```\n\n## **Tests**\n\n```\nnpm run typecheck\nnpm run lint\nnpm run test:unit                # Jest (TypeScript / React Native)\nnpm run test:kotlin              # JVM unit tests for the native layer\nnpm run test:android:connected   # instrumented tests on a connected device\n```\n\nPRs and pushes to `main` run Node checks, host native regressions, Android JVM\ntests, and unsigned release APK validation. See the\n[CI and release maintainer guide](https://github.com/scarif-labs/horus/blob/main/docs/maintainers/ci-and-releases.md) for the\npinned toolchain, local commands, required checks, and release acceptance.\n\n## **Permissions**\n\n| Permission | Why | \n|---|---|\n| `INTERNET` ,`ACCESS_NETWORK_STATE` | Download Linux (Alpine or Debian), packages, and agents; show network state on the home screen | \n| `FOREGROUND_SERVICE` ,`FOREGROUND_SERVICE_SPECIAL_USE` | Keep terminal sessions running in a separate `:terminal` process while the UI is closed | \n| `POST_NOTIFICATIONS` | One notification per running session, and \"waiting for you\" when an agent finishes a turn | \n| `WAKE_LOCK` | Keep the CPU awake while a session is running | \n| `REQUEST_IGNORE_BATTERY_OPTIMIZATIONS` | Asked for during setup so Android doesn't pause long agent runs | \n| `VIBRATE` | Short haptic feedback on button taps | \n| `WRITE_EXTERNAL_STORAGE` (API ≤ 28 only) | Copy a folder to `Download/Horus` on old Android versions | \n\nThe diagnostic log stays on the device and records lifecycle metadata only, never terminal input or output.\n\n## **For F-Droid maintainers**\n\nThe build recipe is\n[`metadata/com.scariflabs.horus.yml`](https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/com.scariflabs.horus.yml)\nin fdroiddata. New versions are picked up automatically from `vX.Y.Z` tags.\n\n| Package ID | `com.scariflabs.horus` | \n| License | [MIT](https://github.com/scarif-labs/horus/blob/main/LICENSE) ; bundled components in[THIRD_PARTY_NOTICES.md](https://github.com/scarif-labs/horus/blob/main/THIRD_PARTY_NOTICES.md) | \n| Source | [https://github.com/scarif-labs/horus](https://github.com/scarif-labs/horus) | \n| Issue tracker | [https://github.com/scarif-labs/horus/issues](https://github.com/scarif-labs/horus/issues) | \n| Releases | Git tags `vX.Y.Z` ;`versionName` and`versionCode` are in[`android/app/build.gradle`](https://github.com/scarif-labs/horus/blob/main/android/app/build.gradle) | \n| Store metadata | [`fastlane/metadata/android/en-US/`](https://github.com/scarif-labs/horus/blob/main/fastlane/metadata/android/en-US) (description, screenshots, changelogs by`versionCode` ) | \n| ABI | `arm64-v8a` only | \n| Min / target SDK | 24 / 36 | \n\n**Anti-features**\n\n- **NonFreeNet.** Horus downloads Alpine or Debian, its packages, and the coding\nagents from their upstream servers. Claude Code and Codex need accounts with\ntheir providers.\n- **NonFreeAdd.** Horus offers to install Claude Code, which is proprietary.\nCodex (Apache-2.0), OpenCode, and the plain shell are free software. Horus\nnever handles provider credentials; sign-in happens inside each CLI.\n\n**Built from source**\n\n- \n**PRoot, talloc, and libandroid-shmem** are compiled during the Gradle build\nby[`scripts/native/build-proot-runtime.sh`](https://github.com/scarif-labs/horus/blob/main/scripts/native/build-proot-runtime.sh) :\n  - `native/proot` : submodule,[termux/proot](https://github.com/termux/proot) v5.1.107.92, GPL-2.0-or-later;\n  - `native/libandroid-shmem` : submodule,[termux/libandroid-shmem](https://github.com/termux/libandroid-shmem) v0.7, BSD-3-Clause;\n  - `native/talloc` : talloc 2.4.3 core sources, vendored, LGPL-3.0-or-later.\n Horus's own changes are in [`native/patches/`](https://github.com/scarif-labs/horus/blob/main/native/patches) . The build\nwrites a runtime manifest with each binary's SHA-256, and the app refuses to\nstart PRoot if the installed binaries don't match it.\n- \n**The PTY** is[`android/app/src/main/cpp/terminal_pty.c`](https://github.com/scarif-labs/horus/blob/main/android/app/src/main/cpp/terminal_pty.c) (JNI).\n- \n**Hermes bytecode compiler.** Gradle uses`node_modules/hermes-compiler` 's\nbundled`hermesc` by default. Set`horus.hermesCommand` (see[`android/app/build.gradle`](https://github.com/scarif-labs/horus/blob/main/android/app/build.gradle) ) to use one built from\nsource instead. The F-Droid recipe builds`hermesc` from the Hermes srclib\nand deletes the prebuilt one.\n\nNo binaries are committed except `android/gradle/wrapper/gradle-wrapper.jar`.\n\n**Runtime downloads:** a pinned Alpine minirootfs from\n`dl-cdn.alpinelinux.org`, checked against a SHA-256 in\n[`AlpineRootfsCatalog.kt`](https://github.com/scarif-labs/horus/blob/main/android/app/src/main/java/com/scariflabs/horus/terminal/AlpineRootfsCatalog.kt),\nor, if you pick Debian, a Debian 13 slim rootfs from this repo's\n[`rootfs-debian-13.7-20261005`](https://github.com/scarif-labs/horus/releases/tag/rootfs-debian-13.7-20261005)\nrelease, checked against a SHA-256 in\n[`RootfsCatalog.kt`](https://github.com/scarif-labs/horus/blob/main/android/app/src/main/java/com/scariflabs/horus/terminal/RootfsCatalog.kt);\nthen that distro's packages, then each agent from its publisher the first time\nit is opened.\n\nAsk setup and troubleshooting questions in\n[Q&A](https://github.com/scarif-labs/horus/discussions/categories/q-a),\npropose improvements in\n[Ideas](https://github.com/scarif-labs/horus/discussions/categories/ideas),\nor share a workflow in\n[Show and tell](https://github.com/scarif-labs/horus/discussions/categories/show-and-tell).\nUse [Issues](https://github.com/scarif-labs/horus/issues) for reproducible bugs.\n\nSee [Contributing](https://github.com/scarif-labs/horus/blob/main/CONTRIBUTING.md) for reporting and pull request guidance,\nour [Code of Conduct](https://github.com/scarif-labs/horus/blob/main/.github/CODE_OF_CONDUCT.md) for participation standards,\nand the [security policy](https://github.com/scarif-labs/horus/blob/main/.github/SECURITY.md) before reporting a vulnerability.\n\n𓋹 𓊽 𓌀 𓂀 𓌀 𓊽 𓋹\n\n[MIT](https://github.com/scarif-labs/horus/blob/main/LICENSE). Bundled third-party components (xterm.js, PRoot, talloc,\nlibandroid-shmem, fonts, agent marks) are listed with their licenses in\n[THIRD_PARTY_NOTICES.md](https://github.com/scarif-labs/horus/blob/main/THIRD_PARTY_NOTICES.md).\n\n<sub>𓆣 Made by</sub>", "url": "https://wpnews.pro/news/show-hn-horus-turn-an-old-android-phone-into-a-box-for-coding-agents", "canonical_source": "https://github.com/scarif-labs/horus", "published_at": "2026-11-24 12:25:39+00:00", "updated_at": "2026-11-24 12:42:24.666673+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-products"], "entities": ["Scarif Labs", "Horus", "Claude Code", "Codex", "OpenCode", "Alpine Linux", "Debian 13", "Android"], "also_reported_by": [], "takeaway": "Horus runs Claude Code, Codex, and OpenCode inside a PRoot-based Alpine or Debian ARM64 workspace on an unrooted Android 7.0+ phone, keeping sessions alive in a foreground service with the screen off and exposing SSH only over loopback via `adb forward`.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-horus-turn-an-old-android-phone-into-a-box-for-coding-agents", "markdown": "https://wpnews.pro/news/show-hn-horus-turn-an-old-android-phone-into-a-box-for-coding-agents.md", "text": "https://wpnews.pro/news/show-hn-horus-turn-an-old-android-phone-into-a-box-for-coding-agents.txt", "jsonld": "https://wpnews.pro/news/show-hn-horus-turn-an-old-android-phone-into-a-box-for-coding-agents.jsonld"}}