乐于分享
好东西不私藏

OpenClaw ——LiteLLM设置失败(3)

OpenClaw ——LiteLLM设置失败(3)

  1. openclaw onboard

Config warnings:- plugins.entries.qwen-portal-auth: plugin not found: qwen-portal-auth (stale config entry ignored; remove it from plugins config)

HTTP 401 authentication_error: The API Key appears to be invalid or may have expired. Please verify your credentials and try again.   

[Bootstrap pending]                                                                                                                                                                              Please read BOOTSTRAP.md from the workspace and follow it before replying normally.                                                                                                              If this run can complete the BOOTSTRAP.md workflow, do so.                                              If it cannot, explain the blocker briefly, continue with any bootstrap steps that are still possible here, and offer the simplest next step.                                                                   Do not pretend bootstrap is complete when it is not.                                                  Do not use a generic first greeting or reply normally until after you have handled BOOTSTRAP.md.                                                                                                               Your first user-visible reply for a bootstrap-pending workspace must follow BOOTSTRAP.md, not a generic greeting. 

我在干嘛,问题还是那个问题

(base) xxxxx@xxxxx-ubuntu24:~/openclaw$ openclaw onboard 
Config warnings:
- plugins.entries.qwen-portal-auth: plugin not found: qwen-portal-auth (stale config entry ignored; remove it from plugins config)

.............
◇  Config warnings ──────────────────────────────────────────────────────────────────────╮
............
├────────────────────────────────────────────────────────────────────────────────────────╯
............       

┌  OpenClaw setup

◇  Security disclaimer ──────────────────────────────────────────────────────────────────────╮
............
├────────────────────────────────────────────────────────────────────────────────────────────╯

◇  I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue?
│  Yes

◇  Setup mode
│  QuickStart

◇  Existing config detected ─────────╮
│                                    │
│  workspace: ~/.openclaw/workspace  │
............
│  skills.nodeManager: pnpm          │
│                                    │
├────────────────────────────────────╯

◇  Config handling
│  Use existing values

◇  QuickStart ─────────────────────────────╮
............
├──────────────────────────────────────────╯

◇  Model/auth provider
│  LiteLLM

◇  LiteLLM ────────────────────────────────────────────────────────╮
│                                                                  │
│  LiteLLM provides a unified API to 100+ LLM providers.           │
│  Get your API key from your LiteLLM proxy or https://litellm.ai  │
│  Default proxy runs on http://localhost:4000                     │
│                                                                  │
├──────────────────────────────────────────────────────────────────╯

◇  Enter LiteLLM API key
│  sk-8......A

◇  Model configured ─────────────────────────────╮
│                                                │
│  Default model set to litellm/claude-opus-4-6  │
│                                                │
├────────────────────────────────────────────────╯

◇  Default model
│  Keep current (litellm/claude-opus-4-6)

◇  How channels work ───────────────────────────────────────────────────────────────────────╮
............
├───────────────────────────────────────────────────────────────────────────────────────────╯

◇  Select channel (QuickStart)
│  Skip for now
............
Config overwrite: /home/xxxxx/.openclaw/openclaw.json (sha256 9d6e852e501dcc99c8f07aa17c9a26e3948aa7cc6eedcfd5c62c6b2ab8b8a0fb -> d8ec6beff1749d1152afaec603278d121c64b747809b88fa96ffb234c8f3efe7, backup=/home/xxxxx/.openclaw/openclaw.json.bak)
............
Updated ~/.openclaw/openclaw.json
Workspace OK: ~/.openclaw/workspace
Sessions OK: ~/.openclaw/agents/main/sessions

◇  Web search ─────────────────────────────────────────────────────────────────╮
............
├──────────────────────────────────────────────────────────────────────────────╯

◇  Search provider
│  Skip for now

◇  Skills status ─────────────╮
............
├─────────────────────────────╯

◇  Configure skills now? (recommended)
│  No

◇  Hooks ──────────────────────────────────────────────────────────────────╮
............
├──────────────────────────────────────────────────────────────────────────╯

◇  Enable hooks?
│  🚀 boot-md, 📝 command-logger, 💾 session-memory

◇  Hooks Configured ─────────────────────────────────────────╮
│                                                            │
│  Enabled 3 hooks: boot-md, command-logger, session-memory  │
............
├────────────────────────────────────────────────────────────╯
............
Config overwrite: /home/xxxxx/.openclaw/openclaw.json (sha256 d8ec6beff1749d1152afaec603278d121c64b747809b88fa96ffb234c8f3efe7 -> 24e15e6564253566021773afb5b45cc4288828c9982992628c8b64aa9fd4f21b, backup=/home/xxxxx/.openclaw/openclaw.json.bak)
............

◇  Gateway service runtime ────────────────────────────────────────────╮
............
├──────────────────────────────────────────────────────────────────────╯

◇  Gateway service already installed
│  Restart

◒  Restarting Gateway service…Restarted systemd service: openclaw-gateway.service
◇  Gateway service restarted.

◇  
Agents: main (default)
Heartbeat interval: 30m (main)
Session store (main): /home/xxxxx/.openclaw/agents/main/sessions/sessions.json (1 entries)
- agent:main:main (16m ago)

◇  Optional apps ────────────────────────╮
............
├────────────────────────────────────────╯

◇  Control UI ─────────────────────────────────────────────────────────────────────╮
............
├──────────────────────────────────────────────────────────────────────────────────╯

◇  Start TUI (best option!) ─────────────────────────────────╮
............
├────────────────────────────────────────────────────────────╯

◇  Token ────────────────────────────────────────────────────────────────────────────────────╮
............
├────────────────────────────────────────────────────────────────────────────────────────────╯

◇  How do you want to hatch your bot?
│  Hatch in Terminal (recommended)
............
............

 openclaw tui - local embedded - agent main - session main

 session agent:main:main                                                                       

 Wake up, my friend!   

HTTP 401 authentication_error: The API Key appears to be invalid or may have expired. Please verify your credentials and try again.       

............

[Bootstrap pending]                                                                                                                                                                             
Please read BOOTSTRAP.md from the workspace and follow it before replying normally.                                                                                                             
If this run can complete the BOOTSTRAP.md workflow, do so.                                             
If it cannot, explain the blocker briefly, continue with any bootstrap steps that are still possible here, and offer the simplest next step.                                                                  
Do not pretend bootstrap is complete when it is not.                                                 
Do not use a generic first greeting or reply normally until after you have handled BOOTSTRAP.md.                                                                                                              
Your first user-visible reply for a bootstrap-pending workspace must follow BOOTSTRAP.md, not a generic greeting.                                                                                             
............
  1. openclaw uninstall 最终取消了,因为我担心在openclaw目录下卸载不干净。
(base) xxxxx@xxxxx-ubuntu24:~/openclaw$ openclaw uninstall
............

■  Uninstall which components?
│  Gateway service, State + config, Workspace

└  Uninstall cancelled.

在瞎折腾的路上一去不复返

  1. openclaw uninstall

CLI still installed. Remove via npm/pnpm if desired.

(base) xxxxx@xxxxx-ubuntu24:~$ openclaw uninstall
............
◇  Uninstall which components?
│  Gateway service, State + config, Workspace

◇  Proceed with uninstall?
│  Yes
.............
Recommended first: openclaw backup create
Stopped systemd service: openclaw-gateway.service
Removed systemd service: /home/xxxxx/.config/systemd/user/openclaw-gateway.service
Removed ~/.openclaw
Removed ~/.openclaw/workspace
CLI still installed. Remove via npm/pnpm if desired.
  1. openclaw gateway uninstall不知道从哪里粘贴的命令瞎搞
(base) xxxxx@xxxxx-ubuntu24:~$ openclaw gateway uninstall
............
Systemd service not found at /home/xxxxx/.config/systemd/user/openclaw-gateway.service
  1. pnpm remove -g openclaw
(base) xxxxx@xxxxx-ubuntu24:~$ pnpm remove -g openclaw
 ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND  No package.json (or package.yaml, or package.json5) was found in"/home/xxxxx/.local/share/pnpm/global/5".
  1. npm rm -g openclaw
(base) xxxxx@xxxxx-ubuntu24:~$ npm rm -g openclaw
removed 821 packages in 2s
  1. openclaw uninstall --all --yes --non-interactive
(base) xxxxx@xxxxx-ubuntu24:~$ openclaw uninstall --all --yes --non-interactive
bash: /home/xxxxx/.nvm/versions/node/v24.14.0/bin/openclaw: 没有那个文件或目录
  1. openclaw gateway stop
(base) xxxxx@xxxxx-ubuntu24:~$ openclaw gateway stop
bash: /home/xxxxx/.nvm/versions/node/v24.14.0/bin/openclaw: 没有那个文件或目录
  1. rm -rf ~/.openclaw/workspace
(base) xxxxx@xxxxx-ubuntu24:~$ rm -rf ~/.openclaw/workspace
(base) xxxxx@xxxxx-ubuntu24:~$ cd openclaw/
(base) xxxxx@xxxxx-ubuntu24:~/openclaw$ ls
AGENTS.md        dist                        docs              LICENSE              patches              SECURITY.md      tsconfig.json                 vitest.config.ts             zizmor.yml
appcast.xml      docker-compose.yml          docs.acp.md       litellm_config.yaml  pnpm-lock.yaml       setup-podman.sh  tsconfig.plugin-sdk.dts.json  vitest.e2e.config.ts
apps             Dockerfile                  extensions        node_modules         pnpm-workspace.yaml  skills           tsdown.config.ts              vitest.extensions.config.ts
assets           Dockerfile.sandbox          fly.private.toml  openclaw.mjs         pyproject.toml       src              ui                            vitest.gateway.config.ts
CHANGELOG.md     Dockerfile.sandbox-browser  fly.toml          openclaw.podman.env  README.md            Swabble          vendor                        vitest.live.config.ts
CLAUDE.md        Dockerfile.sandbox-common   git-hooks         package.json         render.yaml          test             VISION.md                     vitest.scoped-config.ts
CONTRIBUTING.md  docker-setup.sh             knip.config.ts    packages             scripts              test-fixtures    vitest.channels.config.ts     vitest.unit.config.ts
(base) xxxxx@xxxxx-ubuntu24:~/openclaw$ rm -rf ~/.openclaw/workspace
(base) xxxxx@xxxxx-ubuntu24:~/openclaw$ npm rm -g openclaw
up to date in 119ms
(base) xxxxx@xxxxx-ubuntu24:~/openclaw$ cd ~/.openclaw/
bash: cd: /home/xxxxx/.openclaw/: 没有那个文件或目录
.........
(base) xxxxx@xxxxx-ubuntu24:~$ rm -rf openclaw/
  1. git clone https://github.com/openclaw/openclaw.git
(base) xxxxx@xxxxx-ubuntu24:~$ cd /media/xxxxx/MyDisk
(base) xxxxx@xxxxx-ubuntu24:/media/xxxxx/MyDisk$ git clone https://github.com/openclaw/openclaw.git
正克隆到 'openclaw'...
remote: Enumerating objects: 464733, done.
remote: Counting objects: 100% (1080/1080), done.
remote: Compressing objects: 100% (435/435), done.
remote: Total 464733 (delta 729), reused 733 (delta 645), pack-reused 463653 (from 2)
接收对象中: 100% (464733/464733), 537.66 MiB | 11.00 MiB/s, 完成.
处理 delta 中: 100% (311973/311973), 完成.
正在更新文件: 100% (15933/15933), 完成.
(base) xxxxx@xxxxx-ubuntu24:/media/xxxxx/MyDisk$ cd openclaw/
  1. pnpm install && pnpm build && pnpm ui:build
(base) xxxxx@xxxxx-ubuntu24:/media/xxxxx/MyDisk/openclaw$ pnpm install && pnpm build && pnpm ui:build
Scope: all 114 workspace projects
Lockfile is up to date, resolution step is skipped
Packages: +1270
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Downloading koffi@2.16.1: 7.27 MB/7.27 MB, done
Downloading @rolldown/binding-linux-x64-gnu@1.0.0-rc.17: 9.39 MB/9.39 MB, done
Downloading @oxlint/binding-linux-x64-gnu@1.61.0: 5.72 MB/5.72 MB, done
Downloading @typescript/native-preview-linux-x64@7.0.0-dev.20260423.1: 9.99 MB/9.99 MB, done
Downloading pdfjs-dist@5.6.205: 10.38 MB/10.38 MB, done
 WARN  Tarball download average speed 31 KiB/s (size 64 KiB) is below 50 KiB/s: https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz (GET)
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /media/xxxxx/MyDisk/.pnpm-store/v10
  Virtual store is at:             node_modules/.pnpm
Downloading ogg-opus-decoder@1.7.3: 6.87 MB/6.87 MB, done
............
 WARN  GET https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz error (ECONNRESET). Will retry in 10 seconds. 2 retries left.
Progress: resolved 0, reused 0, downloaded 1225, added 1270, done
node_modules/protobufjs: Running postinstall script, donein 142ms
............
. preinstall$ node scripts/preinstall-package-manager-warning.mjs
└─ Done in 52ms
. postinstall$ node scripts/postinstall-bundled-plugins.mjs
└─ Done in 84ms
. prepare$ command -v git >/dev/null 2>&1 && git rev-parse --is-inside-work-tree >/dev/null 2>&1 && git config core.hooksPath git-hooks || exit 0
└─ Done in 54ms
╭ Warning ───────────────────────────────────────────────────────────────────────────────────╮
│                                                                                            │
│   Ignored build scripts: @discordjs/opus@0.10.0.                                           │
│   Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts.   │
│                                                                                            │
╰────────────────────────────────────────────────────────────────────────────────────────────╯
Done in 3m 23.5s using pnpm v10.33.0

> openclaw@2026.4.24 build /media/xxxxx/MyDisk/openclaw
> node scripts/build-all.mjs

[build-all] canvas:a2ui:bundle

> openclaw@2026.4.24 canvas:a2ui:bundle /media/xxxxx/MyDisk/openclaw
> node scripts/bundle-a2ui.mjs

A2UI bundle up to date; skipping.
[build-all] tsdown
[build-all] runtime-postbuild
[build-all] build-stamp
[build-all] build:plugin-sdk:dts

> openclaw@2026.4.24 build:plugin-sdk:dts /media/xxxxx/MyDisk/openclaw
> tsgo -p tsconfig.plugin-sdk.dts.json

[build-all] write-plugin-sdk-entry-dts
[build-all] check-plugin-sdk-exports
OK: All 4 required plugin-sdk exports verified.
[build-all] canvas-a2ui-copy
[build-all] copy-hook-metadata
[copy-hook-metadata] Copied 4 hook metadata files.
[build-all] copy-export-html-templates
[copy-export-html-templates] Copied 5 export-html assets.
[build-all] write-build-info
[build-all] write-cli-startup-metadata
[build-all] write-cli-compat

> openclaw@2026.4.24 ui:build /media/xxxxx/MyDisk/openclaw
> node scripts/ui.js build


> openclaw-control-ui@ build /media/xxxxx/MyDisk/openclaw/ui
> vite build

vite v8.0.9 building client environment for production...
[plugin rolldown:vite-resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/media/xxxxx/MyDisk/openclaw/src/utils.ts". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin rolldown:vite-resolve] Module "node:os" has been externalized for browser compatibility, imported by "/media/xxxxx/MyDisk/openclaw/src/utils.ts". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin rolldown:vite-resolve] Module "node:path" has been externalized for browser compatibility, imported by "/media/xxxxx/MyDisk/openclaw/src/utils.ts". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin rolldown:vite-resolve] Module "node:os" has been externalized for browser compatibility, imported by "/media/xxxxx/MyDisk/openclaw/src/infra/home-dir.ts". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin rolldown:vite-resolve] Module "node:path" has been externalized for browser compatibility, imported by "/media/xxxxx/MyDisk/openclaw/src/infra/home-dir.ts". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
✓ 831 modules transformed.
computing gzip size...
../dist/control-ui/index.html                                  2.73 kB │ gzip:   1.03 kB
../dist/control-ui/assets/index-D13gUwUm.css                 260.27 kB │ gzip:  41.59 kB
../dist/control-ui/assets/preview-H1dcG5Gd.js                  0.18 kB │ gzip:   0.17 kB │ map:     0.36 kB
............

✓ built in 475ms
  1. pnpm link --global
(base) xxxxx@xxxxx-ubuntu24:/media/xxxxx/MyDisk/openclaw$ pnpm link --global
 ERR_PNPM_NO_GLOBAL_BIN_DIR  Unable to find the global bin directory

Run "pnpm setup" to create it automatically, or set the global-bin-dir setting, or the PNPM_HOME env variable. The global bin directory should be in the PATH.
  1. pnpm setup
(base) xxxxx@xxxxx-ubuntu24:/media/xxxxx/MyDisk/openclaw$ pnpm setup
Appended new lines to /home/xxxxx/.bashrc

Next configuration changes were made:
export PNPM_HOME="/home/xxxxx/.local/share/pnpm"
case":$PATH:"in
  *":$PNPM_HOME:"*) ;;
  *) export PATH="$PNPM_HOME:$PATH" ;;
esac

To start using pnpm, run:
source /home/xxxxx/.bashrc
  1. pnpm link --global应该是先pnpm setup然后再pnpm link --global
(base) xxxxx@xxxxx-ubuntu24:/media/xxxxx/MyDisk/openclaw$ source /home/xxxxx/.bashrc
bash: /home/xxxxx/.openclaw/completions/openclaw.bash: 没有那个文件或目录
(base) xxxxx@xxxxx-ubuntu24:/media/xxxxx/MyDisk/openclaw$ pnpm link --global

/home/xxxxx/.local/share/pnpm/global/5:
+ openclaw 2026.4.24 <- ../../../../../../../media/xxxxx/MyDisk/openclaw
  1. openclaw onboard --install-daemon我尝试了一下在机械盘上搞,太考验耐心了,我放弃。
(base) xxxxx@xxxxx-ubuntu24:/media/xxxxx/MyDisk/openclaw$ openclaw onboard --install-daemon
  1. openclaw uninstall --all --yes --non-interactivenpm rm -g openclawrm -rf openclaw/openclaw gateway stop删除机械盘的openclaw,我是不是挺能折腾的
(base) xxxxx@xxxxx-ubuntu24:/media/xxxxx/MyDisk$ openclaw uninstall --all --yes --non-interactive
............
(base) xxxxx@xxxxx-ubuntu24:/media/xxxxx/MyDisk$ npm rm -g openclaw
............
(base) xxxxx@xxxxx-ubuntu24:/media/xxxxx/MyDisk$ rm -rf openclaw/
(base) xxxxx@xxxxx-ubuntu24:/media/xxxxx/MyDisk$ openclaw gateway stop
node:internal/modules/cjs/loader:1459
  throw err;
  ^

Error: Cannot find module '/media/xxxxx/MyDisk/openclaw/openclaw.mjs'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)
    at Module._load (node:internal/modules/cjs/loader:1242:25)
    at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
    at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
    at node:internal/main/run_main_module:33:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v24.14.0