Files
openwork/packages/docs/cli.mdx
2026-02-23 16:48:29 -08:00

49 lines
1.0 KiB
Plaintext

---
title: "CLI"
description: "Run OpenWork with openwrk and related CLIs"
---
Use the CLI stack when you want automation without the desktop app.
## Main commands
- `openwrk`: headless orchestrator (OpenCode + OpenWork server + router)
- `openwork-server`: filesystem-backed remote API server
- `opencode-router`: Slack/Telegram bridge with directory routing
## openwrk (recommended)
```bash
npm install -g openwrk
openwrk start --workspace /path/to/workspace --approval auto
```
Useful follow-ups:
```bash
openwrk status --openwork-url http://127.0.0.1:8787 --opencode-url http://127.0.0.1:4096
openwrk approvals list --openwork-url http://127.0.0.1:8787 --host-token <token>
```
## openwork-server
```bash
npm install -g openwork-server
openwork-server --workspace /path/to/workspace --approval auto
```
Key env vars:
- `OPENWORK_TOKEN`
- `OPENWORK_HOST_TOKEN`
- `OPENWORK_APPROVAL_MODE`
## opencode-router
```bash
npm install -g opencode-router
opencode-router start
```
Pair it with bindings for deterministic routing by peer + directory.