Authorization notice. macOS Harness is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Credentials. Text the agent types passes through a shell command, so do not give it passwords you cannot rotate.
Who it is forAn operations or admin worker who enters the same values into a desktop app every week and has no API to use.
The problemRe-entering the same values by hand in a desktop app takes time and invites typing mistakes.
The outcomeThe agent sets each named field to its value and checks the window afterward, so the worker only reviews the result.
What you need first
- A Mac running macOS, since the project is macOS only
- Python 3.12 and uv, to install macOS Harness
- Accessibility and Screen Recording permissions, which every call needs
- A coding agent CLI such as Claude Code or Codex to run the commands
Steps
- Install macOS Harness with uv using Python 3.12, then run
macos-harness install --agent claudeor your agent's name. (inferred, check the README) - Run
macos-harness doctorand confirm the permissions are granted. - Run
macos-harness get_app_state --app "TextEdit"and note the element number of each field. - Run
macos-harness set_value --app "TextEdit" --element_index 7 --value "report.txt"for each field. - Run
macos-harness get_app_state --app "TextEdit"again and check that each field shows the new value.
Prompt for your agent
Using the macos-harness repo at https://github.com/browser-use/macos-harness, read the window of <app name> with `macos-harness get_app_state --app <app name>` and set each field listed in <values file> with `macos-harness set_value`. Verify by reading the window again and reporting every field that does not match its expected value.
Caveat. By default the agent can drive any app except its own host and system password sheets, so set `ask_before_first_use = true` in policy.toml before letting it fill a real form.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for browser-use/macos-harness and "Fill fields in a desktop app that has no API"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer