Skip to main content

Using Simulang with Claude Code

Simulang is a Claude Code skill for desktop automation on macOS. You describe the task in natural language (open apps, click controls, type text, scroll, capture screenshots, inspect the accessibility tree); Claude looks up the installed simulang-js API, writes a TypeScript script, and runs it with the Simulang CLI—same building blocks as the Simulang Primer.

Setup

  1. Install simulang CLI globally:
  2. Install the Claude Code skill:
  3. (Optional) Enable the log viewer for visual debugging:
    Then tell Claude: /simulang enable log view in all scripts

Usage

Invoke the skill with /simulang followed by what you want to do:
Claude will:
  1. Look up the simulang-js API docs for the installed version
  2. Write a TypeScript script
  3. Run it with simulang run
  4. Show you screenshots or results

Example Prompts

Tips

  • Be specific — “click the blue Submit button” works better than “click submit”
  • Ask for screenshots — Claude can capture and view what’s on screen
  • Use grounding models — For visual element finding, set OPENROUTER_API_KEY
  • Enable log viewer — Helps when the terminal is hidden behind automated apps

Requirements

  • Node.js >= 22.18
  • macOS: Grant Accessibility and Screen Recording permissions when prompted