@jacobbd/relay-ai 0.2.5 → 0.2.7
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/.markdown-link-check.json +7 -0
- package/AGENTS.md +2 -2
- package/CHANGELOG.md +9 -5
- package/README.md +40 -4
- package/dist/cli.js +2461 -2277
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -150,9 +150,9 @@ In all cases `process.env['OPENCODE_API_KEY']` is set immediately so the key is
|
|
|
150
150
|
- `--restore` globs `models-*.json` (CLI) and `app-models-*.json` (App); the new files are `models-favorites.json` and `app-models-favorites.json`.
|
|
151
151
|
- Zen/Go favorites are skipped in Codex (use Claude or Desktop gateway).
|
|
152
152
|
|
|
153
|
-
## Release status (v0.2.
|
|
153
|
+
## Release status (v0.2.6)
|
|
154
154
|
|
|
155
|
-
Current version is **v0.2.
|
|
155
|
+
Current version is **v0.2.6** — official launch release with the native provider registry, complete Claude/Codex app help, unified OpenCode Zen / Go setup, duplicate-provider migration, stable post-import refreshes, agent boot flags (`--provider` / `--model`), `relay-ai --ai`, favorites catalogs, and reasoning capability metadata.
|
|
156
156
|
|
|
157
157
|
**Known limitations (by design):**
|
|
158
158
|
- Cost display in Codex is always inaccurate for non-Anthropic models.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.2.
|
|
3
|
+
## [0.2.7] - 2026-06-19 (Official Launch Release)
|
|
4
4
|
|
|
5
5
|
### Added
|
|
6
6
|
- **Native provider registry** — Add, list, remove, refresh, and import providers with secure OS credential storage and templates for OpenRouter, Groq, Mistral, Together AI, Zen/Go, and SDK-backed custom endpoints.
|
|
7
|
-
- **Claude Code
|
|
7
|
+
- **Claude Code launcher** — Launch registry models through `relay-ai claude`, including provider/model boot flags, local OpenCode provider discovery, recent models, search, pagination, and favorites catalogs for mid-session switching.
|
|
8
|
+
- **Codex CLI launcher** — Launch the Codex terminal with registry providers via `relay-ai codex`.
|
|
9
|
+
- **Codex App launcher** — Launch the Codex desktop app with registry providers via `relay-ai codex-app`. Preserves existing conversation history by keeping Codex's built-in OpenAI provider identity; routes the selected model through a foreground local Responses proxy. Supports `--trace` for proxy debug logging.
|
|
8
10
|
- **Unified SDK gateway** — Route non-Anthropic providers through the Vercel AI SDK adapter while preserving Anthropic-compatible tool use, streaming, context windows, and model catalogs.
|
|
9
|
-
- **
|
|
10
|
-
- **Reasoning capability metadata** — Resolve reasoning controls from provider metadata, including OpenRouter `supported_parameters`, so models such as GLM 5.2 receive compatible reasoning options instead of stale defaults.
|
|
11
|
+
- **Claude Desktop integration** — Launch Claude Desktop in third-party provider mode with automatic configuration backup and restore.
|
|
11
12
|
- **Foreground server gateway** — Run `relay-ai server` for Claude Desktop or LAN usage, with registry-backed routing, password protection, and optional Vertex AI support.
|
|
13
|
+
- **Reasoning capability metadata** — Resolve reasoning controls from provider metadata, including OpenRouter `supported_parameters`, so models receive compatible reasoning options.
|
|
14
|
+
- **Favorites catalogs** — Save up to 20 models and switch mid-session in Claude Code (`/model`) and Codex.
|
|
12
15
|
- **First-run setup** — Configure providers from an inline wizard or import existing OpenCode provider settings.
|
|
13
|
-
|
|
16
|
+
- **Complete command help** — Every top-level command fully documented, including `codex-app`, `claude-app`, Vertex, restore, config, trace, and agent-reference flags.
|
|
17
|
+
- **Agent / headless launch** — Boot flags (`--provider`, `--model`), clean NDJSON/JSONL stdout, and `relay-ai --ai` reference for scripts and alef-agent.
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
> Relay any model into any coding agent — launch tools, switch providers, and run local API gateways.
|
|
9
9
|
|
|
10
10
|
[](https://www.npmjs.com/package/@jacobbd/relay-ai)
|
|
11
|
-
[](
|
|
11
|
+
[](LICENSE)
|
|
12
12
|
[](https://buymeacoffee.com/jacobbd)
|
|
13
13
|
|
|
14
14
|
**relay-ai** is an interactive CLI that launches AI coding tools and runs local API gateways on your machine. Currently, it supports **Claude Code**, **Claude Desktop (Cowork + Code)**, the **OpenAI Codex CLI**, and the **Codex desktop app (macOS + Windows)**.
|
|
@@ -30,7 +30,9 @@ Pick your backend:
|
|
|
30
30
|
| `relay-ai models` | Manage favorite models for mid-session `/model` switching |
|
|
31
31
|
| `relay-ai server` | Foreground API gateway (registry providers + optional Zen/Go) |
|
|
32
32
|
| `relay-ai server --vertex` | Foreground Anthropic-compatible gateway to Claude on Vertex AI |
|
|
33
|
+
| `relay-ai claude-app` | Launch Claude Desktop app with registry providers ([guide](docs/CLAUDE_DESKTOP_SETUP.md)) |
|
|
33
34
|
| `relay-ai codex` | Launch OpenAI Codex CLI with registry providers ([guide](docs/CODEX.md)) |
|
|
35
|
+
| `relay-ai codex-app` | Launch Codex desktop app with registry providers ([guide](docs/CODEX.md)) |
|
|
34
36
|
| `relay-ai --ai` | Full agent reference for scripts and alef-agent ([guide](docs/AI-AGENTS.md)) |
|
|
35
37
|
|
|
36
38
|
Bare `relay-ai` prints help and migration guidance. Use `relay-ai claude` for the wizard.
|
|
@@ -80,14 +82,48 @@ Bare `relay-ai` prints help and migration guidance. Use `relay-ai claude` for th
|
|
|
80
82
|
|
|
81
83
|
## Installation
|
|
82
84
|
|
|
85
|
+
To install the CLI globally:
|
|
86
|
+
|
|
83
87
|
```bash
|
|
84
|
-
# Install globally
|
|
85
88
|
npm install -g @jacobbd/relay-ai
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Upgrading
|
|
92
|
+
|
|
93
|
+
To upgrade to the latest version:
|
|
86
94
|
|
|
87
|
-
|
|
95
|
+
```bash
|
|
88
96
|
npm update -g @jacobbd/relay-ai
|
|
89
97
|
```
|
|
90
98
|
|
|
99
|
+
### Uninstallation
|
|
100
|
+
|
|
101
|
+
To uninstall the CLI globally:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
npm uninstall -g @jacobbd/relay-ai
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
> [!NOTE]
|
|
108
|
+
> If you use a Node version manager like **NVM**, make sure you run the uninstall command using the active Node version that was used to install it (e.g., run `nvm use <version>` first).
|
|
109
|
+
|
|
110
|
+
To fully remove the tool and all its configuration data, you can delete the configuration directory (`.relay-ai`) on your operating system:
|
|
111
|
+
|
|
112
|
+
- **macOS / Linux**:
|
|
113
|
+
```bash
|
|
114
|
+
rm -rf ~/.relay-ai
|
|
115
|
+
```
|
|
116
|
+
- **Windows**:
|
|
117
|
+
- In Command Prompt:
|
|
118
|
+
```cmd
|
|
119
|
+
rmdir /s /q "%USERPROFILE%\.relay-ai"
|
|
120
|
+
```
|
|
121
|
+
- In PowerShell:
|
|
122
|
+
```powershell
|
|
123
|
+
Remove-Item -Recurse -Force "$env:USERPROFILE\.relay-ai"
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
|
|
91
127
|
## Setup
|
|
92
128
|
|
|
93
129
|
### Configure providers
|
|
@@ -317,7 +353,7 @@ Launch the **Codex app** (macOS or Windows) with registry providers:
|
|
|
317
353
|
relay-ai codex-app
|
|
318
354
|
```
|
|
319
355
|
|
|
320
|
-
Patches `~/.codex/config.toml` with backup; **Ctrl+C** in the relay-ai terminal restores your config.
|
|
356
|
+
Patches `~/.codex/config.toml` with backup; **Ctrl+C** in the relay-ai terminal restores your config. 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`.
|
|
321
357
|
|
|
322
358
|
See **[docs/CODEX.md](docs/CODEX.md)** for CLI vs app differences, file ownership, and troubleshooting.
|
|
323
359
|
|