#9046: feat: Add AWS Bedrock OpenAI-compatible API provider
commands
agents
stale
Cluster:
AI Provider Enhancements
AWS Bedrock recently launched a new endpoint that supports OpenAI-compatible Chat Completions and Responses API. This commit adds support for this new endpoint as a model provider option during onboarding.
## Key changes
- Add 'AWS Bedrock (Long Term API Key)' as a new auth choice in onboarding
- Position it prominently after Anthropic in the provider list
- Use OpenAI Chat Completions API implementation (openai-completions)
- Support dynamic model discovery via /v1/models endpoint with 1-hour cache
- Cache keyed by API key to support multiple keys in same process
- Environment variable: AWS_BEDROCK_LONG_TERM_API_KEY
- Endpoint: https://bedrock-mantle.us-east-1.api.aws/v1
The existing Bedrock provider (using Converse/InvokeModel API with AWS SDK credentials) remains available for customers who depend on it. The new OpenAI-compatible endpoint is recommended for new customers as it provides a simpler authentication model using Long Term API Keys.
## Files modified
- src/commands/onboard-types.ts: Add bedrock-api-key AuthChoice
- src/commands/auth-choice-options.ts: Add provider group and option
- src/commands/auth-choice.apply.api-providers.ts: Add auth handler
- src/commands/auth-choice.preferred-provider.ts: Add provider mapping
- src/commands/onboard-auth.ts: Export new functions
- src/commands/onboard-auth.credentials.ts: Add credential storage
- src/commands/onboard-auth.config-core.ts: Add config functions
- src/agents/models-config.providers.ts: Add provider builder and discovery
- src/agents/model-auth.ts: Add env var mapping
Most Similar PRs
#19841: feat: add Amazon Bedrock as first-class onboarding provider
by elbeyf · 2026-02-18
74.4%
#13079: feat: Add OpenAI-compatible API option to CLI for self-hosted models
by MikeWang0316tw · 2026-02-10
64.1%
#20191: feat(memory): add Amazon Bedrock embedding provider (Nova 2)
by gabrielkoo · 2026-02-18
63.4%
#7418: feat (amazon-nova): add Amazon Nova 1P provider
by 5herlocked · 2026-02-02
62.7%
#23015: Onboard: store OpenAI auth in profiles instead of .env
by joshavant · 2026-02-21
62.6%
#20476: Providers: add DigitalOcean Gradient AI inference endpoint
by adugan-do · 2026-02-19
61.9%
#3591: CLI: add OpenAI-compatible endpoint auth choice
by surak · 2026-01-28
61.5%
#15742: feat: add Edgee AI Gateway as provider
by manthis · 2026-02-13
61.3%
#10857: Add model provider StepFun
by hengm3467 · 2026-02-07
60.8%
#14475: feat: Add native Azure OpenAI support
by dzianisv · 2026-02-12
60.3%