Skip to content

Support bearerToken for BYO-K #4300

Description

@yan-li

Describe the feature or problem you'd like to solve

In corp context, key based auth is disabled per compliance requirements. BearedToken based auth or customized broker would be helpful to automate the CLI runs.

Proposed solution

Similar as what have been offered in GitHub Copilot SDK.
https://docs.github.com/en/copilot/how-tos/copilot-sdk/auth/byok#providerconfig-fields

field type description
bearerToken / bearer_token string Bearer token auth (takes precedence over apiKey)
bearerTokenProvider / bearer_token_provider callback Returns a bearer token on demand (takes precedence over apiKey and bearerToken)

Example prompts or workflows

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:authenticationLogin, OAuth, device auth, token management, and keychain integrationarea:modelsModel selection, availability, switching, rate limits, and model-specific behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions