Skip to content

[Bug]: Amazon Bedrock provider plugin loads successfully but provider registry is never populated, causing "Unknown model" runtime failure #97241

Closed as not planned

Description

@Harsh01007

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

I attempted to configure Amazon Bedrock as the primary model provider in OpenClaw 2026.6.10 on Ubuntu Server 24.04 LTS.

The Amazon Bedrock provider plugin installs successfully, is enabled, and appears to load correctly.

The Bedrock model also appears in openclaw models list as a configured model.

However, when attempting to start a chat, OpenClaw fails before inference with:

Unknown model: amazon-bedrock/anthropic.claude-sonnet-4-6

The runtime reports that the configured model exists under:

agents.defaults.models["amazon-bedrock/anthropic.claude-sonnet-4-6"]

but no corresponding entry exists under:

models.providers["amazon-bedrock"].models[]

During investigation, I found that no models.providers section is ever generated inside ~/.openclaw/openclaw.json, despite the Bedrock plugin being loaded successfully.

This appears to be a provider registration or model discovery issue rather than an AWS authentication issue.

Bug Report- Amazon Bedrock Provider Issue.pdf

Steps to reproduce

  1. Install Ubuntu Server 24.04 LTS.

  2. Install OpenClaw 2026.6.10 globally using npm.

  3. Install and enable the Amazon Bedrock provider plugin.

  4. Configure AWS CLI with valid IAM credentials that have Bedrock access.

  5. Verify AWS credentials using:

aws configure list

  1. Export credentials:

export AWS_ACCESS_KEY_ID=$(aws configure get aws_access_key_id)
export AWS_SECRET_ACCESS_KEY=$(aws configure get aws_secret_access_key)
export AWS_DEFAULT_REGION=$(aws configure get region)

  1. Configure the default model:

amazon-bedrock/anthropic.claude-sonnet-4-6

  1. Refresh the plugin registry:

openclaw plugins registry --refresh

  1. Verify the model appears:

openclaw models list

  1. Start OpenClaw:

openclaw chat

  1. Send a simple prompt:

hello

  1. OpenClaw fails before inference.

Expected behavior

The Amazon Bedrock provider should register itself as a model provider, populate the provider registry, discover supported Bedrock models, and successfully route inference requests through the AWS SDK.

The configured Bedrock model should be resolved successfully and chat should begin normally.

Actual behavior

The provider plugin loads successfully.

The Bedrock model appears inside:

openclaw models list

The provider also reports its text inference capability.

However, the runtime cannot resolve the configured model because no provider registry exists.

OpenClaw immediately fails with:

Unknown model:
amazon-bedrock/anthropic.claude-sonnet-4-6

Found agents.defaults.models["amazon-bedrock/anthropic.claude-sonnet-4-6"], but no matching models.providers["amazon-bedrock"].models[] entry.

OpenClaw version

OpenClaw 2026.6.10 Commit: aa69b12

Operating system

Ubuntu Server 24.04 LTS

Install method

Global npm installation

Model

anthropic.claude-sonnet-4-6

Provider / routing chain

OpenClaw ↓ Amazon Bedrock Provider Plugin ↓ AWS SDK Credential Chain ↓ Amazon Bedrock Runtime ↓ Claude Sonnet 4.6

Additional provider/model setup details

Plugin enabled:
amazon-bedrock

Region:
us-west-2

Configured default model:
amazon-bedrock/anthropic.claude-sonnet-4-6

AWS credentials configured through AWS CLI.

Credentials exported as environment variables.

Plugin registry refreshed.

Plugin inspection reports the provider as loaded.

No provider aliases configured.

No model aliases configured.

Bug Report- Amazon Bedrock Provider Issue.pdf

Logs, screenshots, and evidence

[Bug Report- Amazon Bedrock Provider Issue.pdf](https://github.com/user-attachments/files/29407852/Bug.Report-.Amazon.Bedrock.Provider.Issue.pdf)

Impact and severity

Severity:
High

The Amazon Bedrock provider cannot currently be used despite successful installation and configuration.

Any Bedrock-backed model fails before inference begins.

This prevents users from using Amazon Bedrock as an inference provider in OpenClaw.

Additional information

The issue appears fully reproducible.

The failure occurs consistently after fresh installation.

The plugin is detected.

The model is detected.

The registry refresh succeeds.

The runtime provider registry remains empty.

No models.providers section is generated inside the configuration.

This strongly suggests the provider registration stage is incomplete or skipped before runtime.

Activity

  1. clawsweeper commented on Jun 27, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 27, 2026, 8:05 AM ET / 12:05 UTC.

    Summary
    Keep open: current main still contains the exact model-registration failure path, and the Bedrock plugin/catalog lifecycle is not proven to materialize a runtime-readable catalog for this current-release setup. #88707 overlaps on Bedrock provider registration, but it does not fully cover this issue's Unknown model catalog-resolution symptom.

    Reproducibility: no. not as a fresh live AWS reproduction in this review. Source inspection confirms the exact current-main error branch and the reporter supplied current-release steps, but the generated Bedrock catalog state still needs live/provider-state proof.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.

    Next step
    Manual review is safer because the report needs live Bedrock/provider-state proof and a maintainer decision on the generated plugin catalog lifecycle before a new automated fix PR is safe.

    Review details

    Best possible solution:

    Keep the Bedrock catalog owned by the Amazon Bedrock plugin, but make enabled/configured Bedrock setups reliably generate and read a runtime provider catalog for chat, with live Bedrock proof on current release/main.

    Do we have a high-confidence way to reproduce the issue?

    No, not as a fresh live AWS reproduction in this review. Source inspection confirms the exact current-main error branch and the reporter supplied current-release steps, but the generated Bedrock catalog state still needs live/provider-state proof.

    Is this the best way to solve the issue?

    Unclear. The likely fix belongs around Bedrock provider discovery, generated plugin catalogs, and runtime model resolution, but maintainers should decide whether exact agents.defaults.models entries should trigger scoped discovery or require an explicit generated/provider catalog row first.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    Codex review notes: model internal, reasoning high; reviewed against c5d34c8376f8.

    Label changes

    Label changes:

    • add maturity:stable: The issue affects stable M4 CLI/Linux gateway/runtime setup and provider-routing surfaces from the maturity shortlist.

    Label justifications:

    • P1: A current-release user reports a regression that blocks Amazon Bedrock chat before inference, breaking a real provider workflow.
    • impact:auth-provider: The affected surface is provider discovery, model choice, and runtime routing for the Amazon Bedrock provider.
    • maturity:stable: The issue affects stable M4 CLI/Linux gateway/runtime setup and provider-routing surfaces from the maturity shortlist.
    Evidence reviewed

    Acceptance criteria:

    • Live Bedrock run on current main or latest release showing openclaw models list --provider amazon-bedrock and openclaw chat or openclaw infer model run use the same generated catalog.
    • Focused regression coverage for Bedrock generated plugin catalog generation and model resolver lookup when agents.defaults.models names a Bedrock model.

    What I checked:

    • Repository policy read and applied: Root AGENTS.md and scoped plugin/provider guidance were read; provider routing, plugin APIs, setup/startup checks, and config/default behavior are compatibility-sensitive review surfaces. (AGENTS.md:18, c5d34c8376f8)
    • Live issue context: Live GitHub issue data confirms this is open, externally reported, labeled P1/regression/auth-provider, and reports OpenClaw 2026.6.10 on Ubuntu Server with Bedrock chat failing before inference.
    • Current-main error path matches the report: buildUnknownModelError returns Unknown model: provider/model and appends the missing provider-model registration hint when agents.defaults.models contains the model but models.providers[provider].models[] does not. (src/agents/embedded-agent-runner/model.ts:1879, c5d34c8376f8)
    • Bedrock plugin owns both stream registration and catalog discovery: The Bedrock plugin registers bedrock-converse-stream and registers a provider catalog hook that returns an implicit provider only when Bedrock discovery produces models. (extensions/amazon-bedrock/register.sync.runtime.ts:383, c5d34c8376f8)
    • Generated plugin catalog sidecars are part of current design: Current runtime can load generated plugin-owned catalog shards from agents/<agent>/plugins/<plugin>/catalog.json, so absence of a root models.providers entry in openclaw.json is not conclusive by itself; the unresolved question is whether the reporter's Bedrock catalog sidecar is generated and read by chat. (src/agents/sessions/model-registry.ts:366, c5d34c8376f8)
    • Docs promise automatic Bedrock discovery for env-marker auth: The Bedrock docs say env-marker auth auto-enables the implicit Bedrock provider for model discovery, and the general config docs say agents.defaults.models allowlists still use dynamic model discovery. Public docs: docs/providers/bedrock.md. (docs/providers/bedrock.md:81, c5d34c8376f8)

    Likely related people:

    • steipete: Authored the merged runtime internalization work that moved Bedrock stream/provider registration to the plugin/runtime boundary and recently documented Bedrock provider behavior. (role: feature-history contributor; confidence: high; commits: bb46b79d3c14, 8cfc09238f1e, 0e7b5c34292c; files: extensions/amazon-bedrock/register.sync.runtime.ts, extensions/amazon-bedrock/discovery.ts, docs/providers/bedrock.md)
    • vincentkoc: Recent history touches Bedrock registration/discovery and the model resolver path implicated by the reported error. (role: recent area contributor; confidence: high; commits: 2f0f08582601, b4aa520b0765, 206552c6977b; files: extensions/amazon-bedrock/register.sync.runtime.ts, extensions/amazon-bedrock/discovery.ts, src/agents/embedded-agent-runner/model.ts)
    • sweetcornna: Authored the model-registration hint that surfaces the exact models.providers mismatch reported by this issue. (role: diagnostic contributor; confidence: medium; commits: 1532b46e2a63; files: src/agents/embedded-agent-runner/model.ts, src/agents/embedded-agent-runner/model.test.ts)
    • joshavant: Authored the recent static model fallback work in the same resolver area that decides whether configured/catalog rows can satisfy a model reference. (role: adjacent model-resolution contributor; confidence: medium; commits: da4671ebccfb; files: src/agents/embedded-agent-runner/model.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.
    on Jun 27, 2026
  3. Harsh01007 commented on Jun 29, 2026

    @Harsh01007
    Author

    The Amazon Bedrock plugin loads successfully, openclaw models list includes Bedrock models, and AWS SDK credential detection succeeds. However, at runtime openclaw chat fails with:

    Unknown model:
    amazon-bedrock/...

    because models.providers["amazon-bedrock"] is missing.

    Is there an initialization step, feature flag, or configuration required to populate models.providers from the plugin's implicit provider discovery, or is this a regression in 2026.6.10?

  4. openclaw-barnacle commented on Jul 14, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  5. openclaw-barnacle commented on Jul 21, 2026

    @openclaw-barnacle

    Closing due to inactivity.
    If this is still an issue, please retry on the latest OpenClaw release and share updated details.
    If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.

  6. locked as resolved and limited conversation to collaborators on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingclawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.regressionBehavior that previously worked and now failsstaleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions