Skip to main contentSkip to content
Deep diveComputer use / macOS / Accessibility / OpenRouter

Computer use on Mac: how an AI agent operates your apps

How Foxl's computer use reads a Mac app through Accessibility, presses its controls without taking your mouse, and checks every step, with real screenshots. Setup, the apps and models that do it well, and the limits, measured.

Foxl TeamUpdated 20 min read

A real run in Foxl 0.9.8 on October 31, 2026, with Claude Sonnet 5.5 on Amazon Bedrock. The model's thinking time is cut from the video, and nothing on screen was edited.
On this page
Reviewed against the shipped implementation and retained tests on November 10, 2026.

Computer use means an AI agent operates the apps on your computer the way you would: it looks at a window, presses buttons, types into fields, scrolls, and reads the result back. In Foxl, a free desktop AI agent, computer use is on from the start on Mac, Windows and Linux, and works with any model that can read images. On a Mac it goes through macOS Accessibility, the interface screen readers use, so Foxl presses an app's controls without moving your mouse pointer, and it only takes screenshots of the one window it is working in.

The video above is one real run, filmed in Foxl 0.9.8 on October 31, 2026 with Claude Sonnet 5.5 on Amazon Bedrock. A building's freight-elevator form was open in Preview, and the moving notes were in TextEdit. Foxl read the notes, filled six fields and ticked three boxes, left the signature empty as asked, and pointed out that one of the boxes it ticked was a promise to pay a $150 deposit. The chat says it worked for 2 minutes 26 seconds; the video leaves out the time the model spent thinking.

Setting it up on a Mac

You need macOS 13 or later, Foxl from foxl.ai (no Foxl account is needed for this), and a model that can read images, chosen in Settings > Model & provider. The Amazon Bedrock guide and Use OpenRouter in a desktop app walk through the two providers used here.

  1. Allow computer use in Settings > Computer use is already on. Turning it off there takes the tools away from every chat.
  2. Under macOS permissions, press Open settings. System Settings opens with a small panel docked to it: drag Foxl Computer Use into the list, or switch it on if it is already there. The panel then moves on to the second permission.
  3. When both rows read Granted, you are done. Foxl does not need a restart.
Foxl Settings open on Computer use. Allow computer use is switched on, with the note that the agent takes screenshots of that app's window only and uses its own Foxl pointer. Under macOS permissions, Screen Recording and Accessibility both read Granted. Always-allowed apps is still empty.
Settings > Computer use with both permissions granted, in Foxl 0.8.3.

The two permissions cover two different things. Screen Recording lets Foxl take a picture of the app's window, and Accessibility lets it press, type and scroll there. Both go to Foxl Computer Use, a small helper app inside Foxl that runs once for each step, reads one JSON request and answers one line. It is its own app bundle for a reason. When the helper ran as a plain child of Foxl's server, macOS attributed it to the server's runtime, so the system asked to grant node-arm64, and on October 8 a new user reported a permission row they could do nothing with. The helper now starts itself again as its own responsible process, so the request and the row both say Foxl Computer Use.

Asking Foxl to use an app

Start a chat and say what you want done, and in which app, the way you would ask a person: "Use Calculator to add an 18% tip to $186.40 and split it four ways", or the request in the video. Since v0.10.3, Foxl uses an app without asking first; the apps it can never use are listed further down. To be asked the first time each chat needs an app, turn on Ask before Foxl uses an app for the first time in Settings > Safety, under Apps Foxl operates. The chat then waits at Allow Foxl to use TextEdit?, as it did in 0.9.8, when asking was the default:

The Foxl chat with the request to fill in Maple Street's freight elevator form from the moving notes. Under Working for 17s, Foxl is waiting for approval: Allow Foxl to use TextEdit?, with the buttons Deny, Allow and Always allow.
The first app the chat needed was TextEdit, for the notes. Preview got the same question next.
  • Allow lets this chat use the app.
  • Always allow saves it under Always-allowed apps, and Foxl stops asking for it. Settings > Safety lists the same apps right below the switch, with Remove.
  • Deny means that step does not run, and the model is told you said no.

While Foxl works, a Foxl is using Preview bar sits above the chat with Stop, and each step adds a row under Working for. Stop ends the step in progress, and the steps the model had already queued behind it are not sent.

Mid-run. Above the chat, the bar Foxl is using Preview with a Stop button; eight computer use steps listed under Working for 1m 41s. In Preview, the form has the resident name, unit, move date and email filled in, and Foxl's gray pointer is moving to the Moving company field.
Halfway through: four fields filled from the notes, and Foxl's own gray pointer at the next one.
The end of the run. Foxl's answer lists every field it filled (Alex Kim, unit 2B, Saturday, November 14, the email, Bluebird Movers, 16 ft, 9:00 - 12:00 checked, floor and wall protection checked, the $150 deposit checked) and notes that the deposit box is a promise to pay. The form in Preview is filled in, with the signature and date empty.
Done: the form filled, the signature and its date left empty, nothing saved or sent.

The other switches in the same group decide how much Foxl checks with you. With Ask before deleting, sending, confirming or paying on, a press on a control whose words delete, send, confirm or pay asks first, in any app, and the question names the control and its row ("press button "Delete" next to "Invoice 13""). Foxl reads the control again right before the press, so a button relabelled after you answered ("Continue" becoming "Place order") is refused.

Foxl Settings > Safety, the group Apps Foxl operates: Ask before Foxl uses an app for the first time (off), Ask before deleting, sending, confirming or paying (off), Use your pointer when an app can only be used that way (on), and Only this computer can widen what Foxl may use (off).
Settings > Safety in Foxl 0.10.6-beta.6, at its defaults.

How computer use works in Foxl

The model gets three tools. computer_open_app opens or brings forward one app and makes it the conversation's target; it answers with a screenshot of that app's front window. computer works in that window by pixels: screenshot, click, double and triple click, right click, type, key, scroll, a drag for sliders and scroll bars, and wait. computer_elements reads the same window as text and acts on its controls by reference. None of them can reach another app. Every step from every chat runs through one queue, so two chats never press things at the same moment, and when a step fails, the steps the model queued behind it in the same response are answered "Not executed" instead of being sent.

One window, at most 1,280 pixels wide

A screenshot is screencapture -l with the window id of the target app's front window. That takes the window's own pixels and nothing in front of it or behind it, so a notification or another app's window on top never reaches the model, and on a Mac Foxl has no code that captures a whole display. The picture is sent at the window's size in points, scaled down until its longest edge is at most 1,280 pixels, and never scaled up. The model answers with a point in that picture. Foxl maps it to a point inside the window, clamps it to the window and tells the model if it asked for a spot outside the picture; the helper then reads the window's current frame itself and refuses a point that is no longer inside it.

How a click works without your mouse

Up to v0.8.2, a Foxl click was a mouse event posted to the system's input stream. That moves the real pointer to the spot and delivers the click to whatever is on top, so every step took the mouse away from you. Since then, the helper asks the target app which element is at that point (AXUIElementCopyElementAtPosition on the app's own accessibility element) and uses that element's own action: AXPress for buttons, links, menu items and checkboxes, focus and a caret position for text, AXSelected for list rows, AXShowMenu for a right click, and AXValue for sliders and scroll bars. Because the question goes to the app, the action reaches its control even when another window covers it.

Typing inserts text through AXSelectedText, and Foxl checks that the caret moved by the length it inserted. Where a field does not take that, the helper posts Unicode key events to that app's process and no other. A shortcut with Command, Control or Option only works in the active app, so for those Foxl waits until your keyboard is quiet, brings the app forward, sends the keys and puts your app back. Shortcuts that act on the whole Mac (the app switcher, Spotlight, screenshots, the lock screen, Force Quit, Mission Control) are refused.

A measurement from October 6, 2026 settled the design. A left click posted to Calculator's process at its "5" left the display at 0, with Calculator in the background and in front, and a scroll posted to TextEdit left its scroll bar where it was. Mouse events sent to a process do nothing on macOS, so Foxl has no fallback that would report a click that never happened. AXPress on 7, +, 2 and = showed 9 while Calculator stayed in the background, and the pointer had not moved.

Foxl in dark mode with the bar Foxl is using Calculator and Stop above a chat titled Dinner bill split with tip, three computer use steps under Working for 10s, and Calculator beside it with Foxl's gray pointer near its display.
Foxl 0.10.3-beta.6 on Calculator, November 4, 2026. The arrow is Foxl's pointer; the recording leaves out the Mac's own.

Reading a window as text

The pixel route costs an image for every step. computer_elements reads the target window's accessibility tree instead and answers with text: each control the app describes, with its role, name, value and state, and a short reference for each one Foxl can act on. This is the exact answer for the small AppKit test window Foxl's macOS probe drives, written by Foxl's own formatter from the tree the shipped helper read on November 1:

Snapshot s1 of the Foxl Elements Fixture window "Foxl Elements Fixture" (complete; 19 refs).
window "Foxl Elements Fixture"
  button "Add one" s1:e1
  text "Count: 0"
  checkbox "Bold" s1:e2 unchecked
  text field "Name" s1:e3 value="" focused
  password field "Password" s1:e4 (text not read)
  pop-up button "Size" s1:e5 value="Small"
  disclosure triangle "More" s1:e6 unchecked
  slider "Volume" s1:e7 value="20"
    value indicator value="20"
  button "Later" s1:e8
  text "Status: idle"
  button "Twin" s1:e9
  button "Twin" s1:e10
  button "Move twins" s1:e11
  text "Invoice 12"
  button "Delete" s1:e12
  text "Invoice 13"
  button "Delete" s1:e13
  button "Swap invoices" s1:e14
  button "Rebuild" s1:e15
  button "Open sheet" s1:e16
  text "안녕하세요 Foxl"
  close button s1:e17
  full screen button "this button also has an action to zoom the window" s1:e18
  minimize button s1:e19 disabled

That window comes to 899 characters. The model presses s1:e1 or sets s1:e3 to "Ada" by reference and reads the result back as text, with no screenshot in between. On the GTK window Foxl's Linux CI drives, one snapshot was 3,289 characters (112 lines), where a screenshot of the same window was a 520 × 760 PNG of 35,437 bytes. A read can keep only the controls and what holds them, wrappers with a single child collapse, and depth stops at 12 levels unless the model asks for more, so a dense window can also be read one region at a time.

Text matters for the prompt cache too. On GPT-6 Astra through Amazon Bedrock, every call whose new tool result carried an image read 0 cached tokens (10 calls of 10, measured October 29) and paid to write the whole prompt again, while calls with text results read the cache 7 times of 7.

Every reference is checked again before Foxl acts

A reference like s1:e13 is not a position. Foxl keeps, in memory and per conversation, what identified the element when it was read: the app's process id and start time, the window, the path from the window down to the element, its role, and a stable identity (an identifier or a title, never a value that changes while you use it). At the instant it acts, the helper refuses when the app restarted or the window is gone, finds the element again from that evidence, and answers stale_ref or ambiguous when it cannot tell which element is meant. It never applies an old reference to whatever now sits in the same place.

Look-alikes were the hard part, such as one Delete button per row. On the first macOS run on November 1, the two invoice rows of the test window were swapped after the snapshot, and the old reference for Invoice 13's Delete pressed Invoice 12's. AppKit's stack views are invisible to accessibility, so each label and its button are both children of the window and no container told the rows apart. The fix anchors a look-alike to its nearest unique neighbour (here the text "Invoice 13" just before it) and checks that anchor at the moment of the press. The probe then passed 31 of 31 checks four runs in a row, the swapped row's Delete pressed by its own label.

Every step says whether it reached the app

An element step answers with a delivery state and whether retrying is safe, so the model does not submit a form twice or undo a checkbox by trying again:

DeliveryWhat it meansRetry
noneNothing reached the app (stale, ambiguous, refused)Safe
alreadyThe control was already in that state; nothing was sentSafe
sent_verifiedSent, and reading it back shows the resultUnsafe
sent_unverifiedSent; the effect could not be read back, with the reasonUnsafe
sent_contradictedSent, and the control now shows something elseUnsafe
unknownCut short by Stop or a timeoutUnknown

Some apps answer late. A press whose handler opens a sheet is often answered only when the sheet closes, so the step says the press may have happened and what to read next, never that nothing was sent.

Does computer use take over my mouse?

Not in apps that describe their controls, which covers most Mac apps. The arrow you see moving is Foxl's own: a separate helper, foxl-cursor, draws it above the windows and glides it to each control Foxl acts on, and it sends no input. It is gray while you are in that app's window and takes its chat's own soft colour while you are elsewhere, so two chats using two apps at once show two pointers.

Calculator in dark mode showing 0, with Foxl's gray arrow pointer just below the display.
Foxl's pointer on Calculator.

Some apps describe nothing at a spot: a game, a canvas, or an app built with Tk, as many Python tools are. Apple's own Tk 8.5.9 is worse than silent, since it reports success for an accessibility press on a button and never runs it (15 runs of 15), so in a Tk app Foxl sends no click through accessibility at all. Pointer events posted to the app's process do nothing there either. For those spots only, Foxl borrows your pointer, under rules the helper enforces itself:

  • the bar first says Foxl is using your pointer in the app;
  • it waits until you have left the mouse and keyboard alone for a second, and gives up after four;
  • never while a password field has the keyboard focus, and never on a locked screen;
  • it stops the moment you move the mouse or press a key and leaves the pointer where you put it, and otherwise puts the pointer and your app back.

To stop it, turn off Use your pointer when an app can only be used that way in Settings > Safety. Such a spot is then refused, and the model uses the keyboard there.

Which Mac apps work well?

Computer use is as good as what an app tells macOS Accessibility about itself. Apps built with Apple's own controls, like Calculator, TextEdit and Preview here, do best: the AppKit test app passed 46 of 46 checks. On November 2 Foxl was measured against test apps in four other toolkits, each reporting its own state, so a cell counts what the app did and not what Foxl believed it did:

ToolkitWorkedRefused, nothing sentSent, no effectFailed
SwiftUI26010
WebKit (a page inside an app)26230
Electron25231
Tk1511

Electron apps (Slack, VS Code, Notion, Discord) describe their pages only when an assistive app asks, so while Foxl operates one it turns on Electron's AXManualAccessibility and turns it off when the turn ends; the first step of a turn takes two to three seconds longer. Web pages ignore an accessibility write into a text field, so Foxl reads the keyboard focus back on that field and types the text as keys. The one Electron failure in that run was the first text typed right after a click into a field, which the page dropped while Foxl reported it typed; Foxl now reads such a field back after typing and types again only when nothing arrived. The pages of Chrome and other Chromium browsers describe too little for this, and the Foxl browser extension is the better tool for websites.

Passwords, and the apps Foxl never opens

Foxl types into a password field and never reads it. A snapshot shows how many characters the field holds ("holds 14 characters (hidden)"), or "(text not read)" when the field does not say; a step's result says "set to 14 characters (not shown)"; and on a Mac no screenshot is taken while a password field has the keyboard focus and holds text.

Some apps can never be the target: Terminal and other terminal apps (iTerm2, Ghostty, Warp, kitty and more), Script Editor, Automator, Shortcuts, System Settings, Keychain Access, Passwords, the login window, macOS security prompts and Foxl itself. Commands run through Foxl's own tools instead, and an agent must not be able to approve a security prompt. Computer use also never touches the clipboard or other apps' notifications, since either can hold a password or a one-time code.

Which models can do computer use?

Opening an app and every pixel step answer with a screenshot, so the model has to read images and call tools. Foxl checks this itself: a model that cannot view images does not get the computer use tools, and if you ask it to use an app it tells you to switch. For OpenRouter models Foxl reads OpenRouter's own catalogue, where 272 models took both images and tools on October 8, 2026.

Being able to see is not the same as being good at it. That day we gave one task to several models in Foxl 0.8.3: split a $186.40 dinner bill four ways with an 18% tip on Calculator's keypad, then type a message with each share into a TextEdit note.

Claude Sonnet 5.5 on Amazon Bedrock pressed 186.40 × 1.18 ÷ 4, read 54.988 off the display and typed $54.99 each into TextEdit, in 1 minute 6 seconds and 24 tool calls.
ModelThroughWhat it did
Claude Sonnet 5.5Amazon BedrockFinished both apps in 1 min 6 s, right to the cent (the video)
Claude Haiku 5.5OpenRouterPressed the right Calculator buttons and typed the right TextEdit message
Qwen3.7 FlashOpenRouterKept pressing the wrong Calculator buttons and fell back to typing
dots-3 note preview (free)OpenRouterAnswered, but pressed the same few Calculator buttons for ten minutes
Gemma 4 31B and 26B (free)OpenRouterRate-limited by the upstream provider (429) for more than two hours
Free Models RouterOpenRouterPicked from the free models above, with the same results

The Claude models are the safe choice for now. On OpenRouter, Claude Haiku 5.5 is the cheapest of them; on Bedrock, the same models run on your own AWS account.

Can I use computer use with free OpenRouter models?

Sometimes, and not reliably yet. OpenRouter had seven free models that take images and tools, and its Free Models Router picks one that supports what a request needs, so choosing Free Models Router in Foxl is the easy way to try. Three things got in the way while we made this guide:

  • Each step is a request. The dinner-bill task took 24 steps, and free models allow 50 requests a day until you have bought 10 credits (then 1000).
  • The free pool is shared. The two Gemma 4 models answered 429 for more than two hours, and the free models that did answer were not good at pressing the right button.
  • A key with no credits cannot run long requests. OpenRouter checks each request against your balance before it runs, and a computer use step carries a screenshot and the conversation so far, well over 10,000 tokens. On a key with no credits it was refused with 402 Prompt tokens limit exceeded, even when the request ran on our own provider key.

If you only see does not have enough credits on a short request, lowering Maximum reply length (tokens) in Settings > Model & provider > OpenRouter can be enough, because OpenRouter reserves that whole length up front. For regular computer use, buy a few credits or use a model you already pay for.

Computer use on Windows and Linux

On Windows (since v0.8.5), Foxl works through UI Automation with a helper of its own. It clicks, opens context menus, selects text, moves sliders, scrolls and types in an app's window without moving your pointer; reading a window as text is Mac and Linux only for now, and Foxl never reads or types into a Windows password field. On November 3, 2026 the Windows probe passed 95 of 95 checks on a throwaway Windows Server 2025 desktop with the Store Calculator and Notepad, three times, with PowerShell and then a maximized File Explorer in front, and the real pointer and the front app never moved.

On Linux (since v0.8.4), Foxl uses the AT-SPI accessibility bus. In an X11 session it reads and presses the controls of GTK apps and of the Chromium and Electron apps it opens itself, which it starts with their accessibility switched on. On GNOME in a Wayland session it reads, presses and types through accessibility, but cannot click at a point or press keys in another app's window, and a screenshot there is the whole screen, so Foxl takes one only after you allow screenshots once, and never while a terminal or a password manager is open. Every change to the Linux element reader runs against a real AT-SPI bus in CI, on a GTK 3 test app under Xvfb.

Questions people ask

Is computer use free in Foxl?

Foxl is free and the feature costs nothing on its side. You pay for the model, at that provider's prices. Free OpenRouter models can do it on a good day, with the limits above.

Can I use Claude for computer use?

Yes. The runs in this guide used Claude Sonnet 5.5 on Amazon Bedrock, and Claude Haiku 5.5 on OpenRouter did the dinner-bill task too. Pick the model in Settings > Model & provider; Foxl gives it the same tools whatever the model is.

How do I turn computer use off?

Turn off Allow computer use in Settings > Computer use. To stop one task, press Stop on the Foxl is using bar. To keep it on but be asked more, use the switches under Apps Foxl operates in Settings > Safety.

Can it see my whole screen?

No. On a Mac, on Windows and on Linux with X11, it takes screenshots of the window of the app it is using, and nothing else. Linux on Wayland is the one exception, described above.

Can I start it from my phone?

Yes. Start the chat in the Foxl iPhone or Android app or on app.foxl.ai; the work runs on your computer, and the phone shows the same Foxl is using bar with Stop. With Ask before Foxl uses an app for the first time on, the question shows on the phone too, with the same answers.

References and further reading

  1. OpenRouter: Free Models RouterDocumentation
  2. OpenRouter: API rate limitsDocumentation
  3. Foxl docs: Computer UseDocumentation