HAPI wraps official coding agents such as Claude Code, Codex, and OpenCode on your machine and lets you monitor, approve, and continue sessions from mobile apps, web/PWA, or Telegram.
Overview
HAPI keeps agent sessions on your computer while exposing them to remote clients. You start agents with hapi subcommands, then pair phones or browsers via QR codes and relay links with WireGuard and TLS encryption between device and host.
Features include seamless handoff between local terminals and remote UIs, shared Codex sessions on supported versions, workspace browsing when scoped roots are configured, voice dictation in native apps, and push notifications on mobile builds.
Clients include a free web/PWA with terminal and voice assistant, paid native iOS and Android apps, and optional Cloudflare Tunnel or Tailscale setups for self-hosted access. The stack is AGPL-3.0 and builds from source with Bun.
Supported agents span Claude Code, Codex, Cursor Agent, Grok Build, OpenCode, Kimi, Copilot, Antigravity, Pi, and DeepSeek Harness, using each tool's official CLI rather than reimplementing them.
Key features
- Remote control of local agent CLIs
- Web PWA and native mobile clients
- Session handoff without restart
- Tool approval from phone
- WireGuard and TLS relay encryption
- Workspace file browsing with scoped roots
- Voice dictation and web voice assistant
- Shared Codex sessions on supported versions
Use cases
- Approving agent actions away from desk
- Continuing terminal sessions on mobile
- Self-hosted hub for coding agents
- Running agents locally with remote visibility