#Lossless-claw not working

1 messages · Page 1 of 1 (latest)

placid tree
#

After upgrading to 2026.5.7 on Ubuntu 24.04, I'm seeing this error:

It was this:

  • lossless-claw failed to load because it couldn’t find the package @mariozechner/pi-coding-agent
  • exact error: Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@mariozechner/pi-coding-agent' imported from .../lossless-claw/dist/index.js

There was also a follow-up warning:

  • 1 plugin(s) failed to initialize (load: lossless-claw)

Source: /tmp/openclaw/openclaw-2026-05-08.log lines 1306, 1324, 1325, 1328, 1356, 1357.

gusty marshBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> âś… Mark Solution

bitter fulcrum
#

You likely need to update the version of LCM. Run the following…
openclaw plugins update @martian-engineering/lossless-claw
openclaw gateway restart

If that doesn’t does the trick, it should, try the following npm install -g @mariozechner/pi-coding-agent

primal stagBOT
#

Yep — that error usually means the installed Lossless Claw package is older than the dependency it now expects.

Try:

openclaw plugins update @martian-engineering/lossless-claw
openclaw gateway restart

If it still fails after that, install the missing helper package globally and restart again:

npm install -g @mariozechner/pi-coding-agent
openclaw gateway restart

If it’s still unhappy, please run:

#
openclaw --version
openclaw plugins doctor
openclaw status --all

and paste the relevant output here.

placid tree
#

already at the latest version:
$ openclaw plugins update @martian-engineering/lossless-claw
lossless-claw is up to date (0.9.4).

primal stagBOT
#

Got it — then the plugin itself is current, so I’d try the fallback dependency install next:

npm install -g @mariozechner/pi-coding-agent
openclaw gateway restart

If it still fails after that, please paste the exact error plus:

openclaw --version
openclaw plugins inspect @martian-engineering/lossless-claw
openclaw plugins doctor

That’ll tell us whether OpenClaw can see the plugin cleanly and whether it’s failing on the Pi coding agent binary/package path.

placid tree
#

$ npm install -g @mariozechner/pi-coding-agent
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
npm warn deprecated @mariozechner/pi-agent-core@0.73.1: please use @earendil-works/pi-agent-core instead going forward
npm warn deprecated @mariozechner/pi-tui@0.73.1: please use @earendil-works/pi-tui instead going forward
npm warn deprecated @mariozechner/pi-ai@0.73.1: please use @earendil-works/pi-ai instead going forward
npm warn deprecated @mariozechner/pi-coding-agent@0.73.1: please use @earendil-works/pi-coding-agent instead going forward

primal stagBOT
#

Those are npm deprecation warnings, not necessarily install failures. If the command exited back to your prompt without an npm ERR!, it probably installed successfully.

Next run:

openclaw gateway restart

Then try Lossless Claw again. If it still fails, paste the new error plus:

openclaw --version
openclaw plugins doctor
openclaw plugins inspect @martian-engineering/lossless-claw

The version bit matters because plugin/runtime mismatches can look weird. General troubleshooting refs: https://docs.openclaw.ai/help/faq and https://docs.openclaw.ai/gateway/troubleshooting

placid tree
#

openclaw --version
openclaw plugins doctor
openclaw plugins inspect @martian-engineering/lossless-claw
OpenClaw 2026.5.7 (eeef486)

🦞 OpenClaw 2026.5.7 (eeef486) — I speak fluent bash, mild sarcasm, and aggressive tab-completion energy.

22:12:47 [plugins] lossless-claw failed to load from /home/klawlicula/.openclaw/npm/node_modules/@martian-engineering/lossless-claw/dist/index.js: Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@mariozechner/pi-coding-agent' imported from /home/klawlicula/.openclaw/npm/node_modules/@martian-engineering/lossless-claw/dist/index.js
Plugin errors:

  • lossless-claw [load]: Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@mariozechner/pi-coding-agent' imported from /home/klawlicula/.openclaw/npm/node_modules/@martian-engineering/lossless-claw/dist/index.js (/home/klawlicula/.openclaw/npm/node_modules/@martian-engineering/lossless-claw/dist/index.js)

Diagnostics:

  • lossless-claw: failed to load plugin: Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@mariozechner/pi-coding-agent' imported from /home/klawlicula/.openclaw/npm/node_modules/@martian-engineering/lossless-claw/dist/index.js

Docs: docs.openclaw.ai/plugin

🦞 OpenClaw 2026.5.7 (eeef486) — I'm like tmux: confusing at first, then suddenly you can't live without me.

@martian-engineering/lossless-claw
id: lossless-claw

Status: loaded
Format: openclaw
Source: ~/.openclaw/npm/node_modules/@martian-engineering/lossless-claw/dist/index.js
Origin: config
Version: 0.9.4
Shape: non-capability
Capability mode: none
Legacy before_agent_start: no

Install:
Source: npm
Spec: @martian-engineering/lossless-claw
Install path: ~/.openclaw/npm/node_modules/@martian-engineering/lossless-claw
Recorded version: 0.9.4
Installed at: 2026-05-07T00:24:53.881Z

primal stagBOT
#

Ah, this explains it. The global install went into your system/global npm prefix, but OpenClaw is loading the plugin from its managed plugin root:

~/.openclaw/npm/node_modules/...

Node won’t resolve a package from your global npm install there. Install the missing package into OpenClaw’s managed npm root instead:

npm install --prefix "$HOME/.openclaw/npm" @mariozechner/pi-coding-agent
openclaw gateway restart
openclaw plugins doctor

Optional sanity check:

npm ls --prefix "$HOME/.openclaw/npm" @mariozechner/pi-coding-agent
#

If that fixes it, this is probably a packaging/dependency issue in lossless-claw 0.9.4: it imports @mariozechner/pi-coding-agent, but that dependency isn’t present beside the plugin. 🦞

placid tree
#

Nice!

plugin runtime config.loadConfig() is deprecated (runtime-config-load-write); use config.current().
No plugin issues detected.
klawlicula@megatron:~$ npm ls --prefix "$HOME/.openclaw/npm" @mariozechner/pi-coding-agent
npm@ /home/klawlicula/.openclaw/npm
├── @mariozechner/pi-coding-agent@0.73.1
└─┬ @martian-engineering/lossless-claw@0.9.4
├── @mariozechner/pi-coding-agent@0.73.1 deduped
└─┬ openclaw@2026.5.7
└── @mariozechner/pi-coding-agent@0.73.0

primal stagBOT
#

Nice, that’s the important bit: No plugin issues detected. 🎉

The config.loadConfig() is deprecated line is a warning from the plugin/runtime API, not your setup breaking. Lossless Claw’s maintainer should eventually switch that call to config.current(), but you’re past the missing-package failure now.

If this fixed the thread, please right-click the solution message → Apps → ✅ Mark Solution so Answer Overflow indexes it for the next person.