Skip to content

refactor(plugins): replace node-llama-cpp with managed llama-server - #123105

Merged
steipete merged 1 commit into
mainfrom
rebuild/external-llama-server
Aug 13, 2026
Merged

steipete merged 1 commit into
mainfrom
rebuild/external-llama-server

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

OpenClaw's local-model onboarding and local embeddings were built on the bundled node-llama-cpp in-process runtime. That wrapper pins an old llama.cpp build (b10068), so newer open-weight models — most recently Meta's Muse Glimmer 30B, whose architecture support merged upstream as llama.cpp PR #26841 — fail to load with unknown model architecture, and OpenClaw inherits the wrapper's full maintenance surface (about 61K lines of wrapper TypeScript plus native build glue) for functionality llama.cpp already ships as llama-server. Operators choosing the built-in local-model path were locked to the wrapper's release cadence and could not run current GGUF models.

Why This Change Was Made

Replaces the in-process wrapper with a managed external llama-server: the llama.cpp plugin now downloads a pinned, SHA-256-verified upstream llama-server release (b10357) for the operator's platform, downloads verified GGUF model artifacts, writes an INI model preset (chat + embedding), and lets OpenClaw's existing localService supervisor own the process lifecycle (lease refcounting, health polling, idle stop, restart) — the same supervisor other managed local services already use. Chat and embeddings talk to the server over the OpenAI-compatible HTTP API on loopback. This removes the entire wrapper layer (inference provider, runtime coordinator, native build orchestration, embedding worker host/child processes) instead of adding a second path, per the one-canonical-flow rule. Production LOC delta is −1,303 (tests +546/−3,175). Onboarding keeps the same guided flow, consent prompt, and progress reporting; only the engine underneath changes. The memory-core merge preserves main's newer MemorySearchOrchestration hierarchy; the narrow local-embedding degradation behavior moved to its current lifecycle owner.

User Impact

Operators running openclaw configure / first-run onboarding for the llama.cpp provider get the same one-prompt setup (verified download, ~5 GB default chat model + ~0.3 GB embedding model, RAM-floor check), now backed by current upstream llama.cpp — including support for new architectures like Muse Glimmer. Local memory embeddings keep working with unchanged index identity (legacy cache paths remain aliases, so no re-indexing). No config migration is required; stale node-llama-cpp config keys are normalized through the plugin's doctor contract.

Evidence

  • End-to-end managed-runtime proof (isolated state dir): guided setup installs the verified server and models; chat completes through the OpenAI-compatible endpoint; an embedded agent run executes a real read-tool call; embeddings return 768-dimensional vectors; /health, /models, /props, /metrics all report ready; PID reuse across calls; idle shutdown and clean restart; missing binary/model produce actionable doctor-style diagnostics.
  • Focused tests: 24 llama-cpp extension tests pass; 1,084 memory-core tests pass across the contested merge area (node scripts/run-vitest.mjs).
  • Full remote changed gate (OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs): all stages green — format, npm lock guard (94 pkgs), doctor contract declaration/closure guard, bundled channel metadata, Plugin SDK API contract manifest, SDK package exports + surface budget, plugin boundaries, dead-export scan (0), database-first legacy-store guard, runtime sidecar loader guard, typecheck all, lint (0 errors), import cycles (0). Testbox run: https://github.com/openclaw/openclaw/actions/runs/31685190317
  • Plugin SDK API baseline: regenerated in the current per-entrypoint JSON-directory format; drift verified as closureHash-only rotation (no added/removed exports, no declaration changes) — the deleted wrapper modules were inside the agent-harness export closures.
  • Codex autoreview on the migration: clean, no accepted/actionable findings.

@clawsweeper

clawsweeper Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime extensions: memory-core Extension: memory-core cli CLI command changes scripts Repository scripts commands Command implementations extensions: llama-cpp size: XL maintainer Maintainer-authored PR labels Aug 13, 2026
@steipete
steipete marked this pull request as ready for review August 13, 2026 09:34
@steipete
steipete requested review from a team as code owners August 13, 2026 09:34
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Aug 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/llama-cpp/package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of @openclaw/openclaw-secops.

  • Current SHA: bf94ccede0071310b35a4ccd9c00f1ae4e32be8a
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

