Repository navigation
Description
Summary
Upgrading the OpenClaw host to 2026.5.28 causes all Bedrock calls to fail with:
No API provider registered for api: bedrock-converse-stream
This is a hard upgrade blocker for any Bedrock user, and in particular for users trying to use the new bearer token auth feature shipped in this release.
Root Cause
Commit bb46b79 ("refactor: internalize OpenClaw agent runtime", PR #85341, landed 2026-05-27) made two simultaneous architectural changes that create a version-mismatch trap:
Before (≤ 2026.5.26):
The bedrock-converse-stream API provider was automatically registered by the host via the bundled @earendil-works/pi-ai package. The @openclaw/amazon-bedrock-provider plugin merely wrapped and configured the provider — it did not call registerApiProvider itself.
After (≥ 2026.5.28):
@earendil-works/pi-ai was removed from the host runtime entirely and replaced with OpenClaw-native modules (openclaw/plugin-sdk/llm, etc.). The @openclaw/amazon-bedrock-provider plugin now must explicitly call registerApiProvider to register bedrock-converse-stream:
// extensions/amazon-bedrock/register.sync.runtime.ts
+ registerApiProvider(
+ {
+ api: "bedrock-converse-stream",
+ stream: streamBedrock,
+ streamSimple: streamSimpleBedrock,
+ },
+ `plugin:${providerId}`,
+ );This explicit call only exists in plugin version 2026.5.28.
The trap: When users upgrade the host via npm install -g openclaw@2026.5.28, the @openclaw/amazon-bedrock-provider plugin is not automatically updated. If the installed plugin is still at v2026.5.26:
- v2026.5.26 plugin code runs (no
registerApiProvidercall) - Host no longer registers
bedrock-converse-streamautomatically (pi-ai removed) - Result:
bedrock-converse-streamis never registered → every Bedrock call fails
The bearer token feature (also added in bb46b79 in stream.runtime.ts) is completely inaccessible in this state.
Affected Version Range
| Host | Plugin | Bedrock works? |
|---|---|---|
| 2026.5.26 | 2026.5.26 | ✅ (pi-ai auto-registers) |
| 2026.5.28 | 2026.5.28 | ✅ (explicit registerApiProvider) |
| 2026.5.28 | 2026.5.26 | ❌ REGRESSION |
Steps to Reproduce
- Have a working Bedrock setup on OpenClaw 2026.5.26 with
@openclaw/amazon-bedrock-providerat v2026.5.26 - Run
npm install -g openclawto upgrade host to 2026.5.28 (plugin NOT updated) - Restart the gateway
- Attempt any Bedrock model call
- Observe:
No API provider registered for api: bedrock-converse-stream
Workaround
Run openclaw plugins update after upgrading the host to force the plugin to v2026.5.28. This restores the explicit registerApiProvider call.
Suggested Fix
The host upgrade path should either:
- Auto-update bundled/official plugins when the host is updated, OR
- Add a startup warning when a plugin version predates a breaking plugin-api contract change (e.g., when
compat.pluginApiin the installed plugin is older than the host version that removed pi-ai), OR - Restore a compatibility shim in the host that still registers
bedrock-converse-streamwhen the plugin does not, to preserve backward compatibility across the transition window
Option 3 is the lowest-risk hotfix.
Key Commit
- bb46b79 — "refactor: internalize OpenClaw agent runtime (refactor: internalize OpenClaw agent runtime #85341)" (2026-05-27)
- Removes
@earendil-works/pi-aifrom plugin dependencies - Adds
registerApiProvider({ api: "bedrock-converse-stream", ... })to plugin (v2026.5.28 only) - Adds
bearerTokensupport in newstream.runtime.ts
- Removes
Additional Context
This also affects @openclaw/amazon-bedrock-mantle which had the same @earendil-works/pi-ai dependency removed in the same commit.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon May 31, 2026
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.
Close as a duplicate of the still-open generic plugin/core upgrade-drift issue; current main covers the Bedrock registration mechanism and exposes drift recovery, while the remaining cross-plugin policy belongs in the canonical report.
Root-cause cluster
Relationship:
duplicateCanonical: #83337
Summary: This is the Amazon Bedrock manifestation of the canonical plugin/core version-drift problem.
Members:
canonical: Plugin/core version drift after upgrade causes silent channel failure #83337 - It remains open and owns the cross-plugin invariant: core upgrades must not leave active official plugins incompatible or silently broken.same_root_cause: [Bug]: Core upgrade via npm does not sync external plugins — plugins update command also fails to detect drift #94641 - Its reported npm-upgrade mismatch and failed update recovery are corroborating evidence for the same generic drift problem; it is closed.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Canonical path: The provided context shows #83337 remains open for the same cross-plugin upgrade invariant, while #94641 is a closed corroborating satellite.
So I’m closing this here and keeping the remaining discussion on #83337 and #94641.
Review details
Best possible solution:
Keep one generic upgrade contract that converges or clearly reports active official plugin/core drift before a provider or channel fails, without adding a Bedrock-specific core shim.
Do we have a high-confidence way to reproduce the issue?
No: the historical host/plugin release pair was not executed, although current source and tests establish the registration and recovery paths now in place.
Is this the best way to solve the issue?
Yes: closing this Bedrock-specific satellite in favor of the open generic upgrade-drift report avoids a provider-specific workaround and preserves the remaining product decision in one place.
Security review:
Security review: This is an issue review with no proposed patch to assess.
AGENTS.md: found and applied where relevant.
What I checked:
extensions/amazon-bedrock/register.sync.runtime.ts:519, ce06e7924e88)extensions/amazon-bedrock/index.test.ts:310, ce06e7924e88)src/plugins/plugin-version-drift.ts:37, ce06e7924e88)src/cli/daemon-cli/status.gather.ts:355, ce06e7924e88)src/plugins/plugin-version-drift.ts:38, 4a285d529a00)Likely related people:
src/plugins/plugin-version-drift.ts,src/cli/daemon-cli/status.gather.ts)src/plugins/plugin-version-drift.ts)extensions/amazon-bedrock/register.sync.runtime.ts,extensions/amazon-bedrock/index.ts)Codex review notes: model internal, reasoning high; reviewed against ce06e7924e88.
xojins commentedon Jun 1, 2026
I had a similar experience this morning. I used the Update feature from the openclaw dashboard and I was getting the same error. However, it seems that my plugin was removed and I had to run
openclaw plugins install @openclaw/amazon-bedrock-providerto get it working again.ALUIZDEB commentedon Jun 10, 2026
@xojins approach works fine to me.
But, it's gone be fixed someday?
itsstevemiller commentedon Jun 10, 2026
Adding a fresh data point from a current bundled/source-checkout install, because this does not look like the stale/missing 2026.5.26 Bedrock plugin case described in the original report/workaround.
Environment:
2026.6.5 (5181e4f), exact tagv2026.6.5/ commit5181e4f7c82b26.5 (25F71)openclaw config validate --json: 0 errors, 0 warningsamazon-bedrockplugin: version2026.6.5, originbundled, enabled/explicitly activated, statusloaded, dependencies installedObserved behavior:
The plugin is present/current rather than stale:
openclaw plugins inspect amazon-bedrock --jsonreportsenabled: true,activated: true,status: "loaded",providerIds: ["amazon-bedrock"], anddependencyStatus.requiredInstalled: true. The current source also contains the expected registration path inextensions/amazon-bedrock/register.sync.runtime.ts:I also verified the AWS side separately with a direct Bedrock SDK probe using the same Bedrock account/credential path: Anthropic Sonnet 4.6 and Opus 4.6 return successfully there, while a model not available to the account fails with AWS
AccessDeniedException. So in this setup OpenClaw appears to fail before reaching AWS.This may be a second variant of the same regression: the bundled/current
amazon-bedrockplugin is loaded as a provider/catalog capability, but the API provider registry used by model execution still cannot seebedrock-converse-stream. Happy to run a specific diagnostic command if there is a preferred one for checking plugin API-provider registration state.5 remaining items
vincentkoc commentedon Aug 12, 2026
Closing this as a duplicate of the canonical plugin/core lifecycle issue: #83337
The strongest distinct evidence from this report is preserved: the bundled/current
v2026.6.5reproduction used the matching loaded and activated Bedrock plugin, so it was not merely stale plugin version drift: #88707 (comment)Current
maincontains the Bedrock lifecycle repair that resolvesbedrock-converse-streamthrough the provider-ownedcreateStreamFn, with focused coverage in 441a9b9. That repair is not in the latest stable release,v2026.7.1-2. The generic drift detector also still excludes official installs with exact-version specs, so the canonical issue remains open.Please reopen this Bedrock-specific issue if the failure reproduces on a release containing
441a9b94cf05c54a05a2a21173672926064f1c6cwith the matching bundled plugin, or if new evidence shows the provider lifecycle remains broken after that change.