Skip to content

exec tool returns EPERM on Windows, all commands fail #71717

@ljcdegj

Description

@ljcdegj

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

在 Windows 11 上,所有通过 exec 工具执行的命令都立即失败,错误信息为 spawn EPERM

Steps to reproduce

  1. 安装 openclaw 并完成配置
  2. 通过飞书或 web 界面发送任何命令
  3. exec 工具返回错误: spawn EPERM

Expected behavior

NOT_ENOUGH_INFO

Actual behavior

OpenClaw CLI 本身是正常运行的(openclaw --version 能出来),但 agent 里的 exec 工具一直报 EPERM。

OpenClaw version

2026.4.23

Operating system

Windows 11

Install method

npm install -g openclaw@latest

Model

minmax

Provider / routing chain

openclaw -> minimax

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions