mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Update installation guides to specify the official npm registry and add a recommendation to use it for global installs, as some mirrors may not sync platform packages in time.
63 lines
1.3 KiB
Markdown
63 lines
1.3 KiB
Markdown
# Quick Start
|
|
|
|
<Steps>
|
|
|
|
## Install HAPI
|
|
|
|
::: code-group
|
|
|
|
```bash [npm]
|
|
npm install -g @twsxtd/hapi --registry=https://registry.npmjs.org
|
|
```
|
|
|
|
```bash [Homebrew]
|
|
brew install tiann/tap/hapi
|
|
```
|
|
|
|
```bash [npx (one-off)]
|
|
npx @twsxtd/hapi
|
|
```
|
|
|
|
:::
|
|
|
|
> Recommendation: use the official npm registry for global install. Some mirrors may not sync platform packages in time.
|
|
|
|
Other install options: [Installation](./installation.md)
|
|
|
|
## Start the hub
|
|
|
|
```bash
|
|
hapi hub --relay
|
|
```
|
|
|
|
On first run, HAPI prints an access token and saves it to `~/.hapi/settings.json`.
|
|
|
|
`hapi server` remains supported as an alias.
|
|
|
|
The terminal will display a URL and QR code for remote access.
|
|
|
|
> End-to-end encrypted with WireGuard + TLS.
|
|
|
|
## Start a coding session
|
|
|
|
```bash
|
|
hapi
|
|
```
|
|
|
|
This starts Claude Code wrapped with HAPI. The session appears in the web UI.
|
|
|
|
## Open the UI
|
|
|
|
Open the URL shown in the terminal, or scan the QR code with your phone.
|
|
|
|
Enter your access token to log in.
|
|
|
|
</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](./installation.md#telegram-setup) - Set up Telegram notifications
|
|
- [Install the App](./pwa.md) - Add HAPI to your home screen
|