@steipete
steipete force-pushed the rebuild/external-llama-server branch from 1647f59 to ae8c4d6 Compare August 13, 2026 09:51
@clawsweeper clawsweeper Bot added 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. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 13, 2026
@clawsweeper

clawsweeper Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 13, 2026, 7:34 PM ET / 23:34 UTC.

ClawSweeper review

What this changes

The PR replaces the llama.cpp plugin’s in-process node-llama-cpp runtime with a verified, supervised loopback llama-server for local chat and embeddings.

Merge readiness

⚠️ Ready for maintainer review - 6 items remain

Keep open for maintainer review. The current PR diff still removes the embedding export identified by the prior P1 review as necessary for released installed llama.cpp plugins, while the required current-tree, scoped-policy, and Codex-boundary checks could not run because the read-only sandbox fails before executing commands.

Priority: P1
Reviewed head: bf94ccede0071310b35a4ccd9c00f1ae4e32be8a
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The proposed canonical migration has substantial stated validation, but a documented P1 installed-plugin compatibility risk remains unresolved.
Proof confidence 🌊 off-meta tidepool Not applicable: The repository context identifies the author as a member; the external-contributor proof gate does not apply, though the stated end-to-end evidence remains useful supplemental validation.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The repository context identifies the author as a member; the external-contributor proof gate does not apply, though the stated end-to-end evidence remains useful supplemental validation.
Evidence reviewed 4 items Prior unresolved compatibility review: The latest completed ClawSweeper review identifies a P1: released installed llama.cpp plugin versions can import the SDK re-export removed by this migration, causing entrypoint evaluation to fail before doctor migration can run.
Current-head diff retains export removal: The supplied current-head PR diff removes createLocalEmbeddingProvider from the memory-host SDK public entrypoint, so the previous installed-plugin compatibility concern remains visible in the proposed patch.
Dependency and security surface: The current-head diff adds managed binary download and archive handling for llama-server, directly importing jszip, tar, and the SSRF-guarded fetch helper.
Findings 1 actionable finding [P1] Retain compatibility for installed llama.cpp plugins
Security Needs attention Review managed binary acquisition before merge: The new plugin downloads, verifies, extracts, and executes llama-server artifacts; current-head inspection is needed to validate archive containment, integrity verification, and the loopback-only process boundary.

How this fits together

The llama.cpp plugin provides OpenClaw’s local model and local embedding provider. Guided setup prepares server and model artifacts, the Gateway supervises the process, and chat plus memory clients use its loopback OpenAI-compatible endpoints.

flowchart LR
  A[Guided setup] --> B[llama.cpp plugin]
  B --> C[Verified server and model artifacts]
  C --> D[Gateway local-service supervisor]
  D --> E[Loopback llama-server]
  E --> F[Chat provider]
  E --> G[Memory embeddings]
Loading

Decision needed

Question Recommendation
Should released installed llama.cpp plugin versions retain a deprecated SDK compatibility bridge while the bundled plugin migrates to managed llama-server? Retain a temporary bridge: Preserve the removed export or an equivalent loadable compatibility module, add an installed-plugin upgrade test, and retire it through a named deprecation path.

Why: The prior review identifies a concrete installed-plugin entrypoint failure, while deciding whether to preserve or intentionally retire that public compatibility surface requires maintainer ownership of the plugin SDK contract.

Before merge

  • Retain compatibility for installed llama.cpp plugins (P1) - The branch still removes createLocalEmbeddingProvider from this public SDK entrypoint. The prior review established that released installed llama.cpp plugins import it, so they can fail while their ESM entrypoint evaluates—before the new doctor migration can normalize configuration. Keep a deprecated loadable bridge or prove a released-plugin upgrade path.
  • Resolve security concern: Review managed binary acquisition before merge - The new plugin downloads, verifies, extracts, and executes llama-server artifacts; current-head inspection is needed to validate archive containment, integrity verification, and the loopback-only process boundary.
  • Resolve merge risk (P1) - Released independently installed llama.cpp plugin versions may fail during ESM entrypoint evaluation if they import the removed SDK export, before the doctor migration can repair configuration.
  • Resolve merge risk (P1) - The new verified-download and archive-extraction execution path needs source-level security review at the current head.
  • Resolve merge risk (P1) - A direct Codex-extension test configuration change creates an affirmative Codex-boundary signal, but sibling ../codex inspection could not be performed because the sandbox cannot run read-only commands.

Findings

  • [P1] Retain compatibility for installed llama.cpp plugins — packages/memory-host-sdk/src/engine-embeddings.ts:16
  • [medium] Review managed binary acquisition before merge
Agent review details

Security

Needs attention: The managed binary-download and archive-extraction path is security-sensitive and could not receive the required current-head source review in this environment.

Review metrics

Metric Value Why it matters
Production versus test delta production −1,303; tests −2,629 (PR body claim) The migration substantially removes the former native-wrapper path, but the remaining compatibility and upgrade boundary needs direct proof.
Legacy provider transition 1 retired local URL migration added The new doctor rule rewrites the prior local runtime URL into managed local-service configuration, making upgrade behavior merge-relevant.

Stored data model

Persistent data-model change detected: migration/backfill/repair: extensions/llama-cpp/doctor-contract-api.test.ts, migration/backfill/repair: extensions/llama-cpp/doctor-contract-api.ts, migration/backfill/repair: src/commands/doctor-memory-search.test.ts, migration/backfill/repair: src/commands/doctor-memory-search.ts, migration/backfill/repair: src/gateway/server-methods/doctor.test.ts, migration/backfill/repair: src/gateway/server-methods/doctor.ts, and 29 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Prove a safe installed-plugin upgrade (recommended)
    Restore a deprecated loadable bridge or demonstrate that released external llama.cpp plugins do not import the removed SDK symbol before merging.
  2. Adopt a documented breaking transition
    Maintainers may intentionally retire the SDK export only with an explicit external-plugin migration and release plan.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Retain the installed-plugin compatibility bridge and add an upgrade regression proving released llama.cpp plugin entrypoints load before doctor migration.

Technical review

Best possible solution:

Keep one canonical managed-server runtime, but retain a deprecated loadable SDK bridge until released external llama.cpp plugin versions have a tested upgrade path; then remove it in a declared compatibility transition.

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

Unclear: the prior review supplies a source-level installed-plugin failure path, but the current head and a released-plugin fixture could not be executed or inspected in this sandbox.

Is this the best way to solve the issue?

No: moving to one managed server path is coherent, but removing the loadable installed-plugin SDK path before proving the released-plugin upgrade boundary is not the safest implementation.

Full review comments:

  • [P1] Retain compatibility for installed llama.cpp plugins — packages/memory-host-sdk/src/engine-embeddings.ts:16
    The branch still removes createLocalEmbeddingProvider from this public SDK entrypoint. The prior review established that released installed llama.cpp plugins import it, so they can fail while their ESM entrypoint evaluates—before the new doctor migration can normalize configuration. Keep a deprecated loadable bridge or prove a released-plugin upgrade path.
    Confidence: 0.82

Overall correctness: patch is incorrect
Overall confidence: 0.75

AGENTS.md: unclear because the file could not be read completely.

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

Labels

Label justifications:

  • P1: A broken upgrade path would disable existing local-model and local-embedding workflows.
  • merge-risk: 🚨 compatibility: The branch removes a public SDK export that the prior review states released installed llama.cpp plugins import.
  • merge-risk: 🚨 security-boundary: The plugin now downloads, verifies, extracts, and runs an upstream local server binary.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The repository context identifies the author as a member; the external-contributor proof gate does not apply, though the stated end-to-end evidence remains useful supplemental validation.

Evidence

Security concerns:

  • [medium] Review managed binary acquisition before merge
    The new plugin downloads, verifies, extracts, and executes llama-server artifacts; current-head inspection is needed to validate archive containment, integrity verification, and the loopback-only process boundary.
    Confidence: 0.76

What I checked:

  • Prior unresolved compatibility review: The latest completed ClawSweeper review identifies a P1: released installed llama.cpp plugin versions can import the SDK re-export removed by this migration, causing entrypoint evaluation to fail before doctor migration can run. (packages/memory-host-sdk/src/engine-embeddings.ts:16, 4a8ee9e82a7c)
  • Current-head diff retains export removal: The supplied current-head PR diff removes createLocalEmbeddingProvider from the memory-host SDK public entrypoint, so the previous installed-plugin compatibility concern remains visible in the proposed patch. (packages/memory-host-sdk/src/engine-embeddings.ts:16, bf94ccede007)
  • Dependency and security surface: The current-head diff adds managed binary download and archive handling for llama-server, directly importing jszip, tar, and the SSRF-guarded fetch helper. (extensions/llama-cpp/src/llama-server-install.ts:1, bf94ccede007)
  • Repository inspection unavailable: The sandbox failed before even a read-only working-directory and line-count command could execute, so current main, git history, scoped AGENTS.md files, maintainer notes, and the required sibling Codex source boundary could not be inspected.

Likely related people:

  • steipete: Repository context identifies steipete as the member author of this focused runtime migration; current-main ownership history could not be read because repository commands fail in the sandbox. (role: proposed migration author and likely decision owner; confidence: low; commits: bf94ccede007; files: extensions/llama-cpp, packages/memory-host-sdk/src/engine-embeddings.ts)

Rank-up moves

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

  • Restore or otherwise preserve the released installed-plugin import path.
  • Add an upgrade regression using a released external llama.cpp plugin fixture.
  • Complete current-head security inspection of the downloader and archive extraction path.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

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

History

Review history (6 earlier review cycles)
  • reviewed 2026-08-13T10:22:12.738Z sha ae8c4d6105d7e727da3c7dbee5daf6e7b007835d :: found issues before merge. :: [P1] Preserve the SDK export for installed llama.cpp plugins
  • reviewed 2026-08-13T11:22:30.767Z sha 952d0cf :: found issues before merge. :: [P1] Preserve the SDK export for installed llama.cpp plugins
  • reviewed 2026-08-13T19:37:25.776Z sha ae249e2 :: found issues before merge. :: [P1] Preserve the SDK export for installed llama.cpp plugins
  • reviewed 2026-08-13T21:08:34.018Z sha ae249e2 :: found issues before merge. :: [P1] Preserve compatibility for installed llama.cpp plugins
  • reviewed 2026-08-13T22:16:22.168Z sha 32813d697e9d6cffe18104f875c237f44d009973 :: found issues before merge. :: [P1] Preserve compatibility for installed llama.cpp plugins
  • reviewed 2026-08-13T23:15:44.365Z sha 4a8ee9e82a7c4c4e5b5c2a7ba0694aad6eb3a2bd :: found issues before merge. :: [P1] Retain compatibility for installed llama.cpp plugins

@steipete
steipete force-pushed the rebuild/external-llama-server branch from ae8c4d6 to 952d0cf Compare August 13, 2026 10:32
@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 Aug 13, 2026
@steipete
steipete force-pushed the rebuild/external-llama-server branch 2 times, most recently from 5d0143e to ae249e2 Compare August 13, 2026 13:26
Move llama.cpp chat and local embeddings onto a verified externally managed llama-server runtime. Remove the in-process native runtime, forked embedding workers, and node-llama-cpp dependency while preserving guided setup, local GGUF models, tool-capable agent runs, diagnostics, and operator docs.
@steipete
steipete force-pushed the rebuild/external-llama-server branch from 4a8ee9e to bf94cce Compare August 13, 2026 23:30
@steipete
steipete merged commit 1348387 into main Aug 13, 2026
258 of 260 checks passed
@steipete
steipete deleted the rebuild/external-llama-server branch August 13, 2026 23:58
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Aug 14, 2026
The doctor-contract closure guard forbids the SSRF barrel in the
doctor/legacy-setup closure (cold-loads DNS, proxy state, logging); the
static import landed with the managed llama-server switch (#123105) and
first fails when a PR selects the guard lane. Defer to a dynamic import at
download time per the guard's stated remedy.
steipete added a commit that referenced this pull request Aug 14, 2026
…123441)

* feat(codex): pass explicit skill selections as structured turn input

Thread OpenClaw-resolved explicit $skill selections through the reply
pipeline to the Codex app-server harness and emit them as structured
UserInput::Skill turn items when the Codex catalog (skills/list) knows the
same SKILL.md path. Codex then injects the skill natively and blocks its
text scanner from double-selecting the same name, while unmatched names
stay scannable for Codex-native-only skills and the prompt instruction
block keeps owning skills Codex cannot see. Catalog misses and RPC errors
fail open to the instruction path; the turn never fails on skill lookup.

Part of #123367

* fix(plugins): defer llama-cpp ssrf-runtime load out of the setup closure

The doctor-contract closure guard forbids the SSRF barrel in the
doctor/legacy-setup closure (cold-loads DNS, proxy state, logging); the
static import landed with the managed llama-server switch (#123105) and
first fails when a PR selects the guard lane. Defer to a dynamic import at
download time per the guard's stated remedy.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 14, 2026
…penclaw#123105)

Move llama.cpp chat and local embeddings onto a verified externally managed llama-server runtime. Remove the in-process native runtime, forked embedding workers, and node-llama-cpp dependency while preserving guided setup, local GGUF models, tool-capable agent runs, diagnostics, and operator docs.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 14, 2026
…penclaw#123441)

* feat(codex): pass explicit skill selections as structured turn input

Thread OpenClaw-resolved explicit $skill selections through the reply
pipeline to the Codex app-server harness and emit them as structured
UserInput::Skill turn items when the Codex catalog (skills/list) knows the
same SKILL.md path. Codex then injects the skill natively and blocks its
text scanner from double-selecting the same name, while unmatched names
stay scannable for Codex-native-only skills and the prompt instruction
block keeps owning skills Codex cannot see. Catalog misses and RPC errors
fail open to the instruction path; the turn never fails on skill lookup.

Part of openclaw#123367

* fix(plugins): defer llama-cpp ssrf-runtime load out of the setup closure

The doctor-contract closure guard forbids the SSRF barrel in the
doctor/legacy-setup closure (cold-loads DNS, proxy state, logging); the
static import landed with the managed llama-server switch (openclaw#123105) and
first fails when a PR selects the guard lane. Defer to a dynamic import at
download time per the guard's stated remedy.
@giladgd

giladgd commented Aug 16, 2026

Copy link
Copy Markdown

Hey @steipete, node-llama-cpp maintainer here.
Noticed this PR just now and I was curious what was missing from node-llama-cpp that motivated this change.

The mentioned model (Muse Glimme 30B) was already supported in node-llama-cpp by the time this PR was opened.
It looks like OpenClaw was pinned to an older version of node-llama-cpp and so it wasn't getting the latest update.

I think you may have an npm policy to skip module updates from the past few days, which could explain why you didn't see an update when running pnpm outdated.
For dependencies like node-llama-cpp it might be worth setting an exception so you could still get updates early.

Here are a few reasons why I think using node-llama-cpp in a node project is generally better than using llama server (and also why I still maintain and use it rather than moving to llama server as well):

  1. Updates come through npm, and a lot of effort is put into keeping the API stable across versions, so upgrading is generally very easy.
  2. It binds directly to llama.cpp, so you can control the lifecycle of models, contexts, and other resources in-process. You can scale things up and down on demand, and data flows faster and more efficiently (for example, large embedding vectors can be passed directly in-process which is way faster and more efficient than talking to another process for this). Having this kind of integration can have meaningful performance and efficiency benefits, particularly on low-end devices.
  3. It handles many edge cases involved in running llama.cpp on arbitrary end-user machines and making proper use of their hardware. For example, it can build from source when necessary instead of falling back to CPU, along with handling toolchain and platform edge cases, so it just works.
  4. If you need a newer llama.cpp release before a new node-llama-cpp version is shipped, you can run a single command that will take care of everything and set you up with the latest version. It's not guaranteed to work as well as the release node-llama-cpp ships with since it's untested, but it usually either works or just fails to compile (in which case you continue using the existing prebuilt binaries by default).

More generally, if there was something that node-llama-cpp couldn't do, or something that made it hard for you to use, I'd genuinely love to know about it. I'd rather fix those gaps for the benefit of everyone, which is mainly why I'm curious about this PR.

vincentkoc pushed a commit 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 #123105 it manages a `llama-server` and its only runtime dependency is `@openclaw/fs-safe`, which core already ships. Follows the Cloudflare pattern (#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.
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

agents Agent runtime and tooling app: web-ui App: web-ui cli CLI command changes commands Command implementations dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation extensions: llama-cpp extensions: memory-core Extension: memory-core gateway Gateway runtime maintainer Maintainer-authored PR 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. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants