https://github.com/9trocode/assistant-ui
https://github.com/9trocode/assistant-ui
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/9trocode/assistant-ui
- Owner: 9trocode
- Created: 2026-02-10T18:35:23.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-02-10T20:49:31.000Z (about 1 month ago)
- Last Synced: 2026-02-10T21:57:22.394Z (about 1 month ago)
- Language: Go
- Size: 32.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenClaw UI Example
This example runs a focused chat UI for an OpenClaw-style autonomous profile.
It defines an SDK-style flow named `openclaw-ui-example` and can optionally start an
embedded DevUI API server with that flow registered.
## Run (monorepo)
From repo root:
```bash
go run ./examples/openclaw_ui --addr=0.0.0.0:8091 --api-base=http://127.0.0.1:7070
```
Self-contained mode (starts embedded API + flow):
```bash
go run ./examples/openclaw_ui --start-api --api-addr=0.0.0.0:7070 --addr=0.0.0.0:8091
```
Optional API key:
```bash
go run ./examples/openclaw_ui --addr=0.0.0.0:8091 --api-base=http://127.0.0.1:7070 --api-key=""
```
Then open `http://127.0.0.1:8091`.
## Docker (monorepo)
Build from repository root so Docker context includes root `go.mod`:
```bash
docker build -f examples/openclaw_ui/Dockerfile -t openclaw-ui .
docker run --rm -p 8091:8091 -p 7070:7070 openclaw-ui
```
## Standalone Project Mode
If you copy `examples/openclaw_ui` as an independent project:
1) Create standalone module file:
```bash
cp go.mod.standalone go.mod
# edit replace path to your local SDK checkout
go mod tidy
go run . --start-api --api-addr=127.0.0.1:7070 --addr=127.0.0.1:8091
```
2) Standalone Docker build (context = this folder):
```bash
docker build -f Dockerfile.standalone -t openclaw-ui-standalone .
docker run --rm -p 8091:8091 -p 7070:7070 openclaw-ui-standalone
```
Notes:
- Imports in `main.go` use root module style:
- `github.com/PipeOpsHQ/agent-sdk-go/devui`
- `github.com/PipeOpsHQ/agent-sdk-go/flow`
- `go.mod.standalone` currently uses local `replace` for predictable standalone builds.