Start a cloud Mac
start_macStarts a cloud Mac with macOS, Xcode and the iOS Simulator, at $0.90 an hour from prepaid credit, billed per minute; it is usually ready within a minute (get_mac_session with wait_seconds). It is fully enabled for the agent: no administrator prompts, and the login password is in $NOMAC_MAC_PASSWORD; access opts out. ~/drive is kept between sessions, on one Mac at a time (a second Mac gets its own, named in the answer). Answers insufficient_credit when credit is short, and session_limit_reached while one runs, naming it and who started it. The same request_key returns the same Mac.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"request_key": "<request_key>"
},
"name": "start_mac"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reuse | No | With a drive name: return the running Mac that has it, not drive_in_use. | |
| access | No | Optional, over the account's defaults (fully enabled): prompts ask keeps macOS's usual prompts; permissions grants apps privacy permissions at start, also one built later ({"com.example.App": ["camera"]} or "all"); gatekeeper off or on; drive: none or a drive's name (made if new); drive_from: a drive to copy. | |
| limits | No | Optional caps: max_duration_seconds (60 or more, default 2 hours, no longest), spend_cap_microunits (USD × 1,000,000, default $5) and idle_timeout_seconds (60-3600, default 10 minutes). It stops at the first it reaches: past 5 hours 33 minutes, raise the spend cap too (8 hours is $7.20). | |
| parallel | No | true starts a second Mac beside the running one (for accounts that bought credit, while NoMac has one to spare). | |
| public_key | No | Optional SSH public key (ed25519, RSA 2048+ or P-256), for SSH; exec_mac needs none. | |
| request_key | Yes | Idempotency key you choose (8-128 letters, digits and - _ . :). Repeat a lost call with the same key and arguments; a new key is new work. | |
| queue_seconds | No | Wait in line up to this many seconds, free, instead of session_limit_reached or drive_in_use; it starts in its turn. |