👾 Open Computer Use – Open-Source Alternative to Codex Computer Use
Swift accessibilityai-agentai-agentsclaude-codecodexcodex-computer-usecomputer-usecomputer-use-agentcross-platformcuadesktop-automationgemini-cligui-automationmacosmcpmodel-context-protocolopen-computer-useopen-computer-use-mcpopenai-codexopencode
[2026-04-23 11:51] | Task: 三端 npm 安装按 os-arch 选择 native runtime
用户诉求
希望 npm i -g open-computer-use 在 macOS、Linux、Windows 上都能安装成功,并根据当前 os-arch 调用对应的 .app、Linux binary 或 Windows .exe。本轮还需要 bump patch version、tag 推送触发 release,并在 Linux VM 上实测 npm 全局安装后的 MCP tools list。
主要改动
- [NPM Packaging]: 将 npm staging 从单一 macOS package 改为三个既有 root/alias packages,每个包内置
darwin-arm64、darwin-x64、linux-arm64、linux-x64、win32-arm64、win32-x64runtime。 - [Runtime Launcher]: root package 的
bin/open-computer-use改为跨平台 Node launcher,通过process.platform/process.arch解析并执行对应 bundled native runtime;缺少 artifact 时给出明确重装提示。 - [Release Flow]: release package 构建现在会同时构建 macOS app、Linux binaries、Windows exes;publish script 的发布面保持为
open-computer-use、open-computer-use-mcp、open-codex-computer-use-mcp三个既有包名。 - [Plugin Path]: Codex plugin launcher 和 installer 增加 Linux / Windows native payload fallback,保留 macOS app bundle 路径。
- [Version Bump]: 将插件 manifest、Swift 版本常量、Linux/Windows Go runtime、smoke/test 输入和 CLI helper 文档统一 bump 到
0.1.35。 - [Docs]: 同步 README、中文 README、架构文档、CI/CD、质量说明、release guide、feature release notes 和相关 execution plans。
设计动机
最初实现使用 npm 原生的 optionalDependencies、os、cpu 机制,但 v0.1.34 CI 在发布新增 platform package 名时被 npm 权限挡住。v0.1.35 改为把三端六个 runtime 直接 bundled 到既有三个 npm 包里,避免新增 package 权限问题,同时仍由 launcher 根据 process.platform / process.arch 做本地选择。
受影响文件
.github/workflows/release.ymlscripts/npm/build-packages.mjsscripts/npm/publish-packages.mjsscripts/install-codex-plugin.shplugins/open-computer-use/scripts/launch-open-computer-use.shplugins/open-computer-use/.codex-plugin/plugin.jsonapps/OpenComputerUseLinux/main.goapps/OpenComputerUseWindows/main.gopackages/OpenComputerUseKit/Sources/OpenComputerUseKit/OpenComputerUseVersion.swiftdocs/
验证
- 通过:
node ./scripts/npm/build-packages.mjs --out-dir dist/release/npm-staging-check - 通过:
./scripts/release-package.sh - 通过:本地 npm prefix 只安装
open-computer-use-0.1.35.tgz后,open-computer-use --version输出0.1.35。 - 通过:本地 npm prefix 安装后的
open-computer-use mcpraw JSON-RPCtools/list返回 9 个 tools。 - 通过:
swift test - 通过:
(cd apps/OpenComputerUseLinux && go test ./...) - 通过:
(cd apps/OpenComputerUseWindows && go test ./...) - 通过:
node ./scripts/npm/publish-packages.mjs --skip-build --out-dir dist/release/npm-staging --dry-run,发布面为三个既有 root/alias packages。 - 通过:
git diff --check - 通过:GitHub Actions release workflow
24816330343,package-npm与release-cursor-motion-dmg均成功。 - 通过:
npm view [email protected]、[email protected]、[email protected]均可见;[email protected]不再声明optionalDependencies/os/cpu。 - 通过:Ubuntu aarch64 VM 里
npm i -g [email protected]成功,open-computer-use --version输出0.1.35,并确认/usr/local/lib/node_modules/open-computer-use/dist/linux/arm64/open-computer-use是 aarch64 ELF。 - 通过:Ubuntu aarch64 VM 里 raw MCP
initialize/tools/list返回 9 个 tools。