Skip to content

feat: set up Llama and llama.cpp without installing a plugin first - #205986

Merged
vincentkoc merged 1 commit into
openclaw:mainfrom
erusev:llama-cpp-built-in
Nov 27, 2026
Merged

vincentkoc merged 1 commit into
openclaw:mainfrom
erusev:llama-cpp-built-in

Conversation

@erusev

@erusev erusev commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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 in openclaw onboard. LM Studio and Ollama are there out of the box.

User Impact

Llama and llama.cpp show up in openclaw onboard on 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 a llama-server instead, 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:check passes.
  • Focused tests pass: official-external-plugin-catalog, official-external-plugin-bundled-catalogs, official-external-plugin-repair-hints, bundled-plugin-metadata, provider-auth-choices, and the bundled-plugin-build-entries, bun-standalone-plugins, desktop-runtime-plugins, check-plugin-npm-runtime-builds, plugin-publication-artifact, npm-placeholder-publication, bundled-plugin-assets script tests.
  • collectSourceCheckoutPluginBuildEntries now classifies llama-cpp like lmstudio and cloudflare (in core, not isolated).
  • full-release-publication-admission.test.ts was not run locally (requires Bash 5+). Full build and packed-tarball verification are recorded below.
  • The doctor and memory install hints are unchanged -- they only show when the plugin isn't loaded.

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 6545a24e47f7efe0bdae9de34795dfd96ddfe948 on Darwin arm64 with Node 26.7.0 and pinned Bun 1.4.4-canary.1+191755ec1:

  • Full pnpm build passed; six focused build-entry/catalog/Doctor/metadata/repair-hint/manifest files passed (149 tests).
  • Native tarball integrity validation passed for SHA-256 1d53e9e02e722898bf19e1e195dc0d1c6b29fbfc5bd76e6b75ff8b4e57002ae8; its build metadata names this exact head.
  • Fresh installations exposed both Llama and llama.cpp setup choices without a separate plugin install. Explicit noninteractive endpoint setup and a provider operation passed for each.
  • Upgraded published OpenClaw 2026.11.10 with its external @openclaw/llama-cpp-provider installation 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 3778fe8ac53c72f7c9b279cc9918611986641019 and tested merge 0fcec150ee4211f3818be831affbc85cfe3b8950. 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.

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.
@clawsweeper

clawsweeper Bot commented Nov 26, 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 docs Improvements or additions to documentation scripts Repository scripts size: XS labels Nov 26, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 26, 2026
@clawsweeper

clawsweeper Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Bundle 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.

  • Before: The user installs @openclaw/llama-cpp-provider before selecting Llama in onboarding.
  • After: The user can select Llama directly in openclaw onboard.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The implementation is focused and consistent with existing owners, but required real-package behavior proof is absent and the distribution direction remains unapproved.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Users must discover and install an additional plugin before Llama or llama.cpp appears in onboarding.
Reason: Removing this setup step has clear convenience value, but changing the default distribution of an existing optional provider requires an owner decision.

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: 6545a24e47f7efe0bdae9de34795dfd96ddfe948
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should llama.cpp become an enabled, bundled provider in the default OpenClaw distribution?
  • Recommendation: Approve bundling: Include the existing lightweight provider using the current packaging mechanism, subject to package and upgrade verification.
  • Why: This changes the existing external-plugin distribution default; the cited Cloudflare repair preserved an existing default, and no owner approval of this new direction appears in this PR.

Before merge

  • Add real behavior proof - The body supplies focused test results and build-classification observations, but no installed-package onboarding or upgrade result; the linked Llama verification separately installs its plugin and does not exercise the changed distribution boundary. Redact IPs, API keys, phone numbers, and non-public endpoints from submitted proof. 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.

Findings

None.

Tests

  • Missing end-to-end proof: Provide redacted terminal output or a recording from the candidate packed OpenClaw installation showing Llama and llama.cpp onboarding without installing the plugin, a successful provider operation, and an upgrade from v2026.11.10 preserving an existing external installation, model selection, credentials, and explicit plugin disablement.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • External distribution and installation prerequisite changes intended behavior with a stated reason (3137110: The provider plugin owned node-llama-cpp so local embeddings survived root-package updates without returning the native dependency to core.)
  • Runtime dependency justification keeps the original intent (1348387: Managed llama-server replaced the in-process native wrapper; the current provider package confirms the heavy native dependency is gone, supporting the PR's stated reason for reconsidering distribution.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

PR surface

Docs -17, Config -1, Other +3. Total -15 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 7 11 28 -17
Config 1 0 1 -1
Generated 0 0 0 0
Other 1 3 0 +3
Total 9 14 29 -15

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Supply the installed-package onboarding and stable-upgrade evidence described in the proof assessment.

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.

Reviewed November 26, 2026, 9:31 AM ET / 14:31 UTC.

@vincentkoc vincentkoc self-assigned this Nov 26, 2026
@vincentkoc
vincentkoc merged commit f2f0f8f into openclaw:main Nov 27, 2026
356 of 366 checks passed
@vincentkoc

Copy link
Copy Markdown
Member

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 27, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XS 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.

2 participants