@jacobbd/relay-ai 0.5.0 → 0.6.0
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 +22 -1
- package/dist/{chunk-44KQK6Y5.js → chunk-SV2Y6OCD.js} +2792 -2584
- package/dist/chunk-SV2Y6OCD.js.map +1 -0
- package/dist/cli.js +25 -7
- package/dist/cli.js.map +1 -1
- package/dist/ui/public/app.js +48 -18
- package/dist/ui/public/index.html +1 -1
- package/dist/ui/public/oauth-device.js +44 -19
- package/dist/ui/public/style.css +8 -0
- package/dist/{ui-command-M7KMKIQC.js → ui-command-DJZIIIWC.js} +110 -46
- package/dist/ui-command-DJZIIIWC.js.map +1 -0
- package/package.json +2 -1
- package/dist/chunk-44KQK6Y5.js.map +0 -1
- package/dist/ui-command-M7KMKIQC.js.map +0 -1
package/README.md
CHANGED
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
|
|
24
24
|
**relay-ai** is an interactive CLI — and now a **visual launcher** — that connects AI coding tools to any provider and runs local API gateways on your machine. It supports **Claude Code**, **Claude Desktop (Cowork + Code)**, the **OpenAI Codex CLI**, the **ChatGPT desktop app in Codex mode (macOS + Windows)**, **Google Gemini CLI**, and experimental **Antigravity CLI / IDE** support.
|
|
25
25
|
|
|
26
|
+
> **Deploy with Docker / AI assistants:** To run an always-on **Server + Admin UI** from this repo (`docker compose up`), read **[docs/DOCKER.md](docs/DOCKER.md)** first — it includes questions to ask the user and an exact checklist. The container is **not** full desktop Relay AI (no Claude/Codex/Antigravity app launch inside Docker).
|
|
27
|
+
|
|
26
28
|
Pick your backend:
|
|
27
29
|
|
|
28
30
|
- **Your providers** — configure once with `relay-ai providers` (Groq, Mistral, Nvidia, DeepSeek, custom OpenAI/Anthropic endpoints, and more)
|
|
@@ -36,6 +38,7 @@ Pick your backend:
|
|
|
36
38
|
|---------|-------------|
|
|
37
39
|
| `relay-ai` | Print help (does not launch Claude Code) |
|
|
38
40
|
| `relay-ai ui` | **Open the visual launcher** — manage providers and launch any tool from a browser UI |
|
|
41
|
+
| `relay-ai ui --server` | **Server + Admin UI** (Docker-friendly) — providers / favorites / gateway only; binds `0.0.0.0` |
|
|
39
42
|
| `relay-ai claude` | Pick a provider → launch Claude Code |
|
|
40
43
|
| `relay-ai providers` | Add, import, list, remove, and refresh your AI providers |
|
|
41
44
|
| `relay-ai models` | Manage favorite models for mid-session `/model` switching |
|
|
@@ -54,6 +57,7 @@ Pick your backend:
|
|
|
54
57
|
## Features
|
|
55
58
|
|
|
56
59
|
- **Visual launcher UI:** `relay-ai ui` opens a browser dashboard — launch any supported tool with a point-and-click model picker. Pick provider and model in the UI; the terminal opens straight to the running session with no second selection step. Manage providers and favorites without leaving the browser.
|
|
60
|
+
- **Docker Server + Admin UI:** `docker compose up` (see **[docs/DOCKER.md](docs/DOCKER.md)**) runs an always-on admin UI + gateway for LAN/home-lab use — providers, favorites, and Start Server without a desktop keychain. Host CLI still launches Claude / Codex / Antigravity.
|
|
57
61
|
- **Server tab in the UI:** Run the same API gateway as `relay-ai server` — favorites-only or specific providers, discovery id masking for Claude Desktop / Cowork, local or network listen mode — from a browser form instead of a terminal wizard. Shows live URLs, the API key, and the full model catalog once started, with a one-click Stop.
|
|
58
62
|
- **Native provider registry:** `relay-ai providers` stores config in `~/.relay-ai/providers.json` and secrets in the OS keychain — no OpenCode binary required at launch. See **[docs/PROVIDERS.md](docs/PROVIDERS.md)** for a full list of providers and known issues.
|
|
59
63
|
- **Provider templates:** Add Groq, Mistral, Together, OpenRouter, and 15+ SDK-backed providers, plus custom OpenAI/Anthropic-compatible endpoints
|
|
@@ -79,6 +83,7 @@ Pick your backend:
|
|
|
79
83
|
| Tool | Command | Status |
|
|
80
84
|
|------|---------|--------|
|
|
81
85
|
| **Visual launcher UI** | `relay-ai ui` | ✅ Supported — browser dashboard for all tools |
|
|
86
|
+
| **Docker Server + Admin UI** | `docker compose up` | ✅ Supported — always-on gateway ([guide](docs/DOCKER.md)) |
|
|
82
87
|
| Provider registry | `relay-ai providers` | ✅ Supported ([guide](docs/PROVIDERS.md)) |
|
|
83
88
|
| Claude Code | `relay-ai claude` | ✅ Supported |
|
|
84
89
|
| Favorite models | `relay-ai models` | ✅ Supported |
|
|
@@ -284,8 +289,19 @@ Run relay-ai as a foreground API gateway on port **17645**:
|
|
|
284
289
|
|------|---------|------|--------|
|
|
285
290
|
| **Registry gateway** | `relay-ai server` | Per-provider keys in registry (+ OpenCode key for Zen/Go if exposed) | Providers you configured |
|
|
286
291
|
| **Vertex gateway** | `relay-ai server --vertex` | gcloud Application Default Credentials | Claude on Vertex AI |
|
|
292
|
+
| **Docker Server + Admin UI** | `docker compose up --build` | `RELAY_AI_SERVER_PASSWORD` + UI / env keys | Same registry gateway, managed in the browser |
|
|
287
293
|
|
|
288
294
|
> **Claude Desktop (Cowork + Code):** For the automated macOS/Windows setup, use `relay-ai claude-app`. For manual or network setups, see [docs/CLAUDE_DESKTOP_SETUP.md](docs/CLAUDE_DESKTOP_SETUP.md).
|
|
295
|
+
>
|
|
296
|
+
> **Docker (recommended for always-on home lab / NAS):** clone this repo → `cp .env.docker.example .env` → set `RELAY_AI_SERVER_PASSWORD` → `docker compose up --build` → open **http://127.0.0.1:8787**. Full playbook for humans and AI assistants: **[docs/DOCKER.md](docs/DOCKER.md)**.
|
|
297
|
+
|
|
298
|
+
### Docker one-liner
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
cp .env.docker.example .env # set RELAY_AI_SERVER_PASSWORD (and optional OPENCODE_API_KEY)
|
|
302
|
+
docker compose up --build
|
|
303
|
+
# Admin UI → http://127.0.0.1:8787 · Gateway (after Start Server) → :17645
|
|
304
|
+
```
|
|
289
305
|
|
|
290
306
|
### Registry gateway (`relay-ai server`)
|
|
291
307
|
|
|
@@ -320,8 +336,11 @@ Any one-run server option also skips the wizard:
|
|
|
320
336
|
| `--free-only` / `--no-free-only` | Enable or disable the free/free-access model filter for this run |
|
|
321
337
|
| `--mask-gateway-ids` / `--no-mask-gateway-ids` | Enable or disable discovery id masking for this run |
|
|
322
338
|
| `--password <value>` | One-run password for network mode when you do not want to use a saved password |
|
|
339
|
+
| `--trace` | Write debug logs to `~/.relay-ai/logs/server-debug.log` and print errors on exit |
|
|
323
340
|
|
|
324
|
-
Non-interactive shells (scripts, services, CI, pipes) use quick mode automatically. If quick mode resolves to network mode, relay-ai uses `--password` first, then a saved server password; without
|
|
341
|
+
Non-interactive shells (scripts, services, CI, pipes) use quick mode automatically. If quick mode resolves to network mode, relay-ai uses `--password` first, then `RELAY_AI_SERVER_PASSWORD`, then a saved server password; without any of those it exits with a clear error instead of prompting.
|
|
342
|
+
|
|
343
|
+
**Docker:** run Server + Admin UI in a container (env vars, no OS keychain). See **[docs/DOCKER.md](docs/DOCKER.md)** and `docker compose up --build` → http://127.0.0.1:8787.
|
|
325
344
|
|
|
326
345
|
**Local mode** — point any Anthropic-compatible client at your machine:
|
|
327
346
|
|
|
@@ -578,6 +597,8 @@ The OpenCode API key (for Zen/Go) and per-provider keys are stored separately, b
|
|
|
578
597
|
|
|
579
598
|
See **[docs/TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md)** for common issues — especially **“Not logged in”** after accidentally choosing **No** on Claude Code’s custom API key prompt.
|
|
580
599
|
|
|
600
|
+
Docker / container gateway issues: **[docs/DOCKER.md](docs/DOCKER.md)** (ports, LAN advertise, secrets, Compose logs).
|
|
601
|
+
|
|
581
602
|
## Upgrading from opencode-starter
|
|
582
603
|
|
|
583
604
|
If you used the old **opencode-starter** CLI, relay-ai migrates automatically on first run:
|