Compare commits

...

2 Commits

Author SHA1 Message Date
diegosouzapw
8e1439fa6e docs(cli): changelog fragment for #20544 2026-11-18 18:11:16 -03:00
diegosouzapw
a68158a197 docs(cli): document OMNIROUTE_ALLOW_INSECURE_REMOTE for fcc-claude
omniroute fcc-claude refuses to send the API key to a non-loopback plain
http:// base URL since 3.8.54; OMNIROUTE_ALLOW_INSECURE_REMOTE=1 is the
operator opt-in for a trusted LAN server. Document it in the CLI helpers
table of ENVIRONMENT.md and in .env.example, including that a working-
directory .env cannot set it (bin/cli/utils/untrustedCwdEnv.mjs).

Closes #20440
2026-11-18 18:08:08 -03:00
3 changed files with 9 additions and 0 deletions

View File

@@ -419,6 +419,13 @@ OMNIROUTE_USE_TURBOPACK=1
# Default: unset. Used by: bin/omniroute.mjs
# OMNIROUTE_CLI_SKIP_DEFAULT_DATA_ENV=1
# Set to 1 (or true) to let `omniroute fcc-claude` send the API key to a non-loopback
# plain http:// base URL, e.g. a LAN server at http://192.168.x.y:20128. Unset, the
# command refuses because the key would travel in plaintext. Loopback HTTP and HTTPS
# never need it. Set it in the shell or the data-dir .env: a .env in the working
# directory cannot set it. Used by: bin/cli/commands/fcc-claude.mjs
# OMNIROUTE_ALLOW_INSECURE_REMOTE=1
# Set to 1 to print per-request timing diagnostics from the CLI quota commands
# to stderr (`[omniroute] GET <path> completed in Nms`).
# Used by: bin/cli/commands/quota.mjs

View File

@@ -0,0 +1 @@
- **docs(cli):** document `OMNIROUTE_ALLOW_INSECURE_REMOTE`, the opt-in that lets `omniroute fcc-claude` send the API key to a trusted plain-HTTP LAN server ([#20544](https://github.com/cheaper-inference/OmniRoute/pull/20544))

View File

@@ -599,6 +599,7 @@ detection above).
| `OMNIROUTE_DOCTOR_LIVENESS_URL` | _(derived)_ | `bin/cli/commands/doctor.mjs` | Liveness URL probed by `omniroute doctor`. A programmatic `livenessUrl` option takes precedence; otherwise this value is used verbatim. Unset, the CLI derives the local dashboard's `/api/health/degradation` endpoint. |
| `OMNIROUTE_PROVIDER_CATALOG_PATH` | `src/shared/constants/providers/` | `bin/cli/provider-catalog.mjs` | Provider catalog path used by CLI provider commands. A programmatic `catalogPath` option takes precedence. Absolute paths are used as-is; relative paths resolve from the project root. Unset, the CLI uses the provider constants directory, with the legacy `providers.ts` file as fallback. |
| `OMNIROUTE_PROVIDER_TEST_MODEL` | _(provider default)_ | `bin/cli/provider-test.mjs` | Global fallback model for CLI provider connection tests. Precedence is configured connection model, provider-specific model override, this value, then the provider's built-in test model. |
| `OMNIROUTE_ALLOW_INSECURE_REMOTE` | _(unset)_ | `bin/cli/commands/fcc-claude.mjs` | Set to `1` or `true` to let `omniroute fcc-claude` send the API key to a non-loopback plain `http://` base URL (for example a LAN server at `http://192.168.x.y:20128`). Unset, the command refuses: the key would travel in plaintext (CWE-319). Loopback HTTP, HTTPS and requests without a key never need it. Must come from the shell or the data-dir `.env`; a `.env` in the working directory cannot set it. |
---