HAPI Remote Agent Console
Run coding agents on your own machine and take over from phone, web or Telegram without restarting a session.
- Source repo
- tiann/hapi
- Stars
- ★ 5.5k
- Last updated
- today v0.37.2
- FARS reviewed
- Nov 07, 2026 +16 new
- License
- AGPL-3.0
- Primary language
- TypeScript
- FA score
- 69/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude CodeChatGPT (Partial support)
- Cost
- Free software; you pay for model usage
- OS / editors
- iOS · Android per README
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A developer who leaves the desk and still needs to approve Claude Code permission prompts remotely.
- Not a fit if
- Users who never want to touch a terminal
- Teams that forbid any relay traffic
- Individuals unwilling to run a hub or self-host tunnels
- Website
- hapi.run ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-12-04latest release v0.37.2 (2026-12-04)+9.6 ★/day over 7 days
- Source review
- 69/100 · Some gaps
What does this agent do, and when should you use it?
HAPI is a local-first remote control layer that wraps official Claude Code, Codex, Cursor Agent, Grok Build, OpenCode, Kimi, Copilot, Antigravity, Pi and DeepSeek Harness sessions so you can move between the terminal and a phone without losing context. It ships a hub process, a Web/PWA front end, native SwiftUI/UIKit and Kotlin Compose clients, and a Telegram Mini App. For transport it offers an opt-in relay using WireGuard + TLS for end-to-end encryption from device to machine, or self-hosted options such as Cloudflare Tunnel and Tailscale. The deployment boundary is your own machine or server: start the hub via npx, then scan a QR code or open the printed URL. Beyond chat it exposes one-tap approval of agent requests, shell command execution from a mobile browser, dictation and a web voice assistant, plus opt-in scoped file browsing enabled through hapi runner start --workspace-root.
npx @twsxtd/hapi hub --relay starts the hub locally (hapi server is an alias) and prints a web URL plus two QR codes. npx @twsxtd/hapi prompts you to pick an agent and open a session, while hapi claude or hapi codex launches a named agent directly. The hub wraps that agent process, forwards session output to the native iOS/Android clients, Web/PWA or Telegram Mini App, and routes phone-side input, approvals and commands back into the terminal. From the phone you can approve agent requests in one tap, create sessions, browse files, dictate input or drive the agent with the web voice assistant, and run shell commands from the mobile browser. hapi runner start --workspace-root <path> exposes a scoped directory tree so new sessions can be started in permitted subdirectories. Codex 0.154.0+ allows the terminal and phone to share one session concurrently.
- A developer who leaves the desk and still needs to approve Claude Code permission prompts remotely.
- An engineer who wants to check on a running Codex session from a phone without restarting it in the terminal.
- A self-hoster running agents on a home server or VPS who prefers a browser or iPhone as the only interface.
- A mobile-first user who dictates instructions with voice rather than typing on a small screen.
- A team standardising remote control across several agents such as Claude Code, OpenCode and Kimi behind one UI.
- A platform engineer who wants session creation confined to explicitly allowed workspace subdirectories.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npx @twsxtd/hapi hub --relaynpx usage requires a Node.js runtime; building from source requires Bun 1.4.0
- Runtime
- Bun 1.4.0
How do you install or deploy this agent?
npx usage requires a Node.js runtime; building from source requires Bun 1.4.0.
Start the hub directly with npx, including the end-to-end encrypted relay:
npx @twsxtd/hapi hub --relayBuild the single-file executable from source:
bun install
bun run build:single-exeNative app build and pairing steps live in ios/README.md and android/README.md; self-hosted deployment (Cloudflare Tunnel, Tailscale) is covered in docs/guide/installation.md.
How do you use this agent?
After the hub starts it prints a web URL and two QR codes: open the URL in a browser, or pair a native app with the companion QR code.
Launch a specific agent directly:
hapi claude
hapi codexWithout an argument, the UI asks which agent to start; scripts must name the agent explicitly. See the available commands and agents:
hapi --helpExpose a scoped workspace and start a session inside it:
hapi runner start --workspace-root /path/to/projectSafety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- data-flow disclosure
What are this agent's strengths and limitations?
- Wraps the original agent process, so terminal behaviour and muscle memory stay intact and remote handoff never restarts the session.
- The relay uses WireGuard + TLS for end-to-end encryption, and Cloudflare Tunnel or Tailscale can replace it entirely.
- Native iOS/Android clients coexist with Web/PWA and a Telegram Mini App, covering approvals, session creation, files, dictation and push notifications.
- Codex 0.154.0+ supports one shared session used from terminal and phone at the same time.
- One interface spans Claude Code, Codex, Cursor Agent, OpenCode, Kimi, Pi and more.
- You must run and maintain the hub yourself, and long-term use involves either the relay or your own tunnel — it is not a managed hosted service.
- Building the single-file executable requires Bun 1.4.0, an extra runtime constraint.
- Shared Codex sessions only work on Codex 0.154.0 or newer.
- AGPL-3.0 imposes compliance obligations on redistribution and derivative works.
- The default relay routes session traffic through a third party (encrypted end to end), so organisations with data-residency rules need the self-hosted path.
How does this agent compare with similar options?
The README explicitly positions HAPI as a local-first alternative to Happy and points to docs/guide/why-hapi.md for the differences, noting that HAPI ("哈皮") is a transliteration of Happy and credits the original project. Happy is the only named alternative; Claude Code, Codex and the other agents are the targets HAPI wraps, not substitutes.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| HAPI Remote Agent Console This agent | 69 · Some gaps | CLIFree + model costs | ★ 5.5k | today | TypeScript | Codex · Claude Code |
| Reemoat | 72 · Some gaps | — | ★ 31 | 4d ago | TypeScript | Codex · Claude Code |
| swe-mux | 82 · Good | CLIFree | ★ 44 | 26d ago | Python | Codex · Claude Code |
| Pairfob | 66 · Some gaps | — | ★ 188 | 1d ago | TypeScript | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The privacy policy details local caches, credential storage, attachment uploads, transcription, push metadata, and external services. Relay code also shows input validation, size limits, rate limiting, and hashed-token logs. Deductions: remote terminal, session control, and command execution carry substantial authority, but the sample does not show the full permission implementation; some attachments upload before sending or saving, and cleanup is best effort; no dependency audit or vulnerability-handling evidence is provided. Pairing and permission actions have signs of user initiation, but the material does not establish confirmation and recovery for all external effects or clearly identify responsible maintainers.
The repository describes CLI, Hub, Runner, and client roles, and provides package-level test and typecheck scripts; troubleshooting includes examples for connection, token, and Runner issues. Deductions: the README, installation guide, and FAQ do not give fully consistent supported-Agent lists, and the sampled export index contains a duplicate entry; dependency availability relies on external tools and platform packages, with missing mirror packages acknowledged; the sample cannot establish consistent, actionable messages for all failure paths.
The material explicitly targets users of multiple coding agents, terminals, and mobile clients, and covers local, remote, team namespace, browser, and voice scenarios. Deductions: capability boundaries are documented, but a complete Agent capability matrix and limits for every feature are not shown; command entry supports selection or explicit Agent choice, while trigger and configuration details remain spread across guides; listed environment conditions do not establish support for every Agent, operating system, and client combination.
Documentation is organized across installation, clients, architecture, Agents, voice, and FAQ; setup steps, configuration variables, command examples, and licensing are specific, and the repository includes the AGPL-3.0 license text. Deductions: the supplied material has little version history; product naming and command aliases have some parallel forms; the privacy policy gives a contact email but the sample does not identify a responsible maintainer or establish a maintenance commitment; limitations are disclosed but coverage is partial.
HAPI combines sessions from multiple coding agents with remote mobile control, approvals, terminal access, and file browsing, providing a clear additional workflow; installation and common troubleshooting steps are actionable. Deductions: effectiveness is based on documented claims because the sample does not establish runtime outcomes; multiple clients, Hub, Runner, and optional services add setup and operating costs, with no cost estimate or comparison of simpler options.
Core feature, installation, and privacy claims have corresponding material across the README, guides, policy, and some source code; relay code specifically supports some claims about limits, validation, and logging. Deductions: many product capabilities are described without their implementation or tests in the sample; Agent lists differ across sources; facts, inferences, and unverified capabilities are not consistently distinguished in the policy and product descriptions.
- Remote use exposes session control and terminal capabilities to paired clients; protect the access token and use HTTPS for external access.
- Attachments may upload to the Hub before a message is sent or an entry is saved; removing an attachment does not guarantee immediate deletion of remote copies.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
v0.37.2 Release v0.37.2
Release notes excerpt
What's Changed * fix(cli): mask every non-allowlisted settings field in hapi doctor by @Duang777 in https://github.com/tiann/hapi/pull/2765 * fix(cli): keep argv out of npm launcher failure output by @Duang777 in https://github.com/tiann/hapi/pull/2766 * fix(hub): an update sent without an acknowledgement no longer takes the hub down by @miuiadmin in https://github.com/tiann/hapi/pull/2769 * fix(cli): keep job attach watching when a Windows liveness probe fails by @Duang777 in https://github.com/tiann/hapi/pull/2767 …View on GitHub ↗ -
v0.37.1 Release v0.37.1
Release notes excerpt
What's Changed * feat(ios): support session groups, dissolve group, and /sessions links by @tiann in https://github.com/tiann/hapi/pull/2752 Full Changelog: https://github.com/tiann/hapi/compare/v0.37.0...v0.37.1View on GitHub ↗ -
v0.37.0 Release v0.37.0
Release notes excerpt
What's Changed * feat: group spawned sessions under their leader in the session list by @tiann in https://github.com/tiann/hapi/pull/2727 * fix: keep session groups together when a session row is replaced by @tiann in https://github.com/tiann/hapi/pull/2728 * feat(web): dissolve a session group from the session list by @tiann in https://github.com/tiann/hapi/pull/2729 * feat: add the hapi-group-leader skill by @tiann in https://github.com/tiann/hapi/pull/2732 Full Changelog: https://github.com/tiann/hapi/compare/v0.36.8...v0.37.0View on GitHub ↗
FAQ
Does HAPI call an LLM itself, and who pays?
Is the official relay mandatory?
--relay is the quick-start path; the docs also describe Cloudflare Tunnel and Tailscale deployments that avoid the relay entirely.What can I do from the phone, and what can't I do?
hapi runner start --workspace-root.Which agents are supported?
hapi --help to see the list the installed version actually accepts.What exactly is end-to-end encrypted?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.