8000 [pull] main from can1357:main by pull[bot] · Pull Request #112 · ericrihm/oh-my-pi · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
db8f939
feat(rpc): add Pi-compatible get_entries, get_tree, thinking levels, …
44madfire Sep 21, 2026
08c8c77
feat(rpc): address review: drop get_commands alias, prefix off in thi…
44madfire Sep 21, 2026
80251bc
feat(rpc): deterministic persisted-history test, qualified entry-payl…
44madfire Sep 22, 2026
d6137f3
fix(agent): stopped background completions from cascading auto-backgr…
roboomp Sep 22, 2026
f143800
fix(usage): showed Alibaba Token Plan monthly quotas
roboomp Sep 22, 2026
65a90e6
feat(rpc): correct getAvailableThinkingLevels JSDoc for off-inclusive…
44madfire Sep 22, 2026
b8e85da
fix(codex): update client version for GPT-6 models
itsddvn Sep 22, 2026
519e460
docs(changelog): note Codex client update
itsddvn Sep 22, 2026
a3ee64d
fix(catalog): add Codex Sol and Luna pricing
itsddvn Sep 22, 2026
617c2cb
merge: resolve main conflicts in Codex pricing rules
itsddvn Sep 22, 2026
28bc2df
merge: resolve main conflicts in Codex updates
itsddvn Sep 22, 2026
abc3c18
feat(coding-agent): add before_subagent_spawn extension event
aloyzzz Sep 22, 2026
e6d56ef
fix(lsp): deferred provisional cold diagnostics
roboomp Sep 22, 2026
775834a
perf(coding-agent): pin whole-buffer TTSR lookaheads
Dante-dan Sep 22, 2026
7113460
docs(changelog): attribute TTSR scan fix
Dante-dan Sep 22, 2026
d9d7c09
fix(natives): drop the stale minimizer filter generator from pi-natives
STRML Sep 22, 2026
0dd6b14
fix(coding-agent): preserve lazy lookahead semantics
Dante-dan Sep 22, 2026
55dc2d7
fix(coding-agent/tools): kept native JSON Schema roots out of JTD con…
roboomp Sep 22, 2026
869b42e
docs: documented OTLP exporter request header env variables
roboomp Sep 22, 2026
e19460c
fix(browser): drove tab.fill and frame actions off puppeteer locator
roboomp Sep 22, 2026
ee6758e
fix(coding-agent): explain model fallback causes
lockwo Sep 22, 2026
89c59c5
fix(browser): tolerate missing Puppeteer callsites
Dante-dan Sep 22, 2026
6481f6f
fix(tui): preserve distinguishing usage quota labels
lockwo Sep 22, 2026
474890b
fix(catalog): routed copilot grok 4.x through the responses api
roboomp Sep 22, 2026
a51ea55
fix(tui): make startup changelog scrollable after welcome animation
michaelr Sep 22, 2026
f8b00a2
docs(tui): attribute startup scroll fix to PR #12906
michaelr Sep 22, 2026
78962a6
fix(tui): align and bound usage quota labels
lockwo Sep 22, 2026
77b8533
test(browser): cover shallow Puppeteer callsites
Dante-dan Sep 22, 2026
402fc16
docs: changelog entry for before_subagent_spawn (#12907)
aloyzzz Sep 22, 2026
af1fd77
Merge branch 'main' into feat/before-subagent-spawn
aloyzzz Sep 22, 2026
25c18c6
fix(coding-agent): address fallback explanation review
lockwo Sep 22, 2026
c7dffa2
fix(coding-agent): fire before_subagent_spawn once per child, propaga…
aloyzzz Sep 22, 2026
59168e3
Merge remote-tracking branch 'upstream/main' into fix/codex-0155-mode…
itsddvn Sep 23, 2026
0c5ee94
test(catalog): cover Codex GPT-6 discovery pricing
itsddvn Sep 23, 2026
4d0952e
chore: drop superseded 8000 Codex version note
itsddvn Sep 23, 2026
df94d3e
fix(todo): refresh tracker after nested eval updates
tommymorgan Sep 23, 2026
beb814b
fix(coding-agent): report tokens freed by /shake thinking
Gablinas Sep 23, 2026
5d43f39
feat(coding-agent): implemented skillshare registry for skill distrib…
can1357 Sep 23, 2026
ef6d8b2
feat(coding-agent): added judged time-traveling stream rules
can1357 Sep 23, 2026
c48b5b0
feat(catalog): added StepFun provider with live model discovery
ArpitMishra17 Sep 23, 2026
0cc1abe
docs(changelog): add unreleased entry for the StepFun provider
ArpitMishra17 Sep 23, 2026
2a25cef
fix(catalog): honor StepFun discovery contracts in the model manager
ArpitMishra17 Sep 23, 2026
bbadeb5
docs(changelog): add coding-agent unreleased entry for the StepFun pr…
ArpitMishra17 Sep 23, 2026
5c53a81
chore(catalog): refresh generated catalog after rebase onto main
ArpitMishra17 Sep 23, 2026
4dbeff2
feat(coding-agent): configure extended context for custom models
LingLambda Sep 23, 2026
052b61c
feat(tui): enable OSC 8 hyperlinks on rio
abcfy2 Sep 23, 2026
892f1b1
fix(coding-agent): preserve trusted extended-context ceilings
LingLambda Sep 23, 2026
d4b36e4
fix(todo): keep nested Eval panel current without persisting snapshots
tommymorgan Sep 23, 2026
9c6c9c4
fix(todo): preserve completed checklist dismissal after nested views
tommymorgan Sep 23, 2026
63c7c8b
Merge PR #12874: fix(agent): stopped background completions from casc…
can1357 Sep 23, 2026
c5b83e9
Merge PR #12897: docs: documented OTLP exporter request header env va…
can1357 Sep 23, 2026
0a54b15
Merge PR #12906: fix(tui): make startup changelog scrollable after we…
can1357 Sep 23, 2026
ec98fc7
Merge PR #12903: fix(tui): preserve distinguishing usage quota labels…
can1357 Sep 23, 2026
03332b3
Merge PR #12896: fix(coding-agent/tools): keep native JSON Schema roo…
can1357 Sep 23, 2026
053e40b
Merge PR #12902: fix(browser): tolerate missing Puppeteer callsites (…
can1357 Sep 23, 2026
cfb054d
Merge PR #12891: fix(natives): drop the stale minimizer filter genera…
can1357 Sep 23, 2026
0efa92e
Merge PR #12887: perf(coding-agent): avoid repeated whole-buffer TTSR…
can1357 Sep 23, 2026
ace4fcc
Merge PR #12877: fix(usage): show Alibaba Token Plan monthly quotas (…
can1357 Sep 23, 2026
1b44054
Merge PR #12885: fix(codex): update client version for GPT-6 models (…
can1357 Sep 23, 2026
3c30586
docs(catalog): corrected Codex pricing release note
can1357 Sep 23, 2026
84cedae
Merge PR #12905: fix(catalog): route Copilot Grok 4.x through the Res…
can1357 Sep 23, 2026
7f1ccc3
Merge PR #12916: fix(coding-agent): report tokens freed by /shake thi…
can1357 Sep 23, 2026
457060f
fix(coding-agent): aligned shake savings with context accounting
can1357 Sep 23, 2026
0bc4272
Merge PR #12898: fix(browser): drive tab.fill and frame actions off p…
can1357 Sep 23, 2026
737fc47
fix(browser): corrected frame clicks and editable fills
can1357 Sep 23, 2026
6e53f37
Merge PR #12890: fix(lsp): deferred provisional cold diagnostics (@ro…
can1357 Sep 23, 2026
e8ea01b
test(lsp): verified cold-server regression
can1357 Sep 23, 2026
ffd051b
style(coding-agent): formatted shake savings test
can1357 Sep 23, 2026
628c6f9
Merge PR #12921: fix(todo): refresh tracker after nested eval updates…
can1357 Sep 23, 2026
fc29d14
docs(changelog): credited nested eval todo tracker fix
can1357 Sep 23, 2026
ad80dc6
docs(changelog): recorded merged fixes under unreleased
can1357 Sep 23, 2026
4b2f292
Merge PR #12922: feat(tui): enable OSC 8 hyperlinks on rio (@abcfy2)
can1357 Sep 23, 2026
970a15e
Merge PR #12923: feat(coding-agent): configure extended context for c…
can1357 Sep 23, 2026
82720f2
Merge PR #12907: feat(coding-agent): expose before_subagent_spawn hoo…
can1357 Sep 23, 2026
9f921ba
Merge PR #12904: fix(coding-agent): explain model fallback causes (@l…
can1357 Sep 23, 2026
b408e84
Merge PR #12918: feat(catalog): added StepFun provider with live mode…
can1357 Sep 23, 2026
6f22338
Merge PR #12900: Add Pi-compatible RPC primitives get_entries(since),…
can1357 Sep 23, 2026
9e99f24
docs(catalog): described stepfun discovery as authoritative
can1357 Sep 23, 2026
adfbcca
docs(rpc): removed stale issue reference from command discovery notes
can1357 Sep 23, 2026
7b3e9f3
docs(changelog): merged duplicate unreleased headings
can1357 Sep 23, 2026
8761110
docs(changelog): recorded merged features under unreleased
can1357 Sep 23, 2026
d58593a
chore: rewrite changelogs + remove useless test
can1357 Sep 23, 2026
e415159
chore: bump version to 18.2.11
can1357 Sep 23, 2026
07f23b6
feat(auth): add per-account routing policies
schickling-assistant Sep 16, 2026
47f623a
docs(changelog): add account routing policy
schickling-assistant Sep 16, 2026
f503355
fix(auth): honor effective account policy settings
schickling-assistant Sep 16, 2026
8abf3a5
fix(auth): require measured reserve before pin eviction
schickling-assistant Sep 16, 2026
259c036
fix(auth): apply overlays across routing diagnostics
schickling-assistant Sep 16, 2026
aa0a919
fix(auth): resolved account policies from effective settings centrally
can1357 Sep 23, 2026
49280e9
fix(mcp): waited for configured servers before headless print turns
can1357 Sep 23, 2026
4b4405a
fix(auth-broker): treated an empty config.yml as no configuration
can1357 Sep 23, 2026
48d7cff
fix(auth): kept resumed session pins automatic so stale resumes re-rank
can1357 Sep 23, 2026
c397de9
Merge PR #12243: feat(auth): add per-account routing policies (@schic…
can1357 Sep 23, 2026
8aec057
feat(coding-agent): enabled native-only fallback and usage reporting …
can1357 Sep 23, 2026
9013268
feat: refactored auth storage into namespaced modules and implement a…
can1357 Sep 23, 2026
7ae76f8
feat(coding-agent): added terminal login command for model providers
can1357 Sep 23, 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
  •  
  •  
  •  
20 changes: 10 additions & 10 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ members = [
resolver = "3"

[workspace.package]
version = "18.2.10"
version = "18.2.11"
edition = "2024"
license = "MIT"
authors = ["Stencil Labs, Inc."]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ Auth tags below: `oauth` signs in with your provider account, `plan` routes thro

Direct APIs and gateways. Mix providers per role.

Anthropic `oauth` · OpenAI · OpenAI Codex `oauth` · Google Gemini · Google Vertex · Google Antigravity `oauth` · xAI · SuperGrok `oauth` · DeepSeek · Mistral · Groq · Cerebras · Fireworks · Together · Baseten · DeepInfra · Hugging Face · NVIDIA · Meta · Amazon Bedrock · Azure OpenAI · SiliconFlow · GMI Cloud · CoreWeave · Sakana AI · Command Code · Charm Hyper · OpenRouter · Synthetic · Vercel AI Gateway · Cloudflare AI Gateway · Wafer Serverless
Anthropic `oauth` · OpenAI · OpenAI Codex `oauth` · Google Gemini · Google Vertex · Google Antigravity `oauth` · xAI · SuperGrok `oauth` · DeepSeek · Mistral · Groq · Cerebras · Fireworks · Together · Baseten · DeepInfra · Hugging Face · NVIDIA · Meta · Amazon Bedrock · Azure OpenAI · SiliconFlow · GMI Cloud · CoreWeave · Sakana AI · Command Code · Charm Hyper · StepFun · OpenRouter · Synthetic · Vercel AI Gateway · Cloudflare AI Gateway · Wafer Serverless

### Coding plans

Expand Down
48 changes: 24 additions & 24 deletions bun.lock

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

63 changes: 1 addition & 62 deletions crates/pi-natives/build.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
use std::{
env,
ffi::OsString,
fmt::Write as _,
fs,
path::{Path, PathBuf},
process::Command,
};
use std::{env, ffi::OsString, path::PathBuf, process::Command};

fn main() {
napi_build::setup();
build_oauth_callback_helper();
generate_minimizer_builtin_filters();
}

fn build_oauth_callback_helper() {
Expand Down Expand Up @@ -149,56 +141,3 @@ fn target_linker(target: &str) -> Option<OsString> {
let target_key = target.replace(['-', '.'], "_").to_ascii_uppercase();
env::var_os(format!("CARGO_TARGET_{target_key}_LINKER")).or_else(|| env::var_os("RUSTC_LINKER"))
}

fn generate_minimizer_builtin_filters() {
let manifest_dir = env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR should be set");
let defs_dir = Path::new(&manifest_dir)
.join("src")
.join("shell")
.join("minimizer")
.join("defs");
let out_dir = PathBuf::from(env::var("OUT_DIR").expect("OUT_DIR should be set"));
let output_path = out_dir.join("builtin_filters.toml");

println!("cargo:rerun-if-changed={}", defs_dir.display());

let mut concatenated =
String::from("# Auto-generated by build.rs -- do not edit.\nschema_version = 1\n\n");

let mut entries: Vec<PathBuf> = Vec::new();
if let Ok(read_dir) = fs::read_dir(&defs_dir) {
for entry in read_dir.flatten() {
let path = entry.path();
if path.extension().and_then(|e| e.to_str()) == Some("toml") {
entries.push(path);
}
}
}
entries.sort();

for path in entries {
println!("cargo:rerun-if-changed={}", path.display());
match fs::read_to_string(&path) {
Ok(body) => {
let filename = path
.file_name()
.and_then(|n| n.to_str())
.unwrap_or("unknown");
writeln!(concatenated, "# --- {filename} ---").expect("write to String");
for line in body.lines() {
let trimmed = line.trim_start();
if trimmed.starts_with("schema_version") {
continue;
}
concatenated.push_str(line);
concatenated.push('\n');
}
concatenated.push('\n');
},
Err(e) => panic!("failed to read filter definition {}: {e}", path.display()),
}
}

fs::write(&output_path, concatenated)
.unwrap_or_else(|e| panic!("failed to write {}: {e}", output_path.display()));
}
2 changes: 1 addition & 1 deletion crates/pi-natives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ fn create_windows_napi_tokio_runtime() -> Option<tokio::runtime::Runtime> {
/// MUST stay in sync with `VERSION_SENTINEL_EXPORT` in
/// `packages/natives/native/index.js` (which derives the name from
/// `package.json#version`).
#[napi(js_name = "__piNativesV18_2_10")]
#[napi(js_name = "__piNativesV18_2_11")]
pub const fn pi_natives_version_sentinel() {}

/// Native module entry point: install crash diagnostics before any tool can
Expand Down
6 changes: 3 additions & 3 deletions docs/adding-a-provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A provider is described in two halves:
- **Auth half** (`packages/ai`): one declarative `ProviderDefinition` in the
registry carrying env-key fallbacks and login/refresh flows. The
`OAuthProvider` union, the env-key map, the `/login` provider list, the
`refreshOAuthToken` / `AuthStorage.login` dispatch, and the coding-agent
`refreshOAuthToken` / `AuthStorage.oauth.login` dispatch, and the coding-agent
callback maps are derived from the registry.

**Scope.** This is for a provider that reuses an existing wire API
Expand Down Expand Up @@ -84,7 +84,7 @@ from the catalog table and `OAuthProvider` from the registry.
| `prepareRequest` | Provider-owned request shaping before generic API dispatch. Returns the model and stream options to dispatch. |
| `mapSimpleOptions` | Projects the generic simple-stream option bag into provider-owned options. |
| `prepareModelDiscovery` | Provider-owned authentication or endpoint setup for runtime model discovery. |
| `login` | Interactive login. Present ⇒ member of `OAuthProvider`, dispatchable via `AuthStorage.login`, and shown in `/login` unless `showInLoginList` is false. Returns an API-key `string` or `OAuthCredentials`. |
| `login` | Interactive login. Present ⇒ member of `OAuthProvider`, dispatchable via `AuthStorage.oauth.login`, and shown in `/login` unless `showInLoginList` is false. Returns an API-key `string` or `OAuthCredentials`. |
| `refreshToken` | OAuth refresher; omit for static-token providers (the dispatch returns credentials unchanged). |
| `getApiKey` | Converts stored OAuth credentials into the API-key/token string used by the transport. |
| `storeCredentialsAs` | Store credentials under a different provider id (e.g. `openai-codex-device` ⇒ `openai-codex`). |
Expand Down Expand Up @@ -112,5 +112,5 @@ from the catalog table and `OAuthProvider` from the registry.
exported `createSimpleOpenAICompletionsOptions(providerId, baseUrl, config)` —
no edits to `openai-compat.ts` required.
- A `ProviderDefinition` may also be registered at runtime by an extension via
`registerOAuthProvider` (the `AuthStorage.login` dispatcher handles built-ins
`registerOAuthProvider` (the `AuthStorage.oauth.login` dispatcher handles built-ins
and extensions through the same path).
10 changes: 5 additions & 5 deletions docs/auth-broker-gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Source: `packages/ai/src/auth-broker/`, `packages/ai/src/auth-gateway/`, `packag
api.anthropic.com / api.openai.com / …
```

The broker is the only writer of OAuth refresh tokens. Clients (including the gateway itself) load a redacted snapshot in which every `refresh` field has been replaced with `REMOTE_REFRESH_SENTINEL`; when an access token expires the client calls `POST /v1/credential/:id/refresh` and the broker performs the refresh server-side. `RemoteAuthCredentialStore` rejects local replace/upsert/delete-by-provider mutations, with errors pointing at `omp auth-broker login` / `omp auth-broker logout`.
The broker is the only writer of OAuth refresh tokens. Clients (including the gateway itself) load a redacted snapshot in which every `refresh` field has been replaced with `REMOTE_REFRESH_SENTINEL`; when an access token expires the client calls `POST /v1/credential/:id/refresh` and the broker performs the refresh server-side. Credential writes through `RemoteAuthCredentialStore` await broker persistence and update its local snapshot before returning; the broker remains the authoritative writer.

## auth-broker

Expand All @@ -58,7 +58,7 @@ omp auth-broker status [--json]

- `serve` opens the local SQLite store at `getAgentDbPath()` and binds an HTTP listener (default `127.0.0.1:8765`). On startup a token is ensured at `<config-dir>/auth-broker.token` (mode `0600`, `0700` parent dir). The background refresher refreshes any OAuth credential whose `expires - Date.now() < refreshSkewMs` (default 5 min) every `refreshIntervalMs` (default 60 s).
- `token` prints the cached bearer or generates a new one. `--regenerate` rotates it.
- `login [<provider>]` runs the per-provider OAuth flow locally — when no provider is supplied, it falls back to an interactive numbered picker. With `--via=user@host` it shells out `ssh -L <callback-port>:127.0.0.1:<callback-port> user@host omp auth-broker login <provider>` so the OAuth callback hits the local browser but the credential is written on the broker host (`--via` requires `<provider>`). Built-in callback ports: `anthropic:54545`, `openai-codex:1455`, `google-gemini-cli:8085`, `google-antigravity:51121`, `gitlab-duo:8080`, `devin:59653`, `gitlab-duo-agent:8080`, `zai-coding-plan:9999`. The OAuth dance is driven in-process via `AuthStorage.login()` — there is no longer a `pi-ai` bin to spawn.
- `login [<provider>]` runs the per-provider OAuth flow locally — when no provider is supplied, it falls back to an interactive numbered picker. With `--via=user@host` it shells out `ssh -L <callback-port>:127.0.0.1:<callback-port> user@host omp auth-broker login <provider>` so the OAuth callback hits the local browser but the credential is written on the broker host (`--via` requires `<provider>`). Built-in callback ports: `anthropic:54545`, `openai-codex:1455`, `google-gemini-cli:8085`, `google-antigravity:51121`, `gitlab-duo:8080`, `devin:59653`, `gitlab-duo-agent:8080`, `zai-coding-plan:9999`. The OAuth dance is driven in-process via `AuthStorage.oauth.login()` — there is no longer a `pi-ai` bin to spawn.
- `logout [<provider>]` deletes every credential row for `<provider>`. With no argument it shows an interactive numbered picker of currently-stored providers.
- `list` enumerates every registered OAuth provider id/name (the union of built-ins + `registerOAuthProvider` custom providers). `--json` emits a machine-readable array.
- `import <file|dir>` imports CLIProxyAPI-style JSON credentials into the local SQLite store. Maps `type` field → omp provider (`claude → anthropic`, `codex → openai-codex`, `gemini → google-gemini-cli`, `antigravity → google-antigravity`, `gemini-cli → google-gemini-cli`).
Expand Down Expand Up @@ -121,7 +121,7 @@ Capability-dependent responses include `Vary: OMP-Auth-Broker-Capabilities` so i

`AuthBrokerRefresher` iterates active OAuth credentials at `refreshIntervalMs` cadence and refreshes any within `refreshSkewMs` of expiry. Refreshes are single-flighted per credential id so a slow refresh cannot be retriggered. The refresher distinguishes:

- **definitive failures** (`invalid_grant`, `invalid_token`, `revoked`, unauthorized refresh-token, 401/403 not from a network blip) — credentials are passed to `AuthStorage.disableCredentialById(id, cause)` so the next snapshot pull surfaces a clean delete on the client;
- **definitive failures** (`invalid_grant`, `invalid_token`, `revoked`, unauthorized refresh-token, 401/403 not from a network blip) — credentials are passed to `AuthStorage.credentials.disable(id, cause)` so the next snapshot pull surfaces a clean delete on the client;
- **transient failures** (timeout / ECONNREFUSED / fetch failed) — left in place for the next sweep.

## auth-gateway
Expand Down Expand Up @@ -192,7 +192,7 @@ When the gateway (or any other broker client) calls `fetchUsageReports()` / `get

- `USAGE_CACHE_TTL_MS = 15_000` (`packages/ai/src/auth-broker/remote-store.ts`).
- A single `#usageInflight` promise is shared across all callers; a per-caller `AbortSignal` is **raced** against the shared promise, not threaded into it, so one caller’s abort never cascades into a peer’s in-flight request.
- On fetch failure the rejected promise is logged and the awaited value is `null` — callers (`AuthStorage.fetchUsageReports`, `#getUsageReport`) treat a `null` report as "no usage signal for this cycle" and proceed without it. **This is the 15 s TTL fallback**: the client absorbs transient broker outages by suppressing the error, returning `null` to ranking, and re-attempting after the 15 s window.
- On fetch failure the rejected promise is logged and the awaited value is `null` — callers (`AuthStorage.usage.reports`, `#getUsageReport`) treat a `null` report as "no usage signal for this cycle" and proceed without it. **This is the 15 s TTL fallback**: the client absorbs transient broker outages by suppressing the error, returning `null` to ranking, and re-attempting after the 15 s window.

The 15 s client window deliberately sits below the broker’s 5 min server cache, so almost every client poll is served from the broker’s already-cached value; the client cache exists to absorb the parallel fan-out generated by `AuthStorage.#rankOAuthSelections` into a single broker round-trip.

Expand Down Expand Up @@ -270,7 +270,7 @@ The gateway has no dedicated env vars — it inherits `OMP_AUTH_BROKER_*` becaus

The broker only owns OAuth credentials and provider-API-key credentials that were uploaded to it. The standard credential ladder in `models.md` (`Auth and API key resolution order`) is preserved, with one addition committed alongside the gateway:

- `AuthStorage.setConfigApiKey / removeConfigApiKey / clearConfigApiKeys` let a `models.yml` `apiKey` beat a stored OAuth token **without** overriding an explicit `--api-key`. This is what allows a broker-resolved OAuth credential to be reliably shadowed by a per-environment `models.yml` config key when both are present.
- `AuthStorage.keys.setConfig / removeConfigApiKey / clearConfigApiKeys` let a `models.yml` `apiKey` beat a stored OAuth token **without** overriding an explicit `--api-key`. This is what allows a broker-resolved OAuth credential to be reliably shadowed by a per-environment `models.yml` config key when both are present.

## See also

Expand Down
Loading
Loading
0