docs: own-key OpenAI-compatible endpoints + Jun 24 changelog#108
Conversation
Document the custom-endpoint surface that shipped with the dashboard-polish milestone, and correct two now-stale provider error rows. - changelog.mdx: Jun 24 entry — the terminal-native dashboard (Billing, Models, Credentials), the OpenAI-compatible custom endpoint, and the unified install flow. - fleets/credentials.mdx: new "Model-provider credentials (own-key model setup)" section — the typed `credential add` flags (`--provider openai-compatible`, `--base-url`, `--model`, optional `--api-key`), https + public-host validation, and activation via `tenant provider add`; distinguished from raw-JSON tool secrets. - cli/agentsfleet.mdx: the openai-compatible `credential add` form, plus a `tenant provider show/add/delete` section (was in the command table, undocumented). - api-reference/error-codes.mdx: add `UZ-PROVIDER-005`; correct `UZ-PROVIDER-003` (`api_key` is now optional for openai-compatible) and `UZ-PROVIDER-004` (openai-compatible bypasses the model-caps catalogue). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
…tation Addresses greptile review on PR #108. - P1 (duplicate anchor): the own-key endpoints change added a second `## Tenant provider` section, colliding with the existing one on the `#tenant-provider` Mintlify anchor (cross-page deep links would land on whichever the renderer picked first). Removed the example-less stub and folded its OpenAI-compatible substance — catalogue bypass, UZ-PROVIDER-* error reference, and the model-provider-credentials cross-link — into the existing full-detail section, which keeps the working examples. - P2 (copy-paste safety): replaced literal `[--api-key sk-...]` bracket notation in the credential-add bash block with the `# optional` comment idiom already used in fleets/credentials.mdx; a shell would interpret the brackets as a glob/test. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ider Follow-up to greptile on PR #108. The consolidated Tenant provider section still listed OpenRouter among named providers, but this PR's fleets/credentials.mdx and the changelog both reach OpenRouter via the OpenAI-compatible custom-endpoint path. Moved OpenRouter from the named-provider list into the OpenAI-compatible examples so all three files agree. The other half of the same comment — the unconditional "resolves the model's context cap from cap.json" claim — was already addressed in e9dec5a, where the body now splits the named-provider path (resolves cap from cap.json) from the OpenAI-compatible path (bypasses the catalogue). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Addressed the "Existing Tenant provider section is now stale" review — across two commits. 1.
2. OpenRouter was listed as a named provider → fixed in - a named provider (Anthropic, OpenAI, Fireworks, Together, Groq, Moonshot, OpenRouter) or [any OpenAI-compatible endpoint] (a self-hosted vLLM server or gateway)
+ a named provider (Anthropic, OpenAI, Fireworks, Together, Groq, Moonshot) or [any OpenAI-compatible endpoint] (a self-hosted vLLM server, a gateway, OpenRouter)All three files now classify OpenRouter consistently as an OpenAI-compatible endpoint. |
Documents the custom OpenAI-compatible endpoint surface from the dashboard-polish milestone (PR #444 in the product repo), and the Jun 24 changelog entry.
tenant provider addactivation.credential addform + thetenant providersubcommands (previously undocumented).UZ-PROVIDER-005; correctedUZ-PROVIDER-003(api_key optional for openai-compatible) andUZ-PROVIDER-004(openai-compatible bypasses the catalogue).🤖 Generated with Claude Code
Greptile Summary
This PR documents the custom OpenAI-compatible endpoint surface introduced in the dashboard-polish milestone, covering new CLI typed flags for model-provider credentials, updated error code descriptions, and the Jun 24 changelog entry.
api-reference/error-codes.mdx— correctsUZ-PROVIDER-003andUZ-PROVIDER-004to reflect the openai-compatible path, and addsUZ-PROVIDER-005for invalid/unsafebase_urlvalues.fleets/credentials.mdx— adds a new "Model-provider credentials" section explaining the typed-flags credential form and base-URL validation; exit codes 4 and 5 in the adjacent section were not updated to cover the new path.cli/agentsfleet.mdx— adds the openai-compatiblecredential addexample and updatestenant provider addto reflect catalogue-bypass behaviour for custom endpoints; previously flagged duplicate-section and square-bracket issues are resolved.Confidence Score: 5/5
Documentation-only change with accurate cross-file consistency; safe to merge.
All four files are documentation updates with no executable code. The error-code corrections, CLI examples, and credential-section additions are internally consistent and cross-reference each other correctly. The one gap — exit codes 4 and 5 not covering the new typed-flags path — is a minor documentation omission that doesn't block readers from using the feature.
fleets/credentials.mdx — the exit-code list predates the typed-flags path and should be updated.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[agentsfleet credential add] --> B{--data or typed flags?} B -->|--data JSON| C[Tool secret\nraw-JSON vault entry] B -->|--provider --base-url --model| D[Model-provider credential\nopenai-compatible] D --> E{Parse-time validation} E -->|non-https base_url| F[Exit 5 — rejected, no network call] E -->|valid| G[Stored in vault] C --> G G --> H[agentsfleet tenant provider add\n--credential name] H --> I{Server-side validation} I -->|named provider| J[Resolve context cap\nfrom cap.json endpoint] I -->|openai-compatible| K[Validate base_url: https +\npublic host, no loopback/\nprivate/cloud-metadata] K -->|unsafe| L[UZ-PROVIDER-005 rejected] K -->|valid| M[Pinned — bypasses\ncaps catalogue] J --> N[Model must be in\ncore.model_caps] N -->|absent| O[UZ-PROVIDER-004] N -->|present| M M --> P[Self-managed runs:\nper-second fee only,\nbills your provider]%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% flowchart TD A[agentsfleet credential add] --> B{--data or typed flags?} B -->|--data JSON| C[Tool secret\nraw-JSON vault entry] B -->|--provider --base-url --model| D[Model-provider credential\nopenai-compatible] D --> E{Parse-time validation} E -->|non-https base_url| F[Exit 5 — rejected, no network call] E -->|valid| G[Stored in vault] C --> G G --> H[agentsfleet tenant provider add\n--credential name] H --> I{Server-side validation} I -->|named provider| J[Resolve context cap\nfrom cap.json endpoint] I -->|openai-compatible| K[Validate base_url: https +\npublic host, no loopback/\nprivate/cloud-metadata] K -->|unsafe| L[UZ-PROVIDER-005 rejected] K -->|valid| M[Pinned — bypasses\ncaps catalogue] J --> N[Model must be in\ncore.model_caps] N -->|absent| O[UZ-PROVIDER-004] N -->|present| M M --> P[Self-managed runs:\nper-second fee only,\nbills your provider]Comments Outside Diff (1)
cli/agentsfleet.mdx, line 476-513 (link)The existing detailed section says
tenant provider add"resolves the model's context cap from thecap.jsonendpoint" unconditionally, but the newopenai-compatiblepath explicitly bypasses the catalogue and has no context cap to resolve fromcap.json. It also lists "OpenRouter" as a named provider — OpenRouter can now be used via the new custom-endpoint path instead. This section should be updated (or merged with the new stub above) to reflect both paths.Prompt To Fix With AI
Reviews (3): Last reviewed commit: "docs(cli): classify OpenRouter as OpenAI..." | Re-trigger Greptile