Skip to content

docs(byok): document apiKeyHelper and keyless custom models - #12

Closed
nikhil-factory wants to merge 1 commit into
mainfrom
docs/byok-apikeyhelper-keyless-custom-models
Closed

docs(byok): document apiKeyHelper and keyless custom models#12
nikhil-factory wants to merge 1 commit into
mainfrom
docs/byok-apikeyhelper-keyless-custom-models

Conversation

@nikhil-factory

Copy link
Copy Markdown
Contributor

What

Documents recent custom-model auth changes from factory-mono in cli/byok/overview.mdx:

  • apiKey is now optional for HTTP custom models — you can run a keyless endpoint or use apiKeyHelper. baseUrl is still required for non-Bedrock models. (factory-mono #17819)
  • New apiKeyHelper + apiKeyHelperTtlMs fields — a shell command whose stdout is used as the credential, resolved at request time, refreshed on a TTL and after a 401. (factory-mono #17051, #17527)
  • Managed-settings restriction — net-new custom models added via org-managed settings can't use a static apiKey; use apiKeyHelper, a keyless endpoint, or Bedrock. Existing keyed models keep working and can rotate keys. (factory-mono #17655)

Changes

  • Mark apiKey optional in the Supported Fields table; clarify baseUrl requirement
  • Add apiKeyHelper and apiKeyHelperTtlMs rows
  • New "Dynamic credentials with apiKeyHelper" section: TTL resolution order (FACTORY_API_KEY_HELPER_TTL_MS -> per-model -> 5-min default), 401 refresh, trusted-source (org-managed only) restriction, no-logging guarantee, Claude Code parity
  • Add an apiKeyHelper troubleshooting bullet

Verification

Field names, optionality, TTL precedence, trust boundary, and the managed-settings block were checked against current source: packages/droid-sdk-core/src/protocol/settings/schema.ts, packages/common/src/settings/types.ts, and packages/droid-core/src/llms/client/apiKeyHelper.ts.

Notes

  • Customer OTEL doc updates (cache-token metrics, attribute enrichment) are intentionally not in this PR — that pipeline was refactored after the original PRs, so it needs a separate accuracy pass.
  • JP translations not included (handled by the separate translation workflow).

Custom-model auth changed in factory-mono: apiKey is now optional for
HTTP models (keyless), a new apiKeyHelper command mints short-lived
tokens at request time, and org-managed settings block net-new
static-apiKey models.

- Mark apiKey optional; note baseUrl still required for non-Bedrock
- Add apiKeyHelper + apiKeyHelperTtlMs to the Supported Fields table
- Add a "Dynamic credentials with apiKeyHelper" section (TTL resolution,
  401 refresh, trusted-source restriction, no-logging, Claude Code parity)
- Note the managed-settings static-key restriction
- Add an apiKeyHelper troubleshooting bullet

Refs: factory-mono #17051, #17527, #17819, #17655

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@factory-droid

factory-droid Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Droid encountered an error —— View job


Security Review

@nikhil-factory

Copy link
Copy Markdown
Contributor Author

Superseded by Factory-AI/factory-public-web#464 — docs moved to factory-public-web/content/docs. Closing this one.

@nikhil-factory
nikhil-factory deleted the docs/byok-apikeyhelper-keyless-custom-models branch August 11, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant