cd /news/ai-agents/show-hn-horus-turn-an-old-android-ph… · home › topics › ai-agents › article
[ARTICLE · art-175384] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Show HN: Horus – Turn an old Android phone into a box for coding agents

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.

key 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`.

read7 min views2 publishedNov 24, 2026
Show HN: Horus – Turn an old Android phone into a box for coding agents
Image: Michielbdejong (auto-discovered)

Claude Code, Codex, and OpenCode in a real Linux terminal on your Android phone.

No root. No Termux. Open source.

Website · Docs · CLI · Issues · Discussions

Horus 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.

For 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.

𓋹 𓊽 𓌀 𓂀 𓌀 𓊽 𓋹

  1. Get the app fromF-Droid , or download the APK fromGitHub Releases . Both are the same F-Droid-signed file, so you can switch between them and keep your data.
  2. Open Horus, pick Alpine or Debian, and set a password. It downloads Linux (a few MB for Alpine, about 17 MB for Debian) and sets up the workspace.
  3. Tap an agent. It installs on first open, and you sign in to your account inside the agent itself.

You need an ARM64 phone on Android 7.0 or newer. New to all this? The beginner's guide starts from zero.

| 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, andapk add orapt install gets you the rest. You get your own user withsudo , and can add a second user on the other distro later in Settings. | | 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. | | 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. | | 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. | | 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. | | 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. |

Horus works fully on the phone. If you also want to treat it like a small cloud VM, plug it in over USB and use the horus CLI for SSH, file sync, port forwarding, and running one command on a whole drawer of phones:

npm install -g horus-cli
horus pair
horus ssh

The SSH server listens on the phone's loopback only and reaches your computer through adb forward, so nothing is exposed on Wi-Fi. Logins are key-only, root is refused, and pairing needs your Horus password. Settings → Remote access turns it off and lists paired computers you can revoke. The CLI guide covers setup from scratch.

React Native UI (App.tsx, src/)
  │  TerminalRuntime TurboModule + TerminalCanvas / TerminalInput native views
  ▼
Kotlin native layer (android/app/src/main/java/com/scariflabs/horus/terminal)
  ├─ DistroStore*            rootfs download → verify → extract → promote
  ├─ ProotSessionLauncher    builds the PRoot command line and guest environment
  ├─ TerminalSessionService  foreground service in the :terminal process
  └─ NativeTerminalEngine / TerminalCanvasView  VT parsing and rendering
        │
        ▼
terminal_pty.c (JNI) ── PRoot (native/, built from source) ── Alpine or Debian rootfs

Each 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.

Android'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.

Codex's own Linux sandbox doesn't work under PRoot, which is why the shell wraps codex with --sandbox danger-full-access; Codex's approval prompts still apply.

Remote 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.

Build from source #

You need Node.js ≥ 22.11, JDK 17, and the Android SDK and NDK (the standard React Native environment), plus make, bash, and git for the native runtime.

git clone --recurse-submodules https://github.com/scarif-labs/horus.git
cd horus
npm ci
npm run build:android:debug      # or build:android:release
adb install -r android/app/build/outputs/apk/debug/app-debug.apk

Cloned without --recurse-submodules? Run git submodule update --init to fetch the PRoot and libandroid-shmem sources.

Debug 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.

Release builds stay unsigned unless you pass a keystore through Gradle properties, for example in ~/.gradle/gradle.properties:

horus.releaseStoreFile=/path/to/release.keystore
horus.releaseStorePassword=...
horus.releaseKeyAlias=...
horus.releaseKeyPassword=...

Tests #

npm run typecheck
npm run lint
npm run test:unit                # Jest (TypeScript / React Native)
npm run test:kotlin              # JVM unit tests for the native layer
npm run test:android:connected   # instrumented tests on a connected device

PRs and pushes to main run Node checks, host native regressions, Android JVM tests, and unsigned release APK validation. See the CI and release maintainer guide for the pinned toolchain, local commands, required checks, and release acceptance.

Permissions #

Permission Why
INTERNET ,ACCESS_NETWORK_STATE Download Linux (Alpine or Debian), packages, and agents; show network state on the home screen
FOREGROUND_SERVICE ,FOREGROUND_SERVICE_SPECIAL_USE Keep terminal sessions running in a separate :terminal process while the UI is closed
POST_NOTIFICATIONS One notification per running session, and "waiting for you" when an agent finishes a turn
WAKE_LOCK Keep the CPU awake while a session is running
REQUEST_IGNORE_BATTERY_OPTIMIZATIONS Asked for during setup so Android doesn't long agent runs
VIBRATE Short haptic feedback on button taps
WRITE_EXTERNAL_STORAGE (API ≤ 28 only) Copy a folder to Download/Horus on old Android versions

The diagnostic log stays on the device and records lifecycle metadata only, never terminal input or output.

For F-Droid maintainers #

The build recipe is metadata/com.scariflabs.horus.yml in fdroiddata. New versions are picked up automatically from vX.Y.Z tags.

| Package ID | com.scariflabs.horus | | License | MIT ; bundled components inTHIRD_PARTY_NOTICES.md | | Source | https://github.com/scarif-labs/horus | | Issue tracker | https://github.com/scarif-labs/horus/issues | | Releases | Git tags vX.Y.Z ;versionName andversionCode are inandroid/app/build.gradle | | Store metadata | fastlane/metadata/android/en-US/ (description, screenshots, changelogs byversionCode ) | | ABI | arm64-v8a only | | Min / target SDK | 24 / 36 |

Anti-features

  • NonFreeNet. Horus downloads Alpine or Debian, its packages, and the coding agents from their upstream servers. Claude Code and Codex need accounts with their providers.
  • NonFreeAdd. Horus offers to install Claude Code, which is proprietary. Codex (Apache-2.0), OpenCode, and the plain shell are free software. Horus never handles provider credentials; sign-in happens inside each CLI.

Built from source

PRoot, talloc, and libandroid-shmem are compiled during the Gradle build byscripts/native/build-proot-runtime.sh :

  • native/proot : submodule,termux/proot v5.1.107.92, GPL-2.0-or-later;
  • native/libandroid-shmem : submodule,termux/libandroid-shmem v0.7, BSD-3-Clause;
  • native/talloc : talloc 2.4.3 core sources, vendored, LGPL-3.0-or-later. Horus's own changes are in native/patches/ . The build writes a runtime manifest with each binary's SHA-256, and the app refuses to start PRoot if the installed binaries don't match it.

The PTY isandroid/app/src/main/cpp/terminal_pty.c (JNI). #

Hermes bytecode compiler. Gradle usesnode_modules/hermes-compiler 's bundledhermesc by default. Sethorus.hermesCommand (seeandroid/app/build.gradle ) to use one built from source instead. The F-Droid recipe buildshermesc from the Hermes srclib and deletes the prebuilt one.

No binaries are committed except android/gradle/wrapper/gradle-wrapper.jar.

Runtime downloads: a pinned Alpine minirootfs from dl-cdn.alpinelinux.org, checked against a SHA-256 in AlpineRootfsCatalog.kt, or, if you pick Debian, a Debian 13 slim rootfs from this repo's rootfs-debian-13.7-20261005 release, checked against a SHA-256 in RootfsCatalog.kt; then that distro's packages, then each agent from its publisher the first time it is opened.

Ask setup and troubleshooting questions in Q&A, propose improvements in Ideas, or share a workflow in Show and tell. Use Issues for reproducible bugs.

See Contributing for reporting and pull request guidance, our Code of Conduct for participation standards, and the security policy before reporting a vulnerability.

𓋹 𓊽 𓌀 𓂀 𓌀 𓊽 𓋹

MIT. Bundled third-party components (xterm.js, PRoot, talloc, libandroid-shmem, fonts, agent marks) are listed with their licenses in THIRD_PARTY_NOTICES.md.

<sub>𓆣 Made by</sub>

── more in #ai-agents 4 stories · sorted by recency
── more on @scarif labs 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-horus-turn-a…] indexed:0 read:7min 2026-11-24 · —