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

At a glance

How it runs
CLISelf-hosted serviceWeb app
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
Bun 1.4.0Codex 0.154.0+ for shared sessionsShell / CLINetwork accessLocal filesystem
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.

  1. A developer who leaves the desk and still needs to approve Claude Code permission prompts remotely.
  2. An engineer who wants to check on a running Codex session from a phone without restarting it in the terminal.
  3. A self-hoster running agents on a home server or VPS who prefers a browser or iPhone as the only interface.
  4. A mobile-first user who dictates instructions with voice rather than typing on a small screen.
  5. A team standardising remote control across several agents such as Claude Code, OpenCode and Kimi behind one UI.
  6. 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 --relay
  • npx 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 --relay

Build the single-file executable from source:

bun install
bun run build:single-exe

Native 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 codex

Without an argument, the UI asks which agent to start; scripts must name the agent explicitly. See the available commands and agents:

hapi --help

Expose a scoped workspace and start a session inside it:

hapi runner start --workspace-root /path/to/project

Safety 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Verified present in source (3/3)
  • data-flow disclosure

What are this agent's strengths and limitations?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Some gaps
69/ 100 5-point scale 3.5 / 5
This review covers the source as of Nov 07, 2026. The project has shipped 16 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 17/29
Reliability 9/14
Adaptability 14/18
Convention 14/18
Effectiveness 10/13
Verifiability 5/8
Why each dimension lost points
Trust17 / 29 · 2.9/5

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.

Reliability9 / 14 · 3.2/5

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.

Adaptability14 / 18 · 3.9/5

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.

Convention14 / 18 · 3.9/5

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.

Effectiveness10 / 13 · 3.8/5

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.

Verifiability5 / 8 · 3.1/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision ee1e6ae7c2ff New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/hapi.svg)](https://followagents.com/en/agents/hapi)
<a href="https://followagents.com/en/agents/hapi"><img src="https://followagents.com/badge/hapi.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. 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 ↗
  2. 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.1
    View on GitHub ↗
  3. 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.0
    View on GitHub ↗

FAQ

Does HAPI call an LLM itself, and who pays?
No. HAPI wraps the official agents you already have installed (Claude Code, Codex, OpenCode, etc.); model usage and billing stay with those agents and your accounts, while HAPI itself is free and open source.
Is the official relay mandatory?
No. --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?
Native clients handle chat, approvals, session creation, file browsing, dictation and push notifications; shell commands are issued from the mobile browser. File browsing only works for directories explicitly opened via hapi runner start --workspace-root.
Which agents are supported?
The README lists Claude Code, Codex, Cursor Agent, Grok Build, OpenCode, Kimi, Copilot, Antigravity, Pi and DeepSeek Harness; run hapi --help to see the list the installed version actually accepts.
What exactly is end-to-end encrypted?
The README states the relay uses WireGuard + TLS, encrypting data from your device to your machine; if you switch to a self-hosted tunnel, the security boundary is whatever your deployment provides.
Was this page helpful?
View on GitHub ↗ Install ↓

Host ecosystems

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts