mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat: support opencode
This commit is contained in:
+2
-1
@@ -4,7 +4,7 @@
|
||||
|
||||
### What is HAPI?
|
||||
|
||||
HAPI is a local-first, self-hosted platform for running and controlling AI coding agents (Claude Code, Codex, Gemini) remotely. It lets you start coding sessions on your computer and monitor/control them from your phone.
|
||||
HAPI is a local-first, self-hosted platform for running and controlling AI coding agents (Claude Code, Codex, Gemini, OpenCode) remotely. It lets you start coding sessions on your computer and monitor/control them from your phone.
|
||||
|
||||
### What does HAPI stand for?
|
||||
|
||||
@@ -19,6 +19,7 @@ Yes, HAPI is open source and free to use under the AGPL-3.0-only license.
|
||||
- **Claude Code** (recommended)
|
||||
- **OpenAI Codex**
|
||||
- **Google Gemini**
|
||||
- **OpenCode**
|
||||
|
||||
## Setup & Installation
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ HAPI consists of three interconnected components that work together to provide r
|
||||
|
||||
### HAPI CLI
|
||||
|
||||
The CLI is a wrapper around AI coding agents (Claude Code, Codex, Gemini). It:
|
||||
The CLI is a wrapper around AI coding agents (Claude Code, Codex, Gemini, OpenCode). It:
|
||||
|
||||
- Starts and manages coding sessions
|
||||
- Registers sessions with the HAPI hub
|
||||
@@ -59,6 +59,7 @@ The CLI is a wrapper around AI coding agents (Claude Code, Codex, Gemini). It:
|
||||
hapi # Start Claude Code session
|
||||
hapi codex # Start OpenAI Codex session
|
||||
hapi gemini # Start Google Gemini session
|
||||
hapi opencode # Start OpenCode session
|
||||
hapi runner start # Run background service for remote session spawning
|
||||
```
|
||||
|
||||
@@ -173,7 +174,7 @@ HAPI's defining feature is the ability to seamlessly hand off control between lo
|
||||
|
||||
### Local Mode
|
||||
|
||||
When working in local mode, you have the full terminal experience — it is native Claude Code or Codex:
|
||||
When working in local mode, you have the full terminal experience — it is native Claude Code, Codex, or OpenCode:
|
||||
|
||||
- Direct keyboard input with instant response
|
||||
- Full terminal UI with syntax highlighting
|
||||
|
||||
@@ -4,7 +4,7 @@ Install the HAPI CLI and set up the hub.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Claude Code, OpenAI Codex CLI, or Google Gemini CLI installed
|
||||
- Claude Code, OpenAI Codex CLI, Google Gemini CLI, or OpenCode CLI installed
|
||||
|
||||
Verify your CLI is installed:
|
||||
|
||||
@@ -17,6 +17,9 @@ codex --version
|
||||
|
||||
# For Google Gemini CLI
|
||||
gemini --version
|
||||
|
||||
# For OpenCode CLI
|
||||
opencode --version
|
||||
```
|
||||
|
||||
## Architecture
|
||||
@@ -25,7 +28,7 @@ HAPI has three components:
|
||||
|
||||
| Component | Role | Required |
|
||||
|-----------|------|----------|
|
||||
| **CLI** | Wraps AI agents (Claude/Codex/Gemini), runs sessions | Yes |
|
||||
| **CLI** | Wraps AI agents (Claude/Codex/Gemini/OpenCode), runs sessions | Yes |
|
||||
| **Hub** | Central coordinator: persistence, real-time sync, remote access | Yes |
|
||||
| **Runner** | Background service for remote session spawning | Optional |
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ The voice assistant lets you:
|
||||
- **Approve permissions by voice** - Say "yes" or "no" to approve or deny permission requests
|
||||
- **Monitor progress** - Receive spoken updates when tasks complete or errors occur
|
||||
|
||||
The assistant bridges voice communication with your active coding agent (Claude Code, Codex, or Gemini), relaying your requests and summarizing responses in natural speech.
|
||||
The assistant bridges voice communication with your active coding agent (Claude Code, Codex, Gemini, or OpenCode), relaying your requests and summarizing responses in natural speech.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
|
||||
Reference in New Issue
Block a user