Repository navigation
feat: set up Llama and llama.cpp without installing a plugin first - #205986
Conversation
Llama and llama.cpp now show up in `openclaw onboard` without installing `@openclaw/llama-cpp-provider` first, like LM Studio and Ollama. The plugin moved out of core when it depended on `node-llama-cpp`; since openclaw#123105 it manages a `llama-server` and its only runtime dependency is `@openclaw/fs-safe`, which core already ships. Follows the Cloudflare pattern (openclaw#174287): dropped from the root package's exclusion list, and its official catalog entry marked `bundledDist: true`, so it stays published to npm and ClawHub for standalone builds that omit it. The doctor and memory install hints are left as they are -- they only show when the plugin isn't loaded.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesBundle the existing llama.cpp provider with OpenClaw so Llama, llama.cpp, and local embeddings no longer require a separate plugin installation. Example: A fresh OpenClaw installation connects to Llama at http://127.0.0.1:9931/v1.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR makes a focused, coherent packaging change that current main does not provide; bundling the provider needs an owner decision, and no definite code defect was found. Reviewed head: Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe root package file list controls plugin inclusion, while the official catalog controls distribution classification; existing plugin metadata supplies onboarding choices and the provider runtime handles inference. flowchart LR
A[Root package file list] --> C[Installed OpenClaw package]
B[Official plugin catalog] --> C
C --> D[Plugin discovery]
D --> E[Onboarding choices]
E --> F[Llama or llama.cpp server]
Technical reviewBest possible solution: If an owner approves bundling, retain this minimal packaging change and verify the installed package through fresh onboarding and a stable-release upgrade. Do we have a high-confidence way to reproduce the issue? Current main excludes dist/extensions/llama-cpp from the root package and documents separate installation, establishing the setup prerequisite in source without running target code. Is this the best way to solve the issue? The two packaging edits are the smallest coherent implementation using existing build and classification owners, and the documentation changes follow that outcome. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 663be7286b10. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceDocs -17, Config -1, Other +3. Total -15 across 9 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 26, 2026, 9:31 AM ET / 14:31 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Llama and llama.cpp now show up in `openclaw onboard` without installing `@openclaw/llama-cpp-provider` first, like LM Studio and Ollama. The plugin moved out of core when it depended on `node-llama-cpp`; since openclaw#123105 it manages a `llama-server` and its only runtime dependency is `@openclaw/fs-safe`, which core already ships. Follows the Cloudflare pattern (openclaw#174287): dropped from the root package's exclusion list, and its official catalog entry marked `bundledDist: true`, so it stays published to npm and ClawHub for standalone builds that omit it. The doctor and memory install hints are left as they are -- they only show when the plugin isn't loaded.
What Problem This Solves
To use the Llama app or a llama.cpp server, people first have to run
openclaw plugins install @openclaw/llama-cpp-provider-- until then, neither shows up inopenclaw onboard. LM Studio and Ollama are there out of the box.User Impact
Llama and llama.cpp show up in
openclaw onboardon a fresh install, like LM Studio and Ollama. Local GGUF memory embeddings no longer need the install step either. The plugin stays published to npm and ClawHub, for standalone builds that leave it out.Why This Change Was Made
The plugin moved out of core when it depended on
node-llama-cpp. Since the managed-server change it manages allama-serverinstead, and its only runtime dependency is@openclaw/fs-safe, which core already ships.It follows the Cloudflare pattern from the Cloudflare packaging fix: dropped from the root package's exclusion list, and its official catalog entry marked
bundledDist: true. Publication is unchanged.The docs drop the install step (llama.cpp, Llama, memory and custom-provider pages), and the plugin inventory is regenerated.
Evidence
pnpm plugins:inventory:checkpasses.official-external-plugin-catalog,official-external-plugin-bundled-catalogs,official-external-plugin-repair-hints,bundled-plugin-metadata,provider-auth-choices, and thebundled-plugin-build-entries,bun-standalone-plugins,desktop-runtime-plugins,check-plugin-npm-runtime-builds,plugin-publication-artifact,npm-placeholder-publication,bundled-plugin-assetsscript tests.collectSourceCheckoutPluginBuildEntriesnow classifiesllama-cpplikelmstudioandcloudflare(in core, not isolated).full-release-publication-admission.test.tswas not run locally (requires Bash 5+). Full build and packed-tarball verification are recorded below.Maintainer verification
Approved the lightweight bundled-provider direction using the existing packaging/catalog owners. No runtime dependency or provider-specific core path is added. Runtime and test code: unchanged; packaging metadata: +3/-1; docs: +11/-28.
Verified unchanged head
6545a24e47f7efe0bdae9de34795dfd96ddfe948on Darwin arm64 with Node 26.7.0 and pinned Bun1.4.4-canary.1+191755ec1:pnpm buildpassed; six focused build-entry/catalog/Doctor/metadata/repair-hint/manifest files passed (149 tests).1d53e9e02e722898bf19e1e195dc0d1c6b29fbfc5bd76e6b75ff8b4e57002ae8; its build metadata names this exact head.2026.11.10with its external@openclaw/llama-cpp-providerinstallation using the same candidate archive. Model selection, endpoint/provider configuration, credential use, and explicit disablement survived. Doctor retired the old install record. Inspection selected exactly one bundled plugin from the candidate package; after re-enabling, keyed inference passed.Provider operations used an isolated loopback OpenAI-compatible fixture. No real model download/inference or desktop-app detection is claimed. The archive was reused after standalone native validation; the original packer exceeded its outer five-minute limit during cleanup. A disposable harness path comparison was corrected for macOS path aliases, then continued from the recorded post-Doctor state without reinstalling.
This addresses the installed-package/upgrade evidence and owner-decision requests in the existing ClawSweeper review. The reviewed source head is unchanged, so no redundant re-review was requested.
CI qualification
CI attempt 3 remains red only on two inherited stale assertions: realtime instruction text and the history-summary prefix. Their test and producer blobs are identical at baseline
3778fe8ac53c72f7c9b279cc9918611986641019and tested merge0fcec150ee4211f3818be831affbc85cfe3b8950. These are tracked separately from this packaging change and are presented to the native inherited-CI gate; CI is not described as green.The earlier worker dispatch timeout is retained as an unexplained historical result. One exact-code diagnostic Linux/Bun rerun executed and passed both actual cases: allowed (55.114s) and cancelled-before-successor (51.013s), with no code or timeout changes. It is not included in inherited-failure attribution.
Follow-ups outside this PR: update the two stale CI assertions; investigate the package wrapper's aggregate validation deadline on slow filesystems. Neither changes the reviewed provider distribution boundary.