@jacobbd/relay-ai 0.8.0 → 0.9.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 +18 -6
- package/dist/{chunk-5DDQJSTU.js → chunk-R4AWEK7T.js} +392 -117
- package/dist/chunk-R4AWEK7T.js.map +1 -0
- package/dist/cli.js +1618 -341
- package/dist/cli.js.map +1 -1
- package/dist/core/index.js +93 -79
- package/dist/core/index.js.map +1 -1
- package/dist/ui/public/app.js +164 -41
- package/dist/ui/public/index.html +32 -0
- package/dist/ui/public/provider-model-browser.js +18 -2
- package/dist/{ui-command-RYWL36VR.js → ui-command-FARF2BF4.js} +54 -10
- package/dist/ui-command-FARF2BF4.js.map +1 -0
- package/package.json +4 -3
- package/dist/chunk-5DDQJSTU.js.map +0 -1
- package/dist/ui-command-RYWL36VR.js.map +0 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|:---:|:---:|:---:|:---:|:---:|
|
|
22
22
|
| [](https://youtu.be/IvsUPHLhX0o) | [](https://youtu.be/42oiOB8IAu4) | [](https://www.youtube.com/watch?v=g7JKvqOHJl4) | [](https://www.youtube.com/watch?v=8vXJ0LfpdoY) | [](https://www.youtube.com/watch?v=4CEw0MQUE9I) |
|
|
23
23
|
|
|
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.
|
|
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 + Linux)**, **Google Gemini CLI**, and experimental **Antigravity CLI / IDE** support.
|
|
25
25
|
|
|
26
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
27
|
|
|
@@ -42,6 +42,7 @@ Pick your backend:
|
|
|
42
42
|
| `relay-ai claude` | Pick a provider → launch Claude Code |
|
|
43
43
|
| `relay-ai providers` | Add, import, list, remove, and refresh your AI providers |
|
|
44
44
|
| `relay-ai models` | Manage favorite models for mid-session `/model` switching |
|
|
45
|
+
| `relay-ai subagents` | Manage the separate one-model Codex SubAgent catalog |
|
|
45
46
|
| `relay-ai server` | Foreground API gateway (registry providers + optional Zen/Go) |
|
|
46
47
|
| `relay-ai server --vertex` | Foreground Anthropic-compatible gateway to Claude on Vertex AI |
|
|
47
48
|
| `relay-ai claude-app` | Launch Claude Desktop app with registry providers ([guide](docs/CLAUDE_DESKTOP_SETUP.md)) |
|
|
@@ -66,6 +67,7 @@ Pick your backend:
|
|
|
66
67
|
- **OpenCode Zen / Go:** Optional cloud backends when you have an OpenCode API key
|
|
67
68
|
- **SDK adapter proxy:** Non-Anthropic providers route through the Vercel AI SDK (same packages OpenCode uses), so Claude Code still speaks Anthropic format. Labeled `(via proxy)` in the picker
|
|
68
69
|
- **Favorite models:** Save up to 20 and switch mid-session with Claude Code's `/model` command
|
|
70
|
+
- **Codex SubAgent:** Build a separate, initially empty one-model catalog for Codex delegation; it never imports or synchronizes with General Favorites
|
|
69
71
|
- **Smart model pickers:** Recent models per provider, search for large lists (>25), paginated browse (15 per page)
|
|
70
72
|
- **Refresh model lists:** `relay-ai providers refresh-models` updates cached catalogs per provider
|
|
71
73
|
- **API server:** Run a local gateway on port **17645** for Claude Code, Claude Desktop, or any Anthropic-compatible client
|
|
@@ -90,9 +92,9 @@ Pick your backend:
|
|
|
90
92
|
| Favorite models | `relay-ai models` | ✅ Supported |
|
|
91
93
|
| OpenCode API server | `relay-ai server` | ✅ Supported |
|
|
92
94
|
| Vertex API gateway | `relay-ai server --vertex` | ✅ Supported |
|
|
93
|
-
| Claude Desktop (Cowork + Code) | `relay-ai claude-app` | ✅ Supported macOS + Windows ([guide](docs/CLAUDE_DESKTOP_SETUP.md)) |
|
|
95
|
+
| Claude Desktop (Cowork + Code) | `relay-ai claude-app` | ✅ Supported macOS + Windows + Linux ([guide](docs/CLAUDE_DESKTOP_SETUP.md)) |
|
|
94
96
|
| Codex CLI | `relay-ai codex` | ✅ Supported ([guide](docs/CODEX.md)) |
|
|
95
|
-
| ChatGPT desktop app (Codex mode) | `relay-ai codex-app` (alias `chatgpt`) | ✅ Supported macOS + Windows ([guide](docs/CODEX.md)) |
|
|
97
|
+
| ChatGPT desktop app (Codex mode) | `relay-ai codex-app` (alias `chatgpt`) | ✅ Supported macOS + Windows + Linux ([guide](docs/CODEX.md)) |
|
|
96
98
|
| Google Gemini CLI | `relay-ai gemini` | ⚠️ Experimental, model switching is done via .model prompt |
|
|
97
99
|
| Antigravity CLI | `relay-ai agy` | ⚠️ Experimental, use a throwaway Google account ([guide](docs/ANTIGRAVITY.md)) |
|
|
98
100
|
| Antigravity app | `relay-ai antigravity` | ⚠️ Experimental macOS + Windows support, use a throwaway Google account ([guide](docs/ANTIGRAVITY.md)) |
|
|
@@ -295,7 +297,7 @@ Run relay-ai as a foreground API gateway on port **17645**:
|
|
|
295
297
|
| **Vertex gateway** | `relay-ai server --vertex` | gcloud Application Default Credentials | Claude on Vertex AI |
|
|
296
298
|
| **Docker Server + Admin UI** | `docker compose up --build` | `RELAY_AI_SERVER_PASSWORD` + UI / env keys | Same registry gateway, managed in the browser |
|
|
297
299
|
|
|
298
|
-
> **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).
|
|
300
|
+
> **Claude Desktop (Cowork + Code):** For the automated macOS/Windows/Linux setup, use `relay-ai claude-app`. For manual or network setups, see [docs/CLAUDE_DESKTOP_SETUP.md](docs/CLAUDE_DESKTOP_SETUP.md).
|
|
299
301
|
>
|
|
300
302
|
> **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)**.
|
|
301
303
|
|
|
@@ -479,7 +481,7 @@ relay-ai codex # pick provider + model → Codex TUI
|
|
|
479
481
|
|
|
480
482
|
### Claude Desktop app (`relay-ai claude-app`)
|
|
481
483
|
|
|
482
|
-
Launch **Claude Desktop** (macOS or
|
|
484
|
+
Launch **Claude Desktop** (macOS, Windows, or Linux) with registry providers:
|
|
483
485
|
|
|
484
486
|
```bash
|
|
485
487
|
relay-ai claude-app
|
|
@@ -512,7 +514,7 @@ For agent / alef-agent integration (boot flags, NDJSON, JSONL): **[docs/AI-AGENT
|
|
|
512
514
|
|
|
513
515
|
> OpenAI merged the standalone Codex app into the ChatGPT desktop app on 2026-07-09 — it's now named "ChatGPT" on disk (bundle id and config format unchanged) and opens in Codex mode for existing Codex users. `relay-ai codex-app` and `relay-ai chatgpt` are the same command.
|
|
514
516
|
|
|
515
|
-
Launch the **ChatGPT app in Codex mode** (macOS or
|
|
517
|
+
Launch the **ChatGPT app in Codex mode** (macOS, Windows, or Linux) with registry providers:
|
|
516
518
|
|
|
517
519
|
```bash
|
|
518
520
|
relay-ai codex-app
|
|
@@ -520,6 +522,16 @@ relay-ai codex-app
|
|
|
520
522
|
|
|
521
523
|
Patches `~/.codex/config.toml` with backup; **Ctrl+C** in the relay-ai terminal asks whether to close ChatGPT Desktop and restore your config (choose "No, keep session running" to decline and keep going). The app keeps Codex's built-in `openai` provider active so existing conversation history remains visible, and routes the selected model through a foreground local proxy. Preview config without writing: `relay-ai codex-app --config`. Recovery: `relay-ai codex-app --restore`.
|
|
522
524
|
|
|
525
|
+
On Linux, Relay supports the packaged ChatGPT desktop app at `/usr/bin/chatgpt` or `/usr/lib/chatgpt/ChatGPT`. When launched from an X11/RDP terminal, Relay uses that terminal's window identity to resolve the active display, so the app opens in the current graphical session even when the inherited `DISPLAY` value is stale. Keep the Relay terminal open while using the app; it owns the local proxy.
|
|
526
|
+
|
|
527
|
+
To configure the model Codex uses when it launches a sub-agent, build the independent catalog before starting Codex:
|
|
528
|
+
|
|
529
|
+
```bash
|
|
530
|
+
relay-ai subagents
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
The catalog starts empty and has one slot. In mixed native/Relay mode, Codex decides when to launch a sub-agent and Relay routes that child to the configured Codex SubAgent model. Enable **Load native Codex models alongside Relay models** in the UI, or pass `--with-native` from the CLI. General Favorites and Codex SubAgent are separate lists.
|
|
534
|
+
|
|
523
535
|
See **[docs/CODEX.md](docs/CODEX.md)** for CLI vs app differences, file ownership, and troubleshooting.
|
|
524
536
|
|
|
525
537
|
> **MCP tools (Context7, chrome-devtools, the built-in browser, etc.) now work with non-native models.** Codex wraps local `[mcp_servers.*]` tools — and the built-in browser, which is itself exposed as an MCP tool — in a proprietary, undocumented format that only Codex's own ChatGPT backend used to be able to dispatch. relay-ai now translates this format on both the request and response side (splitting the model's flattened tool-call name back into Codex's expected `{namespace, name}` shape), so MCP tools and the browser work through any provider relay-ai routes to, not just Codex's native OpenAI/ChatGPT models.
|