computer-use-input.node prebuild missing from CLI npm package

Resolved 💬 3 comments Opened Mar 31, 2026 by sora2005-dev Closed Apr 4, 2026

Description

Computer Use input (clicks, typing, key presses) does not work from the CLI. The native module computer-use-input.node is not included in the npm package and is not available anywhere on the system.

Screenshots work after setting COMPUTER_USE_SWIFT_NODE_PATH to point to the Desktop app's computer_use.node, but there is no equivalent file for the input module.

Error

Tool "computer_batch" failed: Cannot find module '/home/runner/code/tmp/claude-cli-external-build-2195/node_modules/@ant/computer-use-input/prebuilds/computer-use-input.node'
Require stack:
- /Users/<user>/.nvm/versions/node/v22.22.2/lib/node_modules/@anthropic-ai/claude-code/cli.js

Root Cause

In cli.js, the input module resolution is:

process.env.COMPUTER_USE_INPUT_NODE_PATH ?? path.resolve(__dirname, "../prebuilds/computer-use-input.node")
  • __dirname is hardcoded to the CI build path (/home/runner/code/tmp/claude-cli-external-build-2195/...), which doesn't exist on user machines.
  • COMPUTER_USE_INPUT_NODE_PATH env var is not documented.
  • The computer-use-input.node prebuild is not shipped in the npm package.
  • The Desktop app (Claude.app) does not contain computer-use-input.node either — it uses swift_addon.node inside the Electron context instead.

For comparison, computer_use.node (screenshots) has the same __dirname issue but can be resolved by pointing COMPUTER_USE_SWIFT_NODE_PATH to the Desktop app's copy at:

/Applications/Claude.app/Contents/Resources/app.asar.unpacked/node_modules/@ant/claude-swift/build/Release/computer_use.node

No such workaround exists for the input module.

Environment

  • macOS (Apple Silicon)
  • Claude Code CLI v2.1.88 (installed via Desktop app)
  • Node v22.22.2 (nvm)
  • Max plan
  • Accessibility permissions granted (Terminal, node, Claude.app)

Expected Behavior

Computer Use input (clicks, typing, key presses) should work from the CLI as announced:

"Computer use is now in Claude Code. Claude can open your apps, click through your UI, and test what it built, right from the CLI." — @claudeai, Mar 30 2026

Actual Behavior

  • screenshot: Works (after env var workaround)
  • request_access: Works
  • open_application: Works
  • key / type / left_click / computer_batch: Fails — missing computer-use-input.node

Suggested Fix

Include the computer-use-input.node prebuild for macOS (arm64/x64) in the npm package under vendor/ or prebuilds/, similar to how audio-capture.node and ripgrep are distributed.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