Mac hosting guide

Set Permissions for Desktop Agents on a Mac

Grant only Accessibility and Screen Recording first, in System Settings through a remote desktop session, restart the agent, and verify with screencapture and osascript. Intel-compatible agents fit the Intel Mac VM ($25 a month).

Figment editorial teamPublished Updated Facts checked November 10, 2026

Figment Mac plans

US East. Pay before use. Hourly and daily too.

Intel Mac VM4 shared vCPUs, 4GB RAM, 80GB SSD$25per monthApple Silicon Mac VM4 shared vCPUs, 4GB RAM, 65GB SSD$39per monthDedicated M4 Pro12-core CPU, 24GB RAM, 512GB SSD$199per month

Minimum first purchase: $25 of account credit, used for your rental.

Grant a desktop agent only the TCC services it uses, starting with Accessibility and Screen Recording, in System Settings through a remote desktop session. Then restart the agent and verify both with screencapture and osascript before you schedule anything. TCC (Transparency, Consent, and Control) gates Accessibility, Screen Recording, Full Disk Access, microphone, camera and input monitoring. Without the right grants, an agent hangs, returns empty frames or fails silently. Intel-compatible agents fit a Figment Intel Mac VM at $25 a month, and arm64-only agents need an Apple silicon plan.

Which Figment Mac plan does my agent need?

Check the architecture of your agent binary first:

file /path/to/your-agent-binary
# Universal:            Mach-O universal binary with 2 architectures: [x86_64 arm64]
# Intel only:           Mach-O 64-bit executable x86_64
# Apple silicon only:   Mach-O 64-bit executable arm64
Binary architecturePlanPrice
x86_64 or universal, Electron apps, Python or Node scripts, Intel-compiled utilitiesIntel Mac VM, 4 shared vCPUs, 4GB, 80GB, macOS Sequoia$25 a month, $2 a day, $0.15 an hour
arm64-only, Xcode 26.4 or later, visionOS, or any tool that requires Apple siliconApple Silicon Mac VM, 4 shared vCPUs, 4GB, 65GB$39 a month, $6 a day, $0.40 an hour
A heavy agent, or one you want on a whole Mac no other customer sharesDedicated M4 Pro 48 GB, M4 Pro, 48GB, 512GB$349 a month ($299 on a 12-month term)

Every plan gives you administrator access to your own Mac or VM, which you need to change privacy settings, and a remote desktop session where the prompts appear. TCC works the same way as on any other Mac for the capabilities below. Figment runs the Mac and network layer. The agent and its permissions are yours to set up.

How does TCC decide for a running agent?

macOS checks Accessibility trust and Screen Recording access when a process first requests the service. Granting permission after the process is running does not promote it, so restart the process after you flip the toggle.

tccutil, built into macOS, resets TCC entries. After a reset, macOS prompts again the next time the app asks for the service:

# Reset Accessibility for one app (by bundle ID):
tccutil reset Accessibility com.example.myagent

# Reset Screen Recording for all apps (service name is ScreenCapture):
tccutil reset ScreenCapture

If your agent is a bare binary with no bundle, macOS uses the binary path as its TCC identifier. Change the path and the agent is, for TCC, a new application. To see denials as they happen:

log show --last 5m \
  --predicate 'subsystem == "com.apple.TCC" AND eventMessage CONTAINS "denied"' \
  --info

A denial in this log confirms the symptom is a missing permission and not a bug in the agent.

What is the least-permission setup?

Grant only the services your agent uses. Extra permissions are a security risk and add tccutil reset calls to every deploy.

Agent capabilityRequired TCC serviceSystem Settings path
Synthetic keyboard or mouse eventsAccessibilityPrivacy & Security › Accessibility
AXUIElement queries (read UI text, state, hierarchy)AccessibilityPrivacy & Security › Accessibility
Screenshots, pixel reads, screen captureScreen RecordingPrivacy & Security › Screen & System Audio Recording
Reading other apps' window titlesScreen RecordingPrivacy & Security › Screen & System Audio Recording
Reading files outside the app's sandboxFull Disk AccessPrivacy & Security › Full Disk Access
Microphone inputMicrophonePrivacy & Security › Microphone
Camera inputCameraPrivacy & Security › Camera
Global keyboard hooksInput MonitoringPrivacy & Security › Input Monitoring

Start with Accessibility and Screen Recording only, and add the rest after you see a specific denial in the TCC log. Input Monitoring is treated more strictly than Accessibility.

How do I find the agent's TCC identifier?

For an app bundle, read its bundle ID. For a bare binary, TCC keys on the full executable path.

# App bundle:
defaults read /Applications/MyAgent.app/Contents/Info CFBundleIdentifier
# Output example: com.example.myagent

# Bare binary: no bundle ID — TCC keys on the full executable path.

For a shell script that runs a Python or Node interpreter, the TCC identifier is the interpreter (/usr/bin/python3, /usr/local/bin/node), not the script. Bundle the agent as a signed .app so the identifier stays stable across releases.

How do I grant Accessibility?

Add the agent in System Settings and restart it:

  1. Open System Settings › Privacy & Security › Accessibility.
  2. Click +, pick the agent binary or .app, and add it.
  3. Turn the toggle on.
  4. Quit and relaunch the agent.

For launchd agents that start at login, run launchctl bootout (or launchctl unload on older systems), grant the permission, then launchctl bootstrap (or load) to pick up the new trust state.

How do I grant Screen Recording?

Use the same path, at System Settings › Privacy & Security › Screen & System Audio Recording, and only if the agent needs it. A script cannot pre-grant Screen Recording on a single machine, because it requires an interactive toggle. In an MDM-managed fleet, a PPPC configuration profile can pre-approve specific bundle IDs.

How do I verify both permissions?

Run these checks after granting and before you schedule the agent:

# Screen Recording check: a real capture produces a non-trivial PNG.
screencapture -x /tmp/tcc_check.png
python3 - <<'PY'
import os
sz = os.path.getsize('/tmp/tcc_check.png')
print('Screen Recording OK' if sz > 5000 else f'DENIED or empty ({sz} bytes)')
PY
rm -f /tmp/tcc_check.png

# Accessibility check: list foreground apps via System Events.
osascript -e \
  'tell application "System Events" to return name of every process whose background only is false'
# Returns a list if Accessibility is granted; errors with
# "osascript is not allowed assistive access" if denied.

A black or near-empty PNG means Screen Recording is denied. An "assistive access" error from osascript means Accessibility is denied, most often because the agent's path on disk does not match the entry in System Settings.

How do I keep permissions across agent updates?

Reset them in the deploy script. macOS can invalidate TCC grants when the code signature or path changes, so build the reset into the deploy and let the next launch ask fresh:

#!/usr/bin/env bash
# deploy.sh — run after staging the new agent build at /tmp/MyAgent-new.app
set -euo pipefail

AGENT_ID="com.example.myagent"
AGENT_APP="/Applications/MyAgent.app"
PLIST="$HOME/Library/LaunchAgents/com.example.myagent.plist"

echo "Stopping agent..."
launchctl bootout "gui/$(id -u)/${AGENT_ID}" 2>/dev/null || true

echo "Resetting TCC entries..."
tccutil reset Accessibility "$AGENT_ID"
tccutil reset ScreenCapture "$AGENT_ID"

echo "Installing new build..."
rm -rf "$AGENT_APP"
cp -R /tmp/MyAgent-new.app "$AGENT_APP"

echo "Launching for first-run prompts..."
open "$AGENT_APP"
# Grant Accessibility and Screen Recording when prompted, then:
#   launchctl bootstrap gui/$(id -u) "$PLIST"

What do I do when something fails?

Match the symptom to the cause:

SymptomLikely causeFix
Agent stalls at startup with no visible UITCC prompt rendered in a session you cannot seeGrant the permissions once interactively in the remote desktop session, then start headlessly
Accessibility works, screen capture returns black framesScreen Recording missingTurn on Screen & System Audio Recording for the agent
Permissions disappear after a releaseCode signature or binary path changedInclude tccutil reset in the deploy script and re-grant
Child process denied although parent is allowedDifferent signing identityGrant TCC to the child binary directly
osascript returns "not allowed assistive access"Accessibility denied for the invoking shellGrant Accessibility to Terminal (or your automation host)

For more than a handful of Macs, PPPC profiles delivered by MDM can pre-approve Accessibility for specific bundle IDs and stop per-machine clicking. Figment quotes several-Mac setups on a call.

How do I start or migrate the workload?

Work through these seven steps:

  1. Pick a plan on the Mac hosting plans, based on the architecture check above.
  2. Run file against the agent to confirm its architecture.
  3. Launch the agent interactively once, in the remote desktop session, so the TCC prompts appear.
  4. Grant Accessibility and Screen Recording in System Settings.
  5. Run the screencapture and osascript checks above.
  6. Add tccutil reset Accessibility and tccutil reset ScreenCapture steps to the deploy script.
  7. Load the launchd plist for persistent scheduling.

TCC setup is one-time work per agent build and adds no ongoing runtime cost.

Related guides: Idempotent jobs for Mac agents · Retry budget for Mac agents · Self-hosted GitHub Actions runner on Mac

Which Figment Mac fits this work?

Intel Mac VM from $25 a month, Apple Silicon Mac VM from $39, or a Dedicated M4 Pro for $199. Hourly and daily plans too. You pay before use, starting with at least $25 of account credit.

Choose a Mac plan