mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Use relative paths with .md extension for docs/guide/*.md files and relative paths in README.md to support both GitHub rendering and VitePress website (which has base: '/docs/'). Fixes #36
59 lines
975 B
Markdown
59 lines
975 B
Markdown
# Quick Start
|
|
|
|
<Steps>
|
|
|
|
## Install HAPI
|
|
|
|
::: code-group
|
|
|
|
```bash [npm]
|
|
npm install -g @twsxtd/hapi
|
|
```
|
|
|
|
```bash [Homebrew]
|
|
brew install tiann/tap/hapi
|
|
```
|
|
|
|
```bash [npx (one-off)]
|
|
npx @twsxtd/hapi
|
|
```
|
|
|
|
:::
|
|
|
|
Other install options: [Installation](./installation.md)
|
|
|
|
## Start the server
|
|
|
|
```bash
|
|
hapi server
|
|
```
|
|
|
|
On first run, HAPI prints an access token and saves it to `~/.hapi/settings.json`.
|
|
|
|
## Start a coding session
|
|
|
|
```bash
|
|
hapi
|
|
```
|
|
|
|
This starts Claude Code wrapped with HAPI. The session appears in the web UI.
|
|
|
|
## Open the UI
|
|
|
|
Open your browser:
|
|
|
|
```
|
|
http://<your-ip>:3006
|
|
```
|
|
|
|
Enter your access token to log in.
|
|
|
|
</Steps>
|
|
|
|
## Next steps
|
|
|
|
- [Seamless Handoff](./how-it-works.md#seamless-handoff) - Switch between terminal and phone seamlessly
|
|
- [Remote access](./installation.md#remote-access) - Access HAPI from anywhere
|
|
- [Notifications](./installation.md#telegram-setup) - Set up Telegram notifications
|
|
- [Install the app](./pwa.md) - Add HAPI to your home screen
|