Skip to content
erikfrishPublic

About

Native Android client for Herdr: chat with, approve and steer your AI coding agents, plus a terminal. SSH only.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

833 Commits

Folders and files

Repository files navigation

Herdline

Herdline on Android: agent chat with a Stop button, an approval card for a command, the terminal with its key bar, and the offline state with a kept draft; light and dark themes

Latest release License: Apache-2.0 Android 10+

Herd your coding agents from your phone. Herdline is a native Android client for Herdr: read what your agents are doing, approve or deny their commands, steer or stop a run, and drop into the terminal, over plain SSH.

Your agents keep running in Herdr on your computer. The phone is just a window onto them, so a dead battery or a tunnel never kills a run, and a "needs you" moment no longer waits until you are back at your desk.

Experimental prerelease. Builds are checked on an emulator against a sandboxed host and mock agents, and used on the author's own phone. See Status.

What you get

  • Native chat for your agents. Markdown, tool calls and status for OMP, Pi, Claude Code, Codex, OpenCode and Kilo, with approvals and questions you answer on the phone, Steer into a running turn and Stop. Other agents show read-only history.
  • A real terminal. Rendered with Ghostty's engine, with a two-page key bar (Esc, Tab, latching Ctrl/Alt/Shift, arrows), pinch zoom and selection.
  • All your hosts, over SSH. Several hosts attached at once, jump hosts, device or imported keys, ~/.ssh/config import. No relay, no account.
  • Told when an agent needs you. Android notifications for "needs input" and "finished" while Herdline holds a link to the host, plus a Needs you list at the top of the navigation drawer.
  • Safe on a bad connection. Drafts are kept per pane across restarts and reconnects, and are never sent automatically.
  • Workspaces, tabs and split panes as Herdr lays them out; image and file attachments for OMP; English and Simplified Chinese; Material You and light/dark themes.

Screens

Hosts screen with two SSH hosts
All your hosts
Slash command menu in Chat
Slash commands run in OMP
Tabs list of a Herdr workspace
Workspaces and tabs
Appearance settings with colour themes
Themes, Material You, OLED
Terminal settings with a live font preview
Terminal fonts with live preview
Tablet layout: tab sidebar and chat column
Tablets and foldables

Install

Get it on Obtainium Download the APK

  1. Tap Get it on Obtainium (prereleases are switched on in the imported setup), or download the signed APK from Releases (open the newest entry; all current releases are marked "Pre-release").
  2. Open it and allow Android to install from your browser or file manager.

Needs Android 10 or newer on arm64 or x86_64, and a host running Herdr 0.9.0 or later or herdr-core (the daemon behind herdr-app), reachable over SSH with a key.

Updates: Herdline checks this repository's release feed automatically at most once a day (or when you tap Check now) and updates in-app. It checks size, SHA-256, package, version and signing certificate, downloads only when you tap, and Android asks you to confirm the install. Details, and the one-tap Obtainium link, are in the guide.

Quick start

  1. Install the APK (above).
  2. Host: have Herdr 0.9.0+ running on your computer. If it is missing or too old, Herdline offers to install or update it, only when you tap.
  3. Key: copy the phone's public key from Settings › Security & hosts › Keys & certificates into the host's ~/.ssh/authorized_keys.
  4. Connect: on Hosts tap Add host, enter the address, and compare the host-key fingerprint with ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub on the host before trusting it. Choose herdr-core (herdr-app) as the backend if you use the Herdr desktop app's core.
  5. Chat: open a tab with an agent and tap Chat. For OMP, create the tab with New tab › OMP with Chat, or let Herdline install the Chat integration into an OMP you already run (needs python3 on the host). Other agents: see Supported agents.

How it works

flowchart LR
    phone["Herdline<br/>Android app"] <-->|"SSH, your keys"| host["Herdr or herdr-core<br/>on your computer"]
    host <--> agents["Agents in terminal panes<br/>OMP, Claude Code, Codex, OpenCode, ..."]
Loading

Herdr owns the terminals, workspaces, tabs, panes and agents. Herdline is only a client: Android has no ssh binary, so a Rust core embeds russh, speaks Herdr's own remote protocol and draws the screen with libghostty-vt. Chat reads each agent's existing session from the host and sends through the agent's own interface; it never starts a second copy of your agent. Architecture and crate map: docs/development.md.

Supported agents

What the code routes today, from the harness table in Harness.kt. "Pane" means the text is typed into the agent's own editor box in the terminal. Chat's What works here card shows the live state for the pane you have open.

Agent Chat history Send from phone Approvals / questions Steer Stop
OMP Yes Yes, through Herdline's host extension, with images and files Yes Yes Yes
Pi Yes Yes, with images and files Yes, for its dialogs Yes Yes
Claude Code Yes Via pane Yes, after you install Herdline's hook No Yes
Codex Yes Yes, queue and steer, when Herdline starts it Yes, when Herdline starts it Yes Yes
OpenCode Yes Yes, queue, steer and files, needs its server Yes Yes Yes
Kilo Yes Yes, steer and files, needs its server Yes Yes Yes
Gemini CLI Read-only, via Herdline's launcher No No No Esc key
Kimi Code, Grok, GitHub Copilot CLI, Qwen, Hermes (also under OMH), Mastra Code, Letta Read-only, with version limits No No No No
Anything else Herdr reports (Cursor, Amp, Kiro, Droid, Cline, ...) No Terminal only Terminal only Terminal only Terminal only

A Codex you start by hand stays read-only with typed send. Any agent is always usable in the Terminal view. Per-agent limits, exact versions and setup steps are in the guide; what Herdline does not do compared with Herdr's own client is in docs/herdr-parity.md.

Tern

Choose Tern as the host's server type to use a Tern session daemon over SSH (nothing installed there). Its sessions appear as workspaces with their tabs, split panes and status. The Terminal view is live where the host's daemon socket can be reached over SSH: output streams as the program writes it, the pane takes the phone's own columns and rows, and full-screen programs draw with their cursor. It takes keys, text, paste and the extra-keys row; new tab (with a program choice), split, rename, close and kill session work as on Herdr. An OMP running in a Tern pane opens in native Chat with Send, Steer, Stop and approvals, through OMP's own Herdline extension. When the socket cannot be reached, Herdline falls back to the tern command on the host: the terminal is then a snapshot refreshed within a moment of input, and a pane keeps the size Tern gave it.

Herdline drives Tern through the daemon's local socket (over SSH) and the tern command-line tool installed on your host. Tern is made by Stencil; Herdline is an independent project, not affiliated with or endorsed by Stencil.

Status

Herdline is an experimental prerelease under active development; versions are offered as untested candidates ("state": "not_tested" in updates/latest.json). Release notes record what was and was not verified for each version in release-notes/. Known gaps are listed in docs/herdr-parity.md, for example no split left/up, no pane resize and no desktop mod panels.

Privacy and security

  • No cloud, no account, no analytics. The app talks to your hosts over SSH. It bundles no analytics or crash-reporting library, and allowBackup is off.
  • Keys stay on the phone. Private keys are stored encrypted with an AES-GCM key held by the Android Keystore. Host keys are verified per hop and a changed key is refused.
  • Files go over SSH only. Attachments use the same SSH connection to the host.
  • The only other network use, all HTTPS and all user-visible: the release feed and APK from this repository (a daily check, a download only on tap), terminal fonts from the pinned Nerd Fonts repository when you pick one, and, only when you tap Install Herdr, Herdr's own installer (https://herdr.dev/install.sh) fetched and run on the host.
  • The live-update notification shows agent counts only: no names or messages.

Report vulnerabilities privately: see SECURITY.md.

Building from source

Needs JDK 17+, Android SDK platform 37, NDK 27.2.12479018, Rust 1.96.1 (pinned in rust-toolchain.toml, with the two Android targets), cargo-ndk, Zig 0.15.2 and, optionally, just. Put sdk.dir= and zig.dir= in local.properties.

just build   # debug APK under app/build/outputs/apk/debug/
just test    # cargo fmt/clippy/test, then Kotlin unit tests

Gradle runs cargo-ndk itself. Full setup, fast per-area checks, emulator UI checks and release signing: docs/development.md.

Contributing

Issues and pull requests are welcome; see CONTRIBUTING.md. The detailed behaviour reference is docs/guide.md, design decisions are in docs/decisions.md.

Licence and credits

Apache-2.0. Herdline is an independent fork of Bellterm by Terry Wang (Apache-2.0) and keeps its copyright and notices; Herdline's own changes are Copyright (c) 2026 erikfrish. NOTICE lists the third-party parts that keep their own licences: the Herdr protocol and client crates (Apache-2.0, from Herdr UI and Herdr), the theme palettes (MIT) and the bundled fonts.

Herdline is not affiliated with, endorsed by or supported by Bellterm, Terry Wang, Herdr or herdr.dev.

About

Native Android client for Herdr: chat with, approve and steer your AI coding agents, plus a terminal. SSH only.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages