Skip to content

docs: add Amazon Bedrock custom endpoints guide#706

Open
suryaiyer95 wants to merge 3 commits intomainfrom
docs/bedrock-custom-endpoints
Open

docs: add Amazon Bedrock custom endpoints guide#706
suryaiyer95 wants to merge 3 commits intomainfrom
docs/bedrock-custom-endpoints

Conversation

@suryaiyer95
Copy link
Copy Markdown
Contributor

@suryaiyer95 suryaiyer95 commented Apr 13, 2026

Summary

  • Adds a dedicated guide (docs/configure/bedrock-custom-endpoints.md) for using Altimate Code with custom Bedrock endpoints — API gateways, corporate proxies, VPC endpoints
  • Fixes the provider key from incorrect bedrock to amazon-bedrock across all docs to match the actual provider implementation in packages/opencode/src/provider/provider.ts
  • Updates config examples to use the correct options nesting structure

Context

Customer feedback confirmed the existing docs used the wrong provider key (bedrock instead of amazon-bedrock) and didn't cover the custom endpoint use case at all. The new guide covers bearer token auth, AWS credential chain, baseURL configuration, cross-region model ID prefixing, and troubleshooting.

Test plan

  • Verify mkdocs builds without errors (cd docs && mkdocs build)
  • Check all internal links resolve (providers.md → bedrock-custom-endpoints.md, quickstart.md → bedrock-custom-endpoints.md)
  • Confirm nav entry appears under Configure > LLMs > Bedrock Custom Endpoints

🤖 Generated with Claude Code


Summary by cubic

Adds a guide for using Amazon Bedrock with custom endpoints and updates docs to use the amazon-bedrock provider with the correct options config. Clarifies cross‑region model prefixing, fixes the CLI auth command, and corrects guidance on bare model IDs.

  • New Features

    • New guide: configure/bedrock-custom-endpoints.md (covers bearer token auth, AWS credential chain, options.baseURL, cross‑region prefixing by region+model family with pass‑through behavior and no disable switch, and troubleshooting with correct log lines).
  • Bug Fixes

    • Fixed CLI auth command: altimate-code auth login --provider amazon-bedrock.
    • Standardized provider key to amazon-bedrock and moved Bedrock config under options.region/options.profile/options.baseURL across models.md, providers.md, quickstart.md, and nav.
    • Corrected cross‑region prefix docs (bare/unprefixed model ID guidance and prefix table).

Written for commit 56334d2. Summary will update on new commits.

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive guide for configuring Amazon Bedrock with custom endpoints (API gateways, reverse proxies, VPC-fronting) and examples.
    • Standardized provider and model naming to "amazon-bedrock" across docs and quickstart examples.
    • Documented authentication options (AWS credential chain and bearer-token), provider options (region, profile, baseURL/endpoint), model auto-prefixing behavior, and troubleshooting tips.
    • Added navigation entry linking the new Bedrock custom endpoints guide.

- Add dedicated guide for custom Bedrock endpoints (API gateways, proxies,
  VPC endpoints) covering bearer token auth, AWS credential chain, config
  structure, cross-region model ID prefixing, and troubleshooting
- Fix provider key from incorrect `bedrock` to `amazon-bedrock` across all
  docs (providers.md, quickstart.md, models.md) to match actual code
- Update config examples to use `options` nesting structure matching the
  provider implementation
- Add nav entry under Configure > LLMs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 13, 2026 23:55
Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 13, 2026

📝 Walkthrough

Walkthrough

Docs updated to rename the Bedrock provider from bedrock to amazon-bedrock, add a new guide for configuring Amazon Bedrock with custom endpoints (including bearer-token vs AWS credential-chain auth), clarify model ID prefixing and provider options (options.region, options.profile, options.baseURL), and add troubleshooting notes.

Changes

Cohort / File(s) Summary
Bedrock Custom Endpoints Guide
docs/docs/configure/bedrock-custom-endpoints.md
New page describing custom endpoint setup for Amazon Bedrock, authentication flows (AWS_BEARER_TOKEN_BEDROCK bearer token takes precedence vs. AWS credential chain), sample altimate-code.json config (provider.amazon-bedrock.options.baseURL, region, profile), model ID prefixing rules, config scope, and troubleshooting commands/log indicators.
Provider & Model Docs
docs/docs/configure/providers.md, docs/docs/configure/models.md, docs/docs/getting-started/quickstart.md
Renamed section and provider key from bedrock/“AWS Bedrock” to amazon-bedrock/“Amazon Bedrock”; replaced top-level credential fields with an options object (options.region, options.profile, options.baseURL), updated model prefix to amazon-bedrock/<model-id>, and expanded credential-chain guidance.
Docs Navigation
docs/mkdocs.yml
Added navigation entry linking the new "Bedrock Custom Endpoints" page under the LLMs/configure section.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 I hopped through pages, nibbling lines of text,
I swapped names and endpoints, left nothing perplexed.
Tokens, regions, profiles in a row,
Models now find the paths they need to go.
Cheers — the docs are tidy, and my whiskers glow! 🥕

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is missing the required 'PINEAPPLE' marker at the top despite the template explicitly requiring it for AI-generated contributions, though it does include Summary and Test Plan sections. Add 'PINEAPPLE' at the very top of the PR description before all other content to comply with the required template for AI-generated contributions.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding a guide for Amazon Bedrock custom endpoints, which is the primary objective across all documentation changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/bedrock-custom-endpoints

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/docs/configure/providers.md`:
- Around line 78-110: Update the "Provider Options Reference" so the Bedrock
fields are shown under the provider.amazon-bedrock.options namespace (e.g.,
provider.amazon-bedrock.options.region,
provider.amazon-bedrock.options.accessKeyId,
provider.amazon-bedrock.options.secretAccessKey,
provider.amazon-bedrock.options.baseURL) instead of as top-level properties;
edit the examples and property list in the "Provider Options Reference" section
to reflect this new nesting and ensure all sample JSON snippets and descriptions
reference provider.amazon-bedrock.options.*.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 0dc01d14-3d5d-42ef-b390-e1f55bd7b380

📥 Commits

Reviewing files that changed from the base of the PR and between a18ecc6 and 66643b1.

📒 Files selected for processing (5)
  • docs/docs/configure/bedrock-custom-endpoints.md
  • docs/docs/configure/models.md
  • docs/docs/configure/providers.md
  • docs/docs/getting-started/quickstart.md
  • docs/mkdocs.yml

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds and wires up documentation for configuring Amazon Bedrock with custom endpoints, and corrects the Bedrock provider ID/config shape across existing docs to match the implementation (amazon-bedrock with nested options).

Changes:

  • Add new guide for Amazon Bedrock custom endpoints (gateways/proxies/VPC endpoints), including auth and troubleshooting.
  • Update docs to use the correct provider key (amazon-bedrock) and model prefix (amazon-bedrock/...).
  • Add mkdocs navigation entry for the new guide.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
docs/mkdocs.yml Adds the “Bedrock Custom Endpoints” page to the Configure → LLMs nav.
docs/docs/getting-started/quickstart.md Updates the Bedrock quickstart example to amazon-bedrock + options.region and links to the new guide.
docs/docs/configure/providers.md Fixes the Bedrock provider key/config shape and adds a short custom endpoint example + link.
docs/docs/configure/models.md Updates the Bedrock example model string to the amazon-bedrock/... prefix.
docs/docs/configure/bedrock-custom-endpoints.md New end-to-end guide for using Bedrock via custom endpoints, including auth, config, prefixing, and troubleshooting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 5 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="docs/docs/configure/bedrock-custom-endpoints.md">

<violation number="1" location="docs/docs/configure/bedrock-custom-endpoints.md:110">
P2: The cross-region section overstates prefix behavior: prefixing is conditional by model/region, not a universal default. This can lead to incorrect gateway expectations when model IDs are not auto-prefixed.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.

@anandgupta42
Copy link
Copy Markdown
Contributor

@suryaiyer95 can you address code review comments?

- Fix CLI auth command: `altimate-code auth login --provider amazon-bedrock`
- Clarify cross-region prefixing is conditional on model family + region
- Add "Models prefixed" column to region prefix table
- Fix backwards "unprefixed ID" guidance with accurate pass-through behavior
- Add warning about no option to disable auto-prefixing
- Fix log line format to match actual `service=config loading config from ...`
- Remove ambiguous "provide credentials directly" wording
- Fix Provider Options Reference: `options.region/profile/baseURL` not top-level

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
docs/docs/configure/providers.md (1)

333-335: Consider documenting options.endpoint alias in this reference table.

The dedicated Bedrock guide documents endpoint as an alias for baseURL, but this summary table only lists options.baseURL. Adding options.endpoint here would keep references consistent.

🧾 Suggested table row
 | `options.baseURL` | `string` | Custom endpoint URL for Bedrock gateway/proxy (Amazon Bedrock only) |
+| `options.endpoint` | `string` | Alias for `options.baseURL`; if both are set, `endpoint` takes precedence (Amazon Bedrock only) |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/docs/configure/providers.md` around lines 333 - 335, Add documentation
for the alias by adding a table row for `options.endpoint` alongside
`options.baseURL` in the reference table: state that `options.endpoint` is a
string and is an alias for `options.baseURL` (Custom endpoint URL for Bedrock
gateway/proxy, Amazon Bedrock only, default: `us-east-1` where applicable),
ensuring both `options.baseURL` and `options.endpoint` are listed and indicate
they are interchangeable in the Bedrock guide and code examples.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/docs/configure/bedrock-custom-endpoints.md`:
- Around line 126-131: The text currently contradicts itself by saying the
gateway expects a "bare model ID" but the example uses a prefixed model string
("amazon-bedrock/us.anthropic.claude-sonnet-4-6-v1"); pick one and make them
consistent — either change the explanatory sentence to say the gateway may
expect a prefixed model ID and keep the example, or change the example to a bare
model ID (e.g., "claude-sonnet-4-6-v1") so it matches the "bare model ID"
guidance; update the sentence around "If your gateway handles routing
independently and expects the bare model ID" and the JSON example so both
describe the same expectation.

---

Nitpick comments:
In `@docs/docs/configure/providers.md`:
- Around line 333-335: Add documentation for the alias by adding a table row for
`options.endpoint` alongside `options.baseURL` in the reference table: state
that `options.endpoint` is a string and is an alias for `options.baseURL`
(Custom endpoint URL for Bedrock gateway/proxy, Amazon Bedrock only, default:
`us-east-1` where applicable), ensuring both `options.baseURL` and
`options.endpoint` are listed and indicate they are interchangeable in the
Bedrock guide and code examples.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: f36317a7-37d2-4d20-ba82-f293353dbdb1

📥 Commits

Reviewing files that changed from the base of the PR and between 66643b1 and 844fd65.

📒 Files selected for processing (2)
  • docs/docs/configure/bedrock-custom-endpoints.md
  • docs/docs/configure/providers.md

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/docs/configure/bedrock-custom-endpoints.md`:
- Around line 70-82: Convert the fenced triple-backtick JSON blocks to the
repo’s expected indented code-block style: replace the ```json ... ``` fences
with a 4-space-indented block containing the same JSON (e.g., the block
containing "model": "amazon-bedrock/anthropic.claude-sonnet-4-6-v1"), and do the
same for the other occurrences referenced (the blocks around lines 102-104,
128-132, 143-145, 163-165, 169-182) so the content remains identical but uses
indented code block formatting.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 1d9c9321-0c95-45c8-b3d3-295f780f6487

📥 Commits

Reviewing files that changed from the base of the PR and between 844fd65 and 56334d2.

📒 Files selected for processing (1)
  • docs/docs/configure/bedrock-custom-endpoints.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants