Skip to content

feat: add CoreWeave Inference app setup and provider guide - #166965

Open
crwvrosenblum wants to merge 20 commits into
openclaw:mainfrom
crwvrosenblum:coreweave-onboarding-catalog
Open

crwvrosenblum wants to merge 20 commits into
openclaw:mainfrom
crwvrosenblum:coreweave-onboarding-catalog

Conversation

@crwvrosenblum

@crwvrosenblum crwvrosenblum commented Oct 8, 2026 •

Copy link
Copy Markdown

Related: #92232

What Problem This Solves

CoreWeave Inference is available as an external plugin, but users cannot discover it in OpenClaw's app API-key picker or provider documentation directory.

User Impact

Users can select CoreWeave Inference API key, enter their W&B API key, and choose Connect. If the plugin is missing, installation and capability approvals run before authentication, verification, and activation.

The provider directory, quickstart, and documentation navigation also link to a new CoreWeave Inference guide covering plugin installation, authentication, model selection, discovery behavior, and optional W&B project attribution.

Why This Change Was Made

The shared pasted-key setup flow gains an explicitly opted-in external catalog choice, pinned to published ClawHub @coreweave/[email protected] and its verified SHA-256. Its manifest declares appGuidedSecret, preserving eligibility after installation. The Control UI includes the CoreWeave brand mark. Installed manifests retain priority, and policy-blocked, unsupported, detected-only, and non-text choices remain excluded.

The provider runtime stays in CoreWeave's plugin repository. Telnyx already uses this external catalog path; this PR requests admission for CoreWeave and supplies the corresponding setup documentation. It does not grant a ClawHub Official badge.

An activation comparison fix prevents promotion of pending installation records into the canonical plugin index from being mistaken for concurrent configuration drift. That fix is also split into #170165 so it can land independently; this PR retains it while its install-owner coverage depends on it. No new persisted schema is introduced.

Still required before merge: OpenClaw maintainer approval for this specific catalog admission. ClawHub currently labels the package community/source-linked; #92232 does not establish admission approval. Native happy-path evidence is available below; it does not replace any remaining review requirements.

Evidence

  • CI repair (0caa842dd): removed the stale deps reference left in setup discovery after upstream removed dependency injection. Reconciled the existing provider-install ownership tests with current module spies and async readers, restored the original three-case matrix, and preserved real exports in the auth mock. Targeted formatting, git diff --check, and the hosted TypeScript contract check passed on this commit. Source inspection found no actionable issues; the artifact build is running and the main test workflow is queued. Fork runtime was not executed locally.
  • Provider documentation addition: checked instructions against published plugin source 648c04f8d7528329fffb4c45aa6b0bdcc15c93de (0.1.1). Targeted oxfmt --check, JSON parsing, frontmatter/fence sanity, internal link targets, alphabetized directory/navigation inclusion, glossary coverage, and git diff --cached --check passed. No runtime code changed in this follow-up, and runtime tests were not rerun.
  • Autoreview limitation: the shared helper could not produce a review for the docs follow-up or the CI repair: the local Codex CLI rejected both its configured primary and fallback models as unsupported for the account. This is not a passing automated review.
  • Prior implementation validation: 48 focused tests passed at the previously recorded implementation head across discovery, provider installation ownership, provider-install catalog, and official external-plugin catalog coverage. They include denied capability consent and setup ownership invalidation before persistent effects. These are prior-head results, not claims about the new docs commit.
  • Native macOS proof: the released v2026.10.2 app connected to a development Gateway on head 1f67618a6ca completed picker selection, integrity-verified installation and capability consent, W&B key entry, a real coreweave/moonshotai/Kimi-K2.6 response, and activation. Screenshots and committed-state evidence.
  • Published artifact: downloaded plugin 0.1.1, verified the catalog SHA-256, and confirmed coreweave-api-key declares appGuidedSecret: true.

@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S labels Oct 8, 2026
@crwvrosenblum
crwvrosenblum marked this pull request as ready for review October 8, 2026 04:22
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 8, 2026
@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Adds CoreWeave to app API-key setup through managed plugin installation, repairs post-install credential activation, and adds provider branding.

Example: Connect CoreWeave using a W&B API key on a fresh installation.

  • Before: CoreWeave is absent from the API-key picker.
  • After: CoreWeave is offered, pinned plugin installation requests consent, and successful verification activates coreweave/moonshotai/Kimi-K2.6.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The native happy path is useful evidence, but required authority coverage is incomplete, a previously reported test failure remains, and catalog admission awaits an owner decision.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦪 silver shellfish (2/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Fresh app setup does not offer the externally published CoreWeave provider in its API-key picker.
Reason: The shared setup improvement has user value, but admission of this package into the official external catalog has no recorded owner approval.

Merge readiness

⛔ Blocked before merge - 6 items remain

Keep this PR open: it provides distinct provider-setup work, but catalog admission needs an owner decision and the previous P2 test defect remains unresolved.

Priority: P3
Reviewed head: ada9fd77acd7ac1975b5fbd7062499c25324490c
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should @coreweave/[email protected] be admitted to OpenClaw's official external provider catalog?
  • Recommendation: Defer admission while retaining the external plugin: Keep CoreWeave available through its publisher and evaluate the generic setup improvements and separate activation repair without implying catalog endorsement.
  • Why: External-plugin direction and the Telnyx precedent do not settle this package's admission into a catalog path that carries trusted-source installation treatment.

Before merge

  • Add real behavior proof - Authority-chain proof required: the inspected native screenshots and committed-state report support pinned 0.1.1 happy-path setup, but actual capability refusal through the managed installer and supersession through the real setup-session owner remain unproven. The new brand asset also lacks before/after screenshots; the supplied released client uses its fallback icon. Supply sanitized production-path evidence, redacting credentials, IPs, phone numbers, and non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Use the imported async reader in both rejection tests (P2) - Both new rejection cases call readPersistedInstalledPluginIndexInstallRecords, which is neither imported nor declared; only readPersistedInstalledPluginIndexInstallRecordsAsync is imported. Reaching these assertions raises ReferenceError and prevents the tests from proving unchanged install state. Replace this call and the identical call at line 583 with the imported async reader. This is the unresolved previous P2 finding.
  • Expand the SVG viewport to contain the complete logo (P3) - The viewport spans y=12 through y=100, but the path's lower stroke reaches y=115.93. ProviderBrandIcon loads this asset as a CSS mask, so the bottom of the CoreWeave mark is clipped in provider rows. Adjust the viewport or path coordinates to include the complete mark.
  • Resolve security concern: Consent and setup ownership are simulated in negative evidence - The successful native run establishes allowed completion. The negative harness bypasses the managed consent owner and substitutes a callback for actual session supersession, leaving rejection before installation, provider I/O, and credential promotion unproven.
  • Resolve merge risk - Before merge, establish that the newly reachable pasted-key installation path enforces actual capability refusal and superseded setup ownership before unauthorized effects.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P2] Use the imported async reader in both rejection tests — src/system-agent/setup-inference.provider-install-owner.test.ts:394-396
  • [P3] Expand the SVG viewport to contain the complete logo — ui/public/provider-icons/ProviderIcon-coreweave.svg:1
  • [medium] Consent and setup ownership are simulated in negative evidence — src/system-agent/setup-inference.provider-install-owner.test.ts:350

Tests

  • Missing end-to-end proof: Actual capability refusal, real setup-session supersession, and before/after rendering of the new brand asset remain unshown.
Agent review details

How this fits together

The provider catalog supplies setup choices to app clients; Gateway setup owns installation, credential staging, verification, and activation.

flowchart TD
  A[Provider catalog] --> B[App key picker]
  B --> C[Gateway setup]
  C --> D[Managed installer and consent]
  D --> E[External provider plugin]
  E --> F[Credential verification]
  F --> G[Config and credential owners]
Loading

Technical review

Best possible solution:

Keep the provider implementation external, decide catalog admission explicitly, and retain the existing installation and credential owners.

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

Source establishes the missing fresh-install picker choice and the undefined reader in both rejection tests; no tests were run during this read-only review.

Is this the best way to solve the issue?

The generic catalog-to-managed-install path fits the existing owners, but package admission is a product decision and the activation repair overlaps a separate candidate.

Full review comments:

  • [P2] Use the imported async reader in both rejection tests — src/system-agent/setup-inference.provider-install-owner.test.ts:394-396
    Both new rejection cases call readPersistedInstalledPluginIndexInstallRecords, which is neither imported nor declared; only readPersistedInstalledPluginIndexInstallRecordsAsync is imported. Reaching these assertions raises ReferenceError and prevents the tests from proving unchanged install state. Replace this call and the identical call at line 583 with the imported async reader. This is the unresolved previous P2 finding.
    Confidence: 1
  • [P3] Expand the SVG viewport to contain the complete logo — ui/public/provider-icons/ProviderIcon-coreweave.svg:1
    The viewport spans y=12 through y=100, but the path's lower stroke reaches y=115.93. ProviderBrandIcon loads this asset as a CSS mask, so the bottom of the CoreWeave mark is clipped in provider rows. Adjust the viewport or path coordinates to include the complete mark.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against a7c6c126faed.

Merge-risk options

Maintainer options:

  1. Exercise the actual consent and session owners (recommended)
    Show refusal stopping provider I/O and installation commit, and supersession through the real setup-session owner stopping later credential promotion.
  2. Pause catalog admission
    Keep the package externally installable while resolving its admission decision and evaluating the shared activation repair separately.

Provenance checked

  • Explicit provider selection and managed installation keeps the original intent (64bf824: Require explicit provider selection and preserve managed installation, capability consent, existing routes, and authored preferences.)
  • Post-commit credential activation comparison changes intended behavior with a stated reason (dd33833: Bind saved-sign-in activation to current configuration and credential owners so refused switches preserve the working connection.)
  • Closed-mock baseline removals keeps the original intent (unknown: The removed entries describe mocks changed to importOriginal passthrough; both removals match the current source. Historical baseline blame was unavailable in the supplied provenance.)

Testing

Proof path: shipped entry point.

Security

Needs attention: No concrete authorization bypass was established, but the new installation path lacks complete final-effect authority evidence.

Evidence

Security concerns:

  • [medium] Consent and setup ownership are simulated in negative evidence — src/system-agent/setup-inference.provider-install-owner.test.ts:350
    The successful native run establishes allowed completion. The negative harness bypasses the managed consent owner and substitutes a callback for actual session supersession, leaving rejection before installation, provider I/O, and credential promotion unproven.
    Confidence: 0.99

What I checked:

  • Introduced behavior: The pinned introduction diff adds CoreWeave 0.1.1 with integrity metadata and appGuidedSecret, then routes uninstalled pasted-key choices through the existing managed installer. (src/system-agent/setup-inference-credentials.ts:498, ada9fd77acd7)
  • Previous finding remains: Only readPersistedInstalledPluginIndexInstallRecordsAsync is imported, but both new rejection cases still call readPersistedInstalledPluginIndexInstallRecords. The file is unchanged from the previous reviewed head. (src/system-agent/setup-inference.provider-install-owner.test.ts:395, ada9fd77acd7)
  • Successful native setup evidence: Inspected all four prepared screenshots from the contributor's native macOS comment: pinned 0.1.1 capability review, acceptance prompt, verified CoreWeave model, and post-install picker. The released client shows the generic icon. (1f67618a6cad)
  • Authority proof boundary: The denial test replaces prepareAuthChoiceLoadedPluginProvider with a fabricated denial result; the ownership test injects a throwing callback instead of superseding a real setup session. Neither exercises the claimed authority owner. (src/system-agent/setup-inference.provider-install-owner.test.ts:350, ada9fd77acd7)
  • Catalog direction and precedent: The linked provider request records steipete's external-plugin direction. Telnyx was subsequently admitted as an external catalog entry, but neither decision approves this specific CoreWeave admission. (scripts/lib/official-external-provider-catalog.json:538, ada9fd77acd7)
  • Current main and separate activation candidate: Fetched main lacks the CoreWeave catalog entry and still compares post-commit activation against verifiedRoute. The separate open activation PR owns the identical comparison repair. (src/system-agent/setup-inference-activate.ts:534, a7c6c126faed)

Likely related people:

  • Peter Steinberger: Raw commit 98d2a0e adds src/system-agent/setup-inference-activate.ts:526 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 98d2a0e769fb; files: src/system-agent/setup-inference-activate.ts)
  • Ayaan Zaidi: Raw commit dd33833 adds src/system-agent/setup-inference-activate.ts:507 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dd3383345724; files: src/system-agent/setup-inference-activate.ts)
  • Vincent Koc: Raw commit d4268b1 adds src/plugins/provider-install-catalog.ts:300 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d4268b1b2b74; files: src/plugins/provider-install-catalog.ts)

PR surface

Source +30, Tests +408, Docs +7, Other +49. Total +494 across 15 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 9 40 10 +30
Tests 3 425 17 +408
Docs 1 7 0 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 2 51 2 +49
Total 15 523 29 +494

Review metrics

Metric Value Why it matters
New provider setup inputs 1 CLI option, 1 environment variable Catalog metadata introduces --coreweave-api-key and COREWEAVE_API_KEY, expanding the user-facing setup surface.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: The central change is optional provider discovery and setup convenience, with an existing external-plugin route.
  • merge-risk: 🚨 security-boundary: The catalog makes third-party plugin installation and pasted credentials reachable through a new setup path; actual refusal and superseded-session final-effect evidence remains incomplete.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-08T20:29:51.980Z sha 25065fd :: needs real behavior proof before merge. :: [P2] Pin a published plugin that declares app-guided key setup
  • reviewed 2026-10-10T00:59:04.161Z sha 0ce2edd :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-10T01:10:43.265Z sha 0ce2edd :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-12T15:33:28.031Z sha a3457e7 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-12T16:04:17.917Z sha c92c870 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-12T19:08:34.599Z sha 1f67618 :: needs real behavior proof before merge. :: [P2] Update the new install-index reads to main’s async API
  • reviewed 2026-10-12T19:39:19.866Z sha 1f67618 :: needs real behavior proof before merge. :: [P2] Update the added install-index reads to the async API
  • reviewed 2026-10-12T20:09:42.091Z sha d2e1bb2 :: needs real behavior proof before merge. :: [P2] Update both rejection tests to the imported async index reader

Reviewed October 12, 2026, 4:55 PM ET / 20:55 UTC (Revision 15).

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Oct 8, 2026
@crwvrosenblum
crwvrosenblum marked this pull request as draft October 8, 2026 05:14
@crwvrosenblum crwvrosenblum changed the title feat: offer CoreWeave Inference in provider setup feat: offer CoreWeave Inference in app API key setup Oct 8, 2026
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Oct 8, 2026
@crwvrosenblum
crwvrosenblum marked this pull request as ready for review October 8, 2026 05:19
@crwvrosenblum

Copy link
Copy Markdown
Author

Updated this to support the API-key dropdown on fresh installs, with the existing installation approval flow preserved. Added regression coverage; 43 focused tests pass. The PR body has the details. Native screenshots and the updated plugin rele

@crwvrosenblum
crwvrosenblum force-pushed the coreweave-onboarding-catalog branch from 9254fc7 to da8849c Compare October 8, 2026 05:24
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: M and removed size: S triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Oct 8, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 8, 2026
@crwvrosenblum
crwvrosenblum force-pushed the coreweave-onboarding-catalog branch from 614f823 to 9f68cfa Compare October 8, 2026 06:14
The pasted-key catalog path reaches managed installation and provider
authentication; exercise the real owners to show a declined capability
review returns rejected-before-promotion with no provider request, no
credential, and no install record, and that ownership lapsing during
verification aborts the artifact commit and credential promotion with
the config untouched.

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@crwvrosenblum

Copy link
Copy Markdown
Author

Addressed the authority-chain and data-model asks from the latest review on 1f67618a6ca:

  • Denied capability consent — new test drives the real prepareAuthChoiceLoadedPluginProvider denial contract (retrySelection + installError) through activateSetupInference: rejected-before-promotion, zero provider verification requests, zero persisted credentials, zero install records, config byte-identical.
  • Invalidated setup ownership — ownership lapses mid-verification; the commit transform's beforePersistentEffect revalidation aborts before artifact commit and credential promotion. Config, install index, and credential store verified untouched.
  • Data-model compatibility — the change is additive (catalog entry + post-commit comparison fix); no stored schema changes. installed-plugin-index.compat.test.ts covers loading previously persisted install records on this base.

Still outstanding: maintainer catalog-admission decision (Telnyx precedent cited in the body) and native Mac key-entry proof.

@crwvrosenblum

Copy link
Copy Markdown
Author

Split the activation fix into #170165 so it can be reviewed and landed without waiting on the catalog-admission decision. It reproduces the false-drift failure on current main (the prior fixture saved no credential, so the activation path never ran) and proves the committed-shape comparison repairs it for any installed provider — Telnyx included. This PR retains the identical hunk until that lands since its install-owner coverage exercises it.

@crwvrosenblum

Copy link
Copy Markdown
Author

Native macOS proof — pinned @coreweave/[email protected]

End-to-end run on the released macOS app (OpenClaw-2026.10.2-arm64.dmg, v2026.10.2) connected to a dev Gateway running this branch (1f67618a6ca), throwaway state dir, token auth. The catalog entry drove the native picker → managed install → capability consent → pasted W&B key → live verification → activation chain, all through the real UI and Gateway RPCs.

1. Capability consent — native prompt with pinned version + integrity hash

capability consent

2. Provider capability grant — Accept these capabilities for "coreweave"?

capabilities accept

3. Activation — coreweave/moonshotai/Kimi-K2.6 "already verified with a real reply"

verified activation

4. Post-install picker — Coreweave / API key remains offered

picker post-install

5. Model picker — provider serves its live catalog (20 models), Kimi K2.6 active

model picker

Server-side committed state (throwaway profile, post-run)

  • extensions/coreweave/ → @coreweave/serverless-inference 0.1.1 artifact on disk (integrity-verified managed install)
  • plugins.entries.coreweave: {enabled: true}; plugins.installs.coreweave recorded — Gateway hot-reload applied plugins.entries.coreweave, auth.profiles, models.providers, plugins.installs.coreweave live
  • auth.profiles → coreweave:setup-11f1906c-… — promoted credential with the setup marker
  • models.providers → coreweave registered; model picker serves the plugin's 20-model catalog

Notes: the released app renders a generic icon for CoreWeave (brand asset not in v2026.10.2); shown picker icon is the fallback, catalog data is unaffected. Gateway ran with OPENCLAW_GATEWAY_TOKEN auth; the app connected via remote-gateway settings (ws://127.0.0.1:18790).

@crwvrosenblum

Copy link
Copy Markdown
Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 12, 2026
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Oct 12, 2026
@crwvrosenblum crwvrosenblum changed the title feat: offer CoreWeave Inference in app API key setup feat: add CoreWeave Inference app setup and provider guide Oct 26, 2026

This branch has not been deployed

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

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant