Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
49554a1
docs(devlog): proxy upstream catch-up roadmap (CLIProxyAPI, cc-switch…
lidge-jun Nov 25, 2026
9c3ddc4
test: stabilize Link preflight and standalone stop checks (#9064)
luvs01 Nov 25, 2026
394af78
fix(gui): let the Combos page scroll past suggested combos (#9101) (#…
shu-chen-dot-ca Nov 25, 2026
a60574d
refactor(combos): move pool-account failure helpers into core-combo-f…
atinseau Nov 25, 2026
31555ce
chore(catalog): drop orphaned docstring at end of restore.ts (#8973)
sedoll Nov 25, 2026
50c1079
fix(catalog): name a configured Ultrafast tier like the native one (#…
AyhamJo7 Nov 25, 2026
9b5861c
feat(providers): add AI/ML API as a built-in provider (#8935)
lidge-jun Nov 25, 2026
00ddbb3
fix(windows): check the stop deadline after reading the idle task sta…
luvs01 Nov 25, 2026
d8b28be
fix(link): give the post-restart relay check room for SSH setup (#9095)
gitprogam Nov 25, 2026
5ab63b3
fix(codex): retire a carried monthly window when Plus reports its 5-h…
FredAmartey Nov 25, 2026
af11c58
feat(connections): read-only client connection view and Claude first-…
lidge-jun Nov 25, 2026
85a35ea
docs: point security support and reproduction to dev (#9059)
luvs01 Nov 25, 2026
8961476
fix(providers): send x-opencode-session in opencode-go completion tes…
EnesKartal Nov 25, 2026
8d43c92
fix(service): stop an update wedging on its own teardown receipts (#8…
bokjk Nov 25, 2026
66367b7
fix(service): explain a missing Windows scheduled task on start (#9043)
Ingwannu Nov 25, 2026
3ec89d2
fix(egress): keep an explicit provider proxy authoritative over proce…
lidge-jun Nov 25, 2026
c3aa113
test(web-search): isolate sticky selection from the header-timeout fi…
luvs01 Nov 25, 2026
927c3f3
fix(step-cli): bound new sessions while preserving existing conversat…
luvs01 Nov 25, 2026
846ebcd
fix(gemini): bound pending tool data in translated streams (#9067)
luvs01 Nov 25, 2026
f9ffbbd
perf(images): validate inline edit sources without decoding them (#9072)
luvs01 Nov 25, 2026
693454f
fix(gui): report consumed quota share in the per-account quota table …
rafaelmoreiraai Nov 25, 2026
030bdc3
feat(messaging): list local Claude Code sessions (#8992)
HojooonKim Nov 25, 2026
9a29289
fix(codex): learn exact refusals for registered native models (#9050)
wang-biubiu Nov 25, 2026
9e714a6
fix(opencode): write the loopback placeholder key for the keyless lis…
gaurav0107 Nov 25, 2026
bb4a19a
test(cli): follow the per-endpoint inherited receipt count in the sib…
lidge-jun Nov 25, 2026
b426995
docs: explain native compaction replay across model changes (#9044)
Ingwannu Nov 25, 2026
ea9a9e6
docs(update): describe preview version names and ordering (#9073)
SeongwoongCho Nov 25, 2026
a16e380
fix(link): serve ocx link status over the local control socket on Win…
lidge-jun Nov 25, 2026
d774689
fix(vision): apply caller model scope to the selected helper (#9061)
luvs01 Nov 25, 2026
eaf317b
perf(m365): reuse parsed tool ranges in completed answers (#9068)
luvs01 Nov 25, 2026
414faaf
fix(google): sanitize Claude Code 429 trigger phrases for gemini-4-ne…
EnesKartal Nov 25, 2026
249c72e
fix(codex): accept the context route in Desktop observation (#9099)
hostkimjang Nov 25, 2026
7ef7c58
fix(devin): rewrite official Claude Code CLI opener for Cognition (#9…
EnesKartal Nov 25, 2026
8a212ae
feat(oauth): per-account diagnostics with eligibility, refresh outcom…
lidge-jun Nov 25, 2026
d2e308d
fix(zai): degrade unsupported original image detail on Z.AI Responses…
sunseol Nov 25, 2026
7649c6f
docs(es): mirror the #9081 Antigravity prompt note and #9099 context …
lidge-jun Nov 25, 2026
93a4572
fix(windows): verify service owners when WMI evidence is missing (#9027)
luvs01 Nov 25, 2026
27fbfc3
feat(combos): add quota-only failover and a same-model guard (#9089)
atinseau Nov 25, 2026
206888e
feat(providers): persist API-key cooldowns across restarts (#9107)
lidge-jun Nov 25, 2026
a3e2c70
feat(combos): manage quota-only failover from the API and CLI (#9090)
atinseau Nov 25, 2026
3c0ed3b
Fix checked stop on localized Windows Task Scheduler states (#9041)
stanthewizzard Nov 25, 2026
04fdc4c
fix(link): restore guarded stop cleanup with native Windows owner pro…
luvs01 Nov 25, 2026
ab13a77
feat(i18n): add Spanish dashboard and README (#8706)
federicorv25 Nov 25, 2026
b6e581f
fix(adapters): share schema normalization budgets across tool definit…
luvs01 Nov 25, 2026
a79dde2
perf(windows): opt in to batching private ACL restrictions (#8996)
luvs01 Nov 25, 2026
20098e3
fix(providers): refresh Neuralwatt models, reasoning replay and usage…
JakobM7 Nov 25, 2026
2269082
feat(egress): per-account routes for Codex pool accounts (#9113)
lidge-jun Nov 25, 2026
a2ad310
feat(gui): add fallback presets and a route preview to the Combo edit…
atinseau Nov 25, 2026
5c827dc
fix(providers): rebind API-key cooldown persistence to the surviving …
lidge-jun Nov 25, 2026
6876fd0
feat(devin): add SWE-2.1 to the Devin provider (#9127)
lidge-jun Nov 25, 2026
70734c0
feat(adapters): carry video input where a wire publishes it, refuse i…
lidge-jun Nov 25, 2026
c0f59e4
feat(videos): OpenAI Videos wire for images.videoProvider and public …
lidge-jun Nov 25, 2026
6114fed
feat(audio): follow Codex GPT-Live defaults and gpt-transcribe fields…
lidge-jun Nov 25, 2026
2d016f6
fix(audio): align live scope checks between the native and external p…
lidge-jun Nov 25, 2026
5be4bb4
fix(responses): Codex 5505daf388 passthrough parity (stream exclusion…
lidge-jun Nov 25, 2026
db90fcf
feat(sponsors): RunAPI Standard sponsor preset, README row and docs (…
lidge-jun Nov 25, 2026
d7e8015
Refresh provider model catalogs against vendor sources (Gemini, Copil…
lidge-jun Nov 25, 2026
2d5fc5b
feat(audio): relay public GPT-Live sessions for API-key providers (#9…
lidge-jun Nov 25, 2026
8ef1526
feat(codex): opt the legacy opencodex provider table into Cyber acces…
lidge-jun Nov 25, 2026
87d7681
Merge OpenCodex v2.100.10
bcdonadio Nov 28, 2026
dba57f0
Preserve draft Combo target positions
bcdonadio Nov 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
68 changes: 68 additions & 0 deletions .github/scripts/release-evidence-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -1112,5 +1112,73 @@
"desktop/scripts/appimage-patchelf.py": "63e78ef74160bc48fbcdd882065f1d416db6d13c",
"desktop/scripts/linux-packaged-e2e.ts": "9ca92352668ff881c85caea44a9b4747bedc7e2d"
}
},
{
"kind": "ci",
"version": 1,
"windowsShards": 14,
"files": {
".github/workflows/ci.yml": "cdfc4ea31e35aba6a44123f04eba1fba0cee5791",
".github/actions/setup-project-bun/action.yml": "cf28f6f9d4385d69784f4e3610914f6952ce789d",
".github/scripts/release-evidence.cjs": "ace2b9006b2d58ef84ed0996b4e179ff4be15900",
".github/scripts/release-evidence.test.cjs": "9cc686390e5c37d8e693b98d049e8b505d0273cf",
"scripts/ci/select-test-lane.sh": "b25836cb55f962d1ffd9e68ed00f45f8b45becc8",
"scripts/ci/windows-sensitive-diff.sh": "03495f256c671aff57e750febffe19ca7face6a1",
"scripts/ci/run-bun-test-batches.sh": "59b1783aadf8109c0fa2d37047ff0d90300aa267",
"scripts/ci/bun-crash-signatures.sh": "d34662ddd07864d97bed909135095db33fe42c9e",
"scripts/ci/bun-install-frozen.sh": "e6d7bc3aec044e12297c7c4c04015a33df0eb22b",
"scripts/ci/docker-smoke.ts": "4eea7637d8658156feeaa356c0c3086c00d75fa5",
"scripts/ci/test-durations.tsv": "a07f90e6098082e1452ea5cc075c801271321eca",
"scripts/ci/test-durations.windows.tsv": "523cef871c3e17fc0344c98fb15eef79feb04c84",
"scripts/test.ts": "04dd7889cf820008f11550c410bb21a1ab19396d",
"scripts/lib/test-runner-bun.ts": "8763806104a851dbdefeea8cffe8d7dd8d1c8da1",
"scripts/test-temp-lock.ts": "ee83fb254b728de119028f52b9894bf52d7aea15",
"scripts/git-repository-env.ts": "267950490fffb4c48d9adb90bdcf5a873733b324",
"scripts/ci/run-changed-tests.sh": "9a54d3a5db9849bcbe0dd766954a840185419fa5",
"scripts/keyring-smoke.ts": "cd3be07ad57796172696dfa053ea1fb129f29365",
"scripts/privacy-scan.ts": "86314e891b45e49739b94c76cddd9e4cc2d4340f",
"scripts/structure-ssot.ts": "5b2d2918dae877fddfb16cdba6e89f0d10e82298",
"scripts/generate-ocx-skill-surface.ts": "155e866656ba2d71e8fd48adda857451caf16322",
"desktop/scripts/prepare-sidecar.ts": "20f7eec61f73635ea681e25f13dd850b62bb41e2",
"desktop/scripts/build-widget.sh": "38e0eb9d713804b603aa75c32383aa18ef01d06c",
"desktop/scripts/verify-macos-runtime.sh": "43f1a31375c6f6fe7dcafb9d96c231b98d1f6ba4",
"desktop/scripts/verify-linux-sidecar.sh": "c502bb5c8ba8346c722a8f5274f2274bb325a934",
"desktop/scripts/appimage-patchelf.py": "63e78ef74160bc48fbcdd882065f1d416db6d13c",
"desktop/scripts/linux-packaged-e2e.ts": "9ca92352668ff881c85caea44a9b4747bedc7e2d"
}
},
{
"kind": "ci",
"version": 1,
"windowsShards": 14,
"files": {
".github/workflows/ci.yml": "cdfc4ea31e35aba6a44123f04eba1fba0cee5791",
".github/actions/setup-project-bun/action.yml": "cf28f6f9d4385d69784f4e3610914f6952ce789d",
".github/scripts/release-evidence.cjs": "ace2b9006b2d58ef84ed0996b4e179ff4be15900",
".github/scripts/release-evidence.test.cjs": "9cc686390e5c37d8e693b98d049e8b505d0273cf",
"scripts/ci/select-test-lane.sh": "b25836cb55f962d1ffd9e68ed00f45f8b45becc8",
"scripts/ci/windows-sensitive-diff.sh": "03495f256c671aff57e750febffe19ca7face6a1",
"scripts/ci/run-bun-test-batches.sh": "59b1783aadf8109c0fa2d37047ff0d90300aa267",
"scripts/ci/bun-crash-signatures.sh": "d34662ddd07864d97bed909135095db33fe42c9e",
"scripts/ci/bun-install-frozen.sh": "e6d7bc3aec044e12297c7c4c04015a33df0eb22b",
"scripts/ci/docker-smoke.ts": "4eea7637d8658156feeaa356c0c3086c00d75fa5",
"scripts/ci/test-durations.tsv": "a07f90e6098082e1452ea5cc075c801271321eca",
"scripts/ci/test-durations.windows.tsv": "523cef871c3e17fc0344c98fb15eef79feb04c84",
"scripts/test.ts": "04dd7889cf820008f11550c410bb21a1ab19396d",
"scripts/lib/test-runner-bun.ts": "8763806104a851dbdefeea8cffe8d7dd8d1c8da1",
"scripts/test-temp-lock.ts": "ee83fb254b728de119028f52b9894bf52d7aea15",
"scripts/git-repository-env.ts": "267950490fffb4c48d9adb90bdcf5a873733b324",
"scripts/ci/run-changed-tests.sh": "9a54d3a5db9849bcbe0dd766954a840185419fa5",
"scripts/keyring-smoke.ts": "cd3be07ad57796172696dfa053ea1fb129f29365",
"scripts/privacy-scan.ts": "86314e891b45e49739b94c76cddd9e4cc2d4340f",
"scripts/structure-ssot.ts": "5b2d2918dae877fddfb16cdba6e89f0d10e82298",
"scripts/generate-ocx-skill-surface.ts": "653a8ed1b58d653b909cbf87e9358615d9ae8150",
"desktop/scripts/prepare-sidecar.ts": "20f7eec61f73635ea681e25f13dd850b62bb41e2",
"desktop/scripts/build-widget.sh": "38e0eb9d713804b603aa75c32383aa18ef01d06c",
"desktop/scripts/verify-macos-runtime.sh": "43f1a31375c6f6fe7dcafb9d96c231b98d1f6ba4",
"desktop/scripts/verify-linux-sidecar.sh": "c502bb5c8ba8346c722a8f5274f2274bb325a934",
"desktop/scripts/appimage-patchelf.py": "63e78ef74160bc48fbcdd882065f1d416db6d13c",
"desktop/scripts/linux-packaged-e2e.ts": "9ca92352668ff881c85caea44a9b4747bedc7e2d"
}
}
]
29 changes: 19 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Sol drives the session and calls a Kimi K3 subagent.
</table>

<p align="center">
<a href="README.md">English</a> · <a href="readme/README.fr.md">Français</a> · <a href="readme/README.ko.md">한국어</a> · <a href="readme/README.zh-CN.md">简体中文</a> · <a href="readme/README.zh-TW.md">繁體中文</a> · <a href="readme/README.ru.md">Русский</a> · <a href="readme/README.ja.md">日本語</a> · <a href="readme/README.tr.md">Türkçe</a> · 📖 <a href="https://opencodex.me/"><b>Full documentation →</b></a>
<a href="README.md">English</a> · <a href="readme/README.fr.md">Français</a> · <a href="readme/README.ko.md">한국어</a> · <a href="readme/README.zh-CN.md">简体中文</a> · <a href="readme/README.zh-TW.md">繁體中文</a> · <a href="readme/README.ru.md">Русский</a> · <a href="readme/README.ja.md">日本語</a> · <a href="readme/README.tr.md">Türkçe</a> · <a href="readme/README.es.md">Español</a> · 📖 <a href="https://opencodex.me/"><b>Full documentation →</b></a>
</p>

opencodex is a lightweight local gateway between your coding tools and your model providers. It
Expand Down Expand Up @@ -110,11 +110,11 @@ Connect the tool you already use:

| Tool | How to connect |
|---|---|
| Codex | Turn on the Codex switch on the dashboard's **Connect** page, then run `codex` as usual. On a local listener this points Codex's built-in provider at the proxy. From the terminal, run `ocx init` before adding providers in the dashboard and accept its Codex prompt. |
| Codex | Turn on the Codex switch on the dashboard's **Route** page, then run `codex` as usual. On a local listener this points Codex's built-in provider at the proxy. From the terminal, run `ocx init` before adding providers in the dashboard and accept its Codex prompt. |
| Claude Code | With the `claude` CLI installed, run `ocx claude`. It starts the proxy if needed and launches Claude Code through it. |
| Claude Desktop | Run `ocx claude desktop`. On a new install it sets up the gateway profile for the whole app; an existing first-party setup is kept, and `ocx claude desktop apply --gateway` switches explicitly. See the [Claude Code guide](https://opencodex.me/guides/claude-code/). Fully quit and reopen Claude Desktop after a switch. |
| Grok Build | On a local listener with Grok integration enabled, `ocx start` registers the models when `~/.grok` exists; pick an `ocx-*` model in Grok Build. Remote setups: see the [Grok Build guide](https://opencodex.me/guides/grok-build/). After adding providers, restart the proxy (or run `ocx ensure` when Codex autostart is enabled) to refresh the list. |
| Tools with a managed integration | Use the dashboard **Connect** page, or `ocx integration client enable --client <id>`. |
| Tools with a managed integration | Use the dashboard **Route** page, or `ocx integration client enable --client <id>`. |
| Any other tool | Set a custom OpenAI-compatible base URL of `http://localhost:10100/v1`, or an Anthropic base URL of `http://localhost:10100`. |

The [client support page](https://opencodex.me/reference/client-support/) lists which path each tool has
Expand Down Expand Up @@ -164,6 +164,10 @@ See [SPONSORS.md](./SPONSORS.md).
<td width="180"><a href="https://tokenlab.sh/r/OPENCODEX"><picture><source media="(prefers-color-scheme: dark)" srcset="assets/sponsors/tokenlab-dark.png"><img src="assets/sponsors/tokenlab-light.png" alt="TokenLab" width="150"></picture></a></td>
<td>Thanks to <a href="https://tokenlab.sh/r/OPENCODEX">TokenLab</a> for sponsoring this project! TokenLab gives coding agents one API key for leading models, supporting OpenAI Responses and Chat Completions, Anthropic Messages, and Gemini's native API formats, with streaming and tool calling. It also provides an MCP server and agent Skills for easy integration. Choose your delivery mode and pay as you go. Pick <code>TokenLab</code> in the Add provider picker or run <code>ocx provider add tokenlab</code>.<br><sub>TokenLab 为编程智能体提供统一的多模型 API,一枚 API Key 即可接入主流模型,支持 OpenAI Responses、Chat Completions、Anthropic Messages 和 Gemini 原生 API 格式,以及流式输出和工具调用。同时提供 MCP 服务器和 Agent Skills,方便接入现有工作流;交付模式可选,按量付费。</sub></td>
</tr>
<tr>
<td width="180"><a href="https://runapi.co"><img src="assets/sponsors/runapi.png" alt="RunAPI" width="64"></a></td>
<td>Thanks to <a href="https://runapi.co">RunAPI</a> for sponsoring this project! RunAPI is a unified AI API gateway: one API key opens a catalog of 200+ models from OpenAI, Anthropic, Google, xAI, DeepSeek, Alibaba, Moonshot and more, served over the OpenAI Chat Completions and Responses, Anthropic Messages, and Gemini native API formats, with the formats available varying by model. Smart routing sends each request to a fast, stable provider node with automatic failover, and pricing is pay-as-you-go, typically well below standard rates. Pick <code>RunAPI</code> in the Add provider picker or run <code>ocx provider add runapi</code>.</td>
</tr>
</tbody>
</table>

Expand Down Expand Up @@ -258,9 +262,12 @@ ocx start # or `ocx service`
ocx init # interactive setup: writes ~/.opencodex/config.json and wires Codex
```

`ocx init` never starts the proxy; start it first (or after — either order works, but headless
commands like `ocx provider add` and `ocx combo set` talk to the **live** proxy and exit nonzero
when it is unreachable). `ocx status` / `ocx doctor` / `ocx health` report the running state.
You can start the proxy before or after `ocx init`; `ocx init` never starts it for you.
`ocx provider add` saves local configuration without a running proxy. With `--sync`,
it saves first and then needs a running proxy to sync models to Codex. If the proxy is
unavailable, the provider stays saved, but the command exits nonzero; run `ocx sync`
once the proxy is up. `ocx provider add --live` and `ocx combo set` require a running
proxy. `ocx status` / `ocx doctor` / `ocx health` report the running state.

> **Agents installing or running opencodex:** read
> [`AGENTS_INSTALL.md`](./AGENTS_INSTALL.md). An interactive `ocx start` may ask once whether to
Expand Down Expand Up @@ -429,10 +436,12 @@ npm uninstall -g @bitkyc08/opencodex

## Remote access

By default opencodex binds to `127.0.0.1` and needs no extra authentication. Binding beyond
loopback (`"hostname": "0.0.0.0"`) **requires** a bearer token — the proxy refuses to start
without `OPENCODEX_API_AUTH_TOKEN`, and every client request must carry it as
`x-opencodex-api-key`. Details: [configuration reference](https://opencodex.me/reference/configuration/).
By default, opencodex binds to `127.0.0.1` and needs no extra data-plane authentication.
A non-loopback bind (for example, `"hostname": "0.0.0.0"`) **requires a configured client
API key or a shared data token**. The shared token is resolved from `OPENCODEX_API_AUTH_TOKEN`,
`OCX_API_TOKEN_FILE`, or the installed owner-only `service-api-token`. Inference clients
send an accepted credential in `x-opencodex-api-key`. Management uses a separate admin
credential. See the [configuration reference](https://opencodex.me/reference/configuration/).

## Advanced usage

Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ opencodex accepts security fixes on a best-effort basis for these lines:

| Version | Supported |
| --- | --- |
| `main` | ✅ |
| `dev` | ✅ |
| Latest published npm release | ✅ |
| Older releases | ❌ |

If you report an issue against an older release, maintainers may ask you to reproduce it on `main`
If you report an issue against an older release, maintainers may ask you to reproduce it on `dev`
or the latest published package before triage continues.

## Reporting a Vulnerability
Expand Down
Binary file added assets/sponsors/runapi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion desktop/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opencodex-desktop"
version = "2.100.8"
version = "2.100.10"
description = "OpenCodex desktop shell"
authors = ["OpenCodex contributors"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "OpenCodex",
"version": "2.100.8",
"version": "2.100.10",
"identifier": "com.opencodex.desktop",
"build": {
"frontendDist": "../ui",
Expand Down
67 changes: 67 additions & 0 deletions devlog/_fin/261126_realtime_voice_parity/000_plan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Realtime voice parity with Codex 5505daf388

Single implementation cycle. Source: Codex af91f6ef → 5505daf388 (read-only archive), OpenCodex origin/dev c0f59e4542.
Official references read 2026-11-26: developers.openai.com/api/docs/guides/transcription.md,
.../speech-to-text, .../reference/resources/audio/subresources/transcriptions/methods/create.md,
.../models/gpt-transcribe.md, .../models/gpt-live-1.1.md, .../guides/text-to-speech, .../deprecations.md.

## Why

Codex moved its default GPT-Live model to `gpt-live-1.1-codex` (b05266d61b,
codex-rs/core/src/realtime_conversation.rs:120) and now leaves the voice unset until the call
destination is known: ChatGPT backend calls get `cove` (codex-api/src/endpoint/realtime_call.rs:143),
API calls get `marin` for Frameless sessions (realtime_websocket/protocol.rs:52). Its backend
transcription client names the upload from the MIME type (backend-client/src/client.rs:514).
OpenAI's file transcription now recommends `gpt-transcribe` with `keywords[]` and `languages[]`
and returns detected `languages`; `gpt-4o-transcribe`, `gpt-4o-mini-transcribe` and `whisper-1`
shut down on 2027-02-26.

The native Codex relay in src/server/live.ts already forwards every Codex realtime header
(including `voice-session-id`), the client's model and close codes, so it does not change.
Through OpenCodex, Codex sees an API base and serializes an unset voice as `marin`; an explicit
`marin` looks identical, so the proxy cannot restore `cove` there. That stays documented only.

## Changes

| File | Change |
| --- | --- |
| src/server/audio-upstream.ts | `LIVE_AUDIO_MODEL = "gpt-live-1.1-codex"`; `resolveLiveAudioModel(model?)` maps `gpt-live-1` → `gpt-live-1-codex`, `gpt-live-1.1` → `gpt-live-1.1-codex`, omitted → default |
| src/server/audio-live.ts | call-create and standalone socket use `resolveLiveAudioModel`; the session the proxy synthesizes gets `audio.output.voice` after the upstream is resolved: keyed API relay `marin`, ChatGPT `cove`. A client-supplied session is never given a voice |
| src/server/audio-transcriptions.ts | keyed relay accepts `gpt-transcribe`; repeated `keywords[]`/`languages[]` only with `gpt-transcribe` on the keyed relay (bounded count, language code check, keyword without `<`, `>`, CR, LF); `language` and `languages[]` together refused; subscription refuses both list fields; JSON result adds well-formed `languages: [{code}]` when upstream returns it; an upload without an extension is named from its MIME (wav, mp3, m4a, webm, ogg) with the old `.webm` fallback |
| tests/server/audio-transcriptions.test.ts | red→green cases for the above |
| tests/server/audio-dictation.test.ts | default/alias handshake URLs; synthesized call-create voice per destination; client session untouched |
| tests/server/api-access-endpoints.test.ts | advertised `liveModel` follows the constant |
| structure/data-planes/inbound-compat.md, docs-site reference/proxy-formats.md (+ es) | default model, aliases, fields, result shape |

## Checks

`bun test tests/server/audio-transcriptions.test.ts tests/server/audio-dictation.test.ts tests/server/api-access-endpoints.test.ts tests/server/api-key-scope-audio.test.ts tests/server/api-key-scope-live.test.ts`,
`bun run typecheck`, `bun run structure:check`, `bun run privacy:scan`, docs-*.test.ts, test-layout and file-size ratchet tests.
Tests use fake fetch and local WebSocket fixtures only.

## Risks

A key scoped to `gpt-live-1-codex` that relied on the omitted-model default is now judged against
`gpt-live-1.1-codex`; naming `gpt-live-1` or `gpt-live-1-codex` keeps the old model.
NOT RUN: any live GPT-Live or transcription call, including whether the API-key `/v1/live` upstream accepts `gpt-live-1.1-codex`.


## Amendment after plan audit round 1 (Terra FAIL, 3 blockers)

1. `gpt-transcribe` refuses the singular `language` field (400) whether or not `languages[]` is present; other models keep `language` and refuse `languages[]`/`keywords[]`. Tests assert the upstream multipart body.
2. A client call-create session that names no `model` is forwarded with the resolved default model inserted, so the model judged by the key scope and recorded on the binding is the model the upstream runs. Only `model` is inserted; a client session never gains a voice. The admission predicate is unchanged.
3. Alias rewriting applies only to Frameless (`/v1/live` call-create and Frameless standalone sockets). Realtime standalone sockets keep their query model untouched, and bound joins keep the recorded model. Scoped tests prove the authorized model equals the forwarded model for `gpt-live-1`, `gpt-live-1.1`, an omitted model, a client session without a model, and a rejoin.

Notes adopted: the voice fixture captures call-create bodies; transcription tests cover repeated arrays versus duplicate scalars, array bounds, invalid keywords and codes, malformed `languages` responses, text output, MIME fallback, and Pool versus keyed. `ocx access audio` keeps its own model allowlist (src/cli/access-audio.ts:14) and is unchanged; the docs say `gpt-transcribe` is a keyed HTTP option.


## Amendment after plan audit round 2 (Terra FAIL, same class repeated)

The repeated finding is one class: on the external live paths, a destination that names no model is judged against the default. It covers a Frameless call-create session without `model`, `/v1/realtime/calls` without a session, and a Realtime standalone socket without a query model. The coordinator placed changes to key-scope admission in a separate report-only pull request. That pull request now owns the whole class under one rule: the external path judges the model it forwards, and when nothing names one, a model-scoped key is refused, as on the native path. This unit therefore drops round 1 amendment 2 (inserting a model into a client session). Here, an unnamed destination is judged against the new default exactly as it was judged against the old one, so this unit neither adds nor widens an unnamed case. Every case that names a model, whether directly or through a Frameless alias or the default the proxy itself synthesizes, is forwarded with the model it is judged on.


## Implementation notes (B)

- Call-create aliasing keeps its existing reach: the `gpt-live-1` rewrite already applied to both `/v1/live` and `/v1/realtime/calls` sessions, and `gpt-live-1.1` joins it there. Standalone rewriting stays Frameless-only.
- Bun's multipart parser drops a part's `Content-Type` (observed: a `File` sent as `audio/wav` arrives with `type === ""`), so the upload is identified from its leading bytes (RIFF/WAVE, ID3 or MPEG frame sync, `ftyp`, `OggS`, EBML, `fLaC`) and sent with that name and type. Unknown bytes keep the `.webm` name, as before.
- Red evidence: with the three `origin/dev` sources and the new tests, 12 tests fail; with the change, all pass.
Loading
Loading