npm install -g openclaw@latest
openclaw onboard

我用sh方式安装openclaw总是失败,提示windows defender阻止了不安全的文件执行。关闭了windows defender依然报错,可能是关闭的不彻底。还是npm安装一路绿灯。
安装好后,控制台显示如下信息:

Health check failed: gateway closed (1006 abnormal closure (no close frame)): no close reason
  Gateway target: ws://127.0.0.1:18789
  Source: local loopback
  Config: C:\Users\U937\.openclaw\openclaw.json
  Bind: loopback
|
o  Health check help --------------------------------+
|                                                    |
|  Docs:                                             |
|  https://docs.openclaw.ai/gateway/health           |
|  https://docs.openclaw.ai/gateway/troubleshooting  |
|                                                    |
+----------------------------------------------------+
|
o  Optional apps ------------------------+
|                                        |
|  Add nodes for extra features:         |
|  - macOS app (system + notifications)  |
|  - iOS app (camera/canvas)             |
|  - Android app (camera/canvas)         |
|                                        |
+----------------------------------------+
|
o  Control UI -------------------------------------------------------------------------------+
|                                                                                            |
|  Web UI: http://127.0.0.1:18789/                                                           |
|  Web UI (with token):                                                                      |
|  http://127.0.0.1:18789/#token=(以前安装时是?token,这次重装不知道为什么显示的是#token)      |
|  Gateway WS: ws://127.0.0.1:18789                                                          |
|  Gateway: not detected (gateway closed (1006 abnormal closure (no close frame)): no close  |
|  reason)                                                                                   |
|  Docs: https://docs.openclaw.ai/web/control-ui                                             |
|                                                                                            |
+--------------------------------------------------------------------------------------------+
|
o  Workspace backup ----------------------------------------+
|                                                           |
|  Back up your agent workspace.                            |
|  Docs: https://docs.openclaw.ai/concepts/agent-workspace  |
|                                                           |
+-----------------------------------------------------------+
|
o  Security ------------------------------------------------------+
|                                                                 |
|  Running agents on your computer is risky — harden your setup:  |
|  https://docs.openclaw.ai/security                              |
|                                                                 |
+-----------------------------------------------------------

以前安装时是?token,这次重装不知道为什么显示的是#token。
模型minimax我用完了免费额度。
千问我用完了免费额度。
groq调试半天,显示上下文太小达不到openclaw要求。
有文章说moon kimi k2.5能免费用,测试也不行!
用openrouter.ai的免费模型,测试依然不行!有文章说未充值用户一分钟可以用20次,我第一次都不行!
后来用的nvida英伟达免费模型,测试通过。
C:\Users\U937.openclaw\openclaw.json 配置如下:

{
  "meta": {
    "lastTouchedVersion": "2026.2.12",
    "lastTouchedAt": "2026-02-13T05:50:00.000Z"
  },
  "env": {
    "NVIDIA_API_KEY": "nvapi-",
    "OPENAI_API_KEY": "nvapi-"
  },
  "wizard": {
    "lastRunAt": "2026-02-13T05:50:00.000Z",
    "lastRunVersion": "2026.2.12",
    "lastRunCommand": "configure",
    "lastRunMode": "local"
  },
  "models": {
    "mode": "merge",
    "providers": {
      "nvidia": {
        "baseUrl": "https://integrate.api.nvidia.com/v1",
        "api": "openai-completions",
        "apiKey": "nvapi-",
        "models": [
          {
            "id": "meta/llama-3.3-70b-instruct",
            "name": "Llama 3.3 70B Instruct",
            "reasoning": false,
            "input": [
              "text"
            ],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 128000,
            "maxTokens": 8192
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "nvidia/meta/llama-3.3-70b-instruct"
      },
      "models": {
        "nvidia/meta/llama-3.3-70b-instruct": {
          "alias": "NVIDIA"
        }
      },
      "workspace": "C:\\Users\\U937\\.openclaw\\workspace",
      "maxConcurrent": 1,
      "subagents": {
        "maxConcurrent": 1
      }
    },
    "list": [
      {
        "id": "main"
      },
      {
        "id": "nvidia",
        "name": "nvidia",
        "workspace": "C:\\Users\\U937\\.openclaw\\workspace-nvidia",
        "agentDir": "C:\\Users\\U937\\.openclaw\\agents\\nvidia\\agent"
      }
    ]
  },
  "messages": {
    "ackReactionScope": "group-mentions"
  },
  "commands": {
    "native": "auto",
    "nativeSkills": "auto"
  },
  "hooks": {
    "internal": {
      "enabled": true,
      "entries": {
        "boot-md": {
          "enabled": true
        },
        "session-memory": {
          "enabled": true
        },
        "command-logger": {
          "enabled": true
        }
      }
    }
  },
  "gateway": {
    "port": 18789,
    "mode": "local",
    "bind": "loopback",
    "auth": {
      "mode": "token",
      "token": "*****"
    },
    "tailscale": {
      "mode": "off",
      "resetOnExit": false
    },
    "nodes": {
      "denyCommands": [
        "camera.snap",
        "camera.clip",
        "screen.record",
        "calendar.add",
        "contacts.add",
        "reminders.add"
      ]
    }
  }
}

http://127.0.0.1:18789/chat?session=agent%3Amain%3Amain ,我问:打开电脑热点,让其他手机访问。
终端显示:

05:49:39 [ws] ⇄ res ✓ chat.history 96ms conn=4dfa0aca…010f id=813fd6e1…d714

05:50:41 [ws] ⇄ res ✓ node.list 129ms conn=4dfa0aca…010f id=bd76bca4…3fdf

05:54:51 [ws] ⇄ res ✓ node.list 441ms conn=4dfa0aca…010f id=b73c8ff5…9185

13:59:37 [tools] exec failed: [2J[m[H]0;管理员: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe[?25h无法启动承载网络。

[25l组或资源的状态不是执行请求操作的正确状态。[5;1H[?25h

Command exited with code 1

13:59:45 [tools] exec failed: [2J[m[H]0;管理员: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe[?25h无法启动承载网络。

[25l组或资源的状态不是执行请求操作的正确状态。[5;1H[?25h

Command exited with code 1

13:59:56 [tools] exec failed: [2J[m[H]0;管理员: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe[?25h无法启动承载网络。

[25l组或资源的状态不是执行请求操作的正确状态。[5;1H[?25h

Command exited with code 1

14:00:08 [tools] exec failed: [2J[m[H]0;管理员: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe[?25h无法启动承载网络。

[25l组或资源的状态不是执行请求操作的正确状态。[5;1H[?25h

Command exited with code 1

14:00:19 [tools] exec failed: [2J[m[H]0;管理员: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe[?25h无法启动承载网络。

[25l组或资源的状态不是执行请求操作的正确状态。[5;1H[?25h

Command exited with code 1

14:00:30 [tools] exec failed: [2J[m[H]0;管理员: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe[?25h无法启动承载网络。

[25l组或资源的状态不是执行请求操作的正确状态。[5;1H[?25h

Command exited with code 1

14:00:41 [tools] exec failed: [2J[m[H]0;管理员: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe[?25h无法启动承载网络。

[25l组或资源的状态不是执行请求操作的正确状态。[5;1H[?25h

Command exited with code 1

14:00:51 [tools] exec failed: [2J[m[H]0;管理员: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe[?25h无法启动承载网络。

[25l组或资源的状态不是执行请求操作的正确状态。[5;1H[?25h

Command exited with code 1

06:01:01 [ws] ⇄ res ✓ node.list 560ms conn=4dfa0aca…010f id=8e4b1075…c999

14:01:02 [tools] exec failed: [2J[m[H]0;管理员: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe[?25h无法启动承载网络。

[25l组或资源的状态不是执行请求操作的正确状态。[5;1H[?25h

Command exited with code 1

14:01:12 [tools] exec failed: [2J[m[H]0;管理员: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe[?25h无法启动承载网络。

[25l组或资源的状态不是执行请求操作的正确状态。[5;1H[?25h

Command exited with code 1

14:01:24 [tools] exec failed: [2J[m[H]0;管理员: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe[?25h无法启动承载网络。

[25l组或资源的状态不是执行请求操作的正确状态。[5;1H[?25h

Command exited with code 1

14:01:37 [tools] exec failed: [2J[m[H]0;管理员: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe[?25h无法启动承载网络。

[25l组或资源的状态不是执行请求操作的正确状态。[5;1H[?25h

Command exited with code 1

问cursor,还是cursor回答的快:

好的,我来帮你使用 Windows 设置开启移动热点。

方法一:使用 PowerShell 开启(推荐)

让我尝试使用 Windows 10/11 的内置移动热点功能:

自动运行
终端

$ connectionProfile=[Windows.Networking.Connectivity.NetworkInformation,Windows.Networking.Connectivity,ContentType=WindowsRuntime]::GetInternetConnectionProfile();if(connectionProfile = [Windows.Networking.Connectivity.NetworkInformation,Windows.Networking.Connectivity,ContentType=WindowsRuntime]::GetInternetConnectionProfile(); if (connectionProfile=[Windows.Networking.Connectivity.NetworkInformation,Windows.Networking.Connectivity,ContentType=WindowsRuntime]::GetInternetConnectionProfile();if(connectionProfile -eq $null) { Write-Host “未找到 Internet 连接” } else { Write-Host “Internet 连接: (((connectionProfile.ProfileName)” }

-Host “Internet 连接: (((connectionProfile.ProfileName)” }InvalidOperation: Unable to find type [Windows.Networking
.Connectivity.NetworkInformation,Windows.Networking.Connectivity, ContentType=WindowsRuntime].
未找到 Internet 连接

PowerShell 方式不太稳定。让我用更简单的方法——直接打开 Windows 设置页面:

自动运行
终端

$ start ms-settings:network-mobilehotspot

已打开 Windows 设置中的移动热点页面!

手动设置步骤

由于你的网卡不支持承载网络,请按以下步骤操作:

步骤 1:检查是否支持

在三丰云打开的 移动热点 设置页面:

  • 如果免费云服务器看到 “我们无法设置移动热点,因为你的电脑没有以太网、Wi-Fi 或手机网络数据连接” 或类似提示,说明需要其他方法

步骤 2:如果显示正常

  1. 共享我的 Internet 连接 → 选择 Wi-Fi 或 以太网
  2. 点击 编辑 按钮
  3. 设置:
    • 网络名称 : OpenClaw-Hotspot (或你喜欢的名字)
    • 网络密码 : 12345678 (8位以上)
  4. 开启 “共享我的 Internet 连接” 开关

步骤 3:手机连接

  1. 打开手机 WiFi

  2. 搜索刚才设置的网络名称

  3. 输入密码连接
    如果设置页面显示不支持 ,说明你的网卡确实无法开启热点。这时可以:

  4. 使用 USB 数据线 反向共享(手机给电脑开热点)

  5. 购买 USB 无线网卡 (支持热点的,约 30-50 元)
    设置页面已经打开,请查看显示的内容,告诉我看到了什么提示?

openclaw卡住了,等了半天,一刷新新,整页都是回答。向上拖动滚动条20多次才拖动到最上方,都看不到我的问题和前面的回答了,也没找到分页符。
openclaw的bug太多了,不如很多带大模型的ide好用。

Logo

小龙虾开发者社区是 CSDN 旗下专注 OpenClaw 生态的官方阵地,聚焦技能开发、插件实践与部署教程,为开发者提供可直接落地的方案、工具与交流平台,助力高效构建与落地 AI 应用

更多推荐