@gitlawb/openclaude 0.1.8 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/dist/cli.mjs +39770 -35337
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -185,6 +185,41 @@ With Firecrawl enabled:
|
|
|
185
185
|
|
|
186
186
|
Free tier at [firecrawl.dev](https://firecrawl.dev) includes 500 credits. The key is optional.
|
|
187
187
|
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## Headless gRPC Server
|
|
191
|
+
|
|
192
|
+
OpenClaude can be run as a headless gRPC service, allowing you to integrate its agentic capabilities (tools, bash, file editing) into other applications, CI/CD pipelines, or custom user interfaces. The server uses bidirectional streaming to send real-time text chunks, tool calls, and request permissions for sensitive commands.
|
|
193
|
+
|
|
194
|
+
### 1. Start the gRPC Server
|
|
195
|
+
|
|
196
|
+
Start the core engine as a gRPC service on `localhost:50051`:
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
npm run dev:grpc
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
#### Configuration
|
|
203
|
+
|
|
204
|
+
| Variable | Default | Description |
|
|
205
|
+
|-----------|-------------|------------------------------------------------|
|
|
206
|
+
| `GRPC_PORT` | `50051` | Port the gRPC server listens on |
|
|
207
|
+
| `GRPC_HOST` | `localhost` | Bind address. Use `0.0.0.0` to expose on all interfaces (not recommended without authentication) |
|
|
208
|
+
|
|
209
|
+
### 2. Run the Test CLI Client
|
|
210
|
+
|
|
211
|
+
We provide a lightweight CLI client that communicates exclusively over gRPC. It acts just like the main interactive CLI, rendering colors, streaming tokens, and prompting you for tool permissions (y/n) via the gRPC `action_required` event.
|
|
212
|
+
|
|
213
|
+
In a separate terminal, run:
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
npm run dev:grpc:cli
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
*Note: The gRPC definitions are located in `src/proto/openclaude.proto`. You can use this file to generate clients in Python, Go, Rust, or any other language.*
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
188
223
|
## Source Build And Local Development
|
|
189
224
|
|
|
190
225
|
```bash
|