Files
hapi/docs/guide/quick-start.md
T
weishu 1470b0c1e8 docs: refresh guides for drift and add reference pages
- Fix stale claims: passkey sign-in in FAQ/quick start/privacy, Android
  scheduled send, Russian locale and Mac Catalyst, session list search and
  filters, Claude remote integration, relay recommendation, shipped branch API
- Add authentication, CLI reference, configuration, peer sessions,
  conversation history, composer, usage and quotas, and local import pages
- Add a per-agent feature support table and missing REST routes
- Complete settings.schema.json, add page descriptions and a docs sitemap,
  and stop publishing native developer notes
2026-11-18 12:55:02 +08:00

52 lines
2.0 KiB
Markdown

---
description: "Install HAPI, start a hub with the built-in relay, and control your first coding agent session from your phone in a few minutes."
---
# Quick Start
<Steps>
## Install HAPI
```bash
npm install -g @twsxtd/hapi --registry=https://registry.npmjs.org
```
Other install options (Homebrew, npx, prebuilt binary, source): [Installation](./installation.md#install-the-cli)
## Start the hub
```bash
hapi hub --relay
```
On first run, HAPI prints an access token and saves it to `~/.hapi/settings.json`. The terminal displays a web URL and two QR codes for web access and native app pairing.
Details and local-only mode: [Hub setup](./installation.md#hub-setup)
## Start a coding session
```bash
hapi
```
Choose an installed agent from the picker. Its session appears in connected web and native clients.
To start one directly, use `hapi claude`, `hapi codex`, or another
[supported agent command](./agents.md). Scripts must specify the agent explicitly.
## Open the UI
- **Web / PWA (free):** open the web URL shown in the terminal, or scan the web QR code. Enter your access token if prompted. After that first sign-in you can add a passkey in Settings and use it instead of the token ([Authentication](./authentication.md)).
- **Native iOS / Android (paid):** install HAPI from the [App Store](https://apps.apple.com/app/id6805699104) or [Google Play](https://play.google.com/store/apps/details?id=run.hapi.companion), then scan the companion QR or enter the HTTPS hub URL and access token. See [Native apps](./native-apps.md) for pairing.
</Steps>
## Next steps
- [Seamless Handoff](./how-it-works.md#seamless-handoff) - Switch between terminal and phone seamlessly
- [Hub setup](./installation.md#hub-setup) - Access HAPI from anywhere
- [Notifications](./notifications.md) - Native app, Web Push, Telegram and ServerChan notifications
- [Deployment](./deployment.md) - Run HAPI as a persistent background service
- [Native apps](./native-apps.md) - Build, pair and use the iOS / Android clients
- [Install the PWA](./pwa.md) - Add the web app to your home screen