HAPI is a powerful CLI and Hub that wraps AI agents (Claude Code, OpenAI Codex, Gemini, OpenCode).
This template deploys a self-hosted HAPI Hub, which provides:
Once deployed, get your CLI_API_TOKEN from the service instructions, and set up your local terminal:
export HAPI_API_URL="[https://your-domain.zeabur.app](https://your-domain.zeabur.app)"
export CLI_API_TOKEN="your-token"
hapi
If you provided a TELEGRAM_BOT_TOKEN during deployment, you can message your bot on Telegram with /start, open the Mini App, and enter your CLI_API_TOKEN to control sessions from your phone.