# Figment for AI agents

Canonical: https://figment.so/agents.md

Figment rents Macs in the cloud. Use this guide when a task needs macOS and you do not have a Mac: an Xcode
build, the iOS Simulator, Safari, a Mac app or AppleScript. You can get prices, order a Mac, read its
access details and stop it through an HTTP API or an MCP server. No sign-in is needed. Your user pays one
Stripe link.

- API base: `https://figment.so/api/agent/v1`
- OpenAPI: https://figment.so/api/agent/v1/openapi.json
- MCP server (Streamable HTTP): `https://figment.so/api/mcp`
- Live prices and availability: https://figment.so/api/agent/v1/offer

## Plans and prices

Prices are in USD before tax. This API sells the hour and the day. The month is sold at https://figment.so/mac-hosting.

| Plan id | Resources | Hour | Day | Month (website) |
| --- | --- | ---: | ---: | ---: |
| `intel-vm` | Intel Mac VM: 4 shared vCPUs, 4GB RAM, 80GB SSD, macOS Sequoia, no iMessage | $0.15 | $2 | $25 |
| `apple-silicon-vm` | Apple Silicon Mac VM: 4 shared vCPUs, 8GB RAM, 120GB SSD, Stable supported macOS for Apple silicon, iMessage | $0.40 | $6 | $69 |
| `dedicated-m4-pro` | Dedicated M4 Pro: 12-core CPU, 24GB RAM, 512GB SSD, Stable supported macOS for Apple silicon, iMessage | $1 | $15 | $199 |

Choose a plan:

- `intel-vm`: Lighter work and apps that support Intel Macs. vCPUs are shared, not reserved physical cores. No iMessage. Runs Intel software only. Apple silicon-only apps do not run. Xcode stops at the versions that support macOS Sequoia (Xcode 26.3).
- `apple-silicon-vm`: Modern Apple silicon work at a lower monthly price. vCPUs are shared, not reserved physical cores. Shares the physical M4 Pro with one other customer. Administrator access covers your VM only, never the host.
- `dedicated-m4-pro`: The full machine and all its resources for one customer. Optional backups cover your home folder and /Users/Shared/FigmentData, not the whole disk.

Every plan includes: Remote desktop over an encrypted connection; SSH; Browser access; Administrator access to your Mac or VM. Region: US East.

## The flow

1. `GET https://figment.so/api/agent/v1/offer` to read plans, prices and `available_now`. No key.
2. `POST https://figment.so/api/agent/v1/accounts` with your name. You get an `api_key` once. Keep it secret. Send it as `Authorization: Bearer <api_key>`.
3. `POST https://figment.so/api/agent/v1/credit` with an amount. You get a `checkout_url`. Give it to your user to pay, or pay it with a Link wallet if you have one. Then read `GET https://figment.so/api/agent/v1/account` until `credit_cents` rises.
4. `POST https://figment.so/api/agent/v1/macs` to order. You get a Mac id and a state.
5. `GET https://figment.so/api/agent/v1/macs/{id}` until `state` is `ready`.
6. `POST https://figment.so/api/agent/v1/macs/{id}/access` to get the SSH host and port, a one-time browser console link, and the Mac login when it is available.
7. `POST https://figment.so/api/agent/v1/macs/{id}/stop` when the task is done. Billing stops.

```bash
curl -s https://figment.so/api/agent/v1/offer
curl -s -X POST https://figment.so/api/agent/v1/accounts -H 'Content-Type: application/json' -d '{"agent_name":"Claude Code"}'
curl -s -X POST https://figment.so/api/agent/v1/credit -H "Authorization: Bearer $FIGMENT_API_KEY" -H 'Idempotency-Key: credit-2026-11-23-0001' \
  -H 'Content-Type: application/json' -d '{"amount_cents":2500}'
curl -s -X POST https://figment.so/api/agent/v1/macs -H "Authorization: Bearer $FIGMENT_API_KEY" -H 'Idempotency-Key: mac-2026-11-23-0001' \
  -H 'Content-Type: application/json' \
  -d '{"plan":"intel-vm","period":"hourly","accept_terms":true,"authorization":"user_authorized","intel_compatibility_accepted":true}'
curl -s https://figment.so/api/agent/v1/macs/$MAC_ID -H "Authorization: Bearer $FIGMENT_API_KEY"
curl -s -X POST https://figment.so/api/agent/v1/macs/$MAC_ID/access -H "Authorization: Bearer $FIGMENT_API_KEY" \
  -H 'Content-Type: application/json' -d '{"console":true,"login":true}'
curl -s -X POST https://figment.so/api/agent/v1/macs/$MAC_ID/stop -H "Authorization: Bearer $FIGMENT_API_KEY"
```

## Payment

- Prepaid only. A Mac starts only when the account holds credit for the first hour or the first day. The balance cannot go below zero. When credit runs out, the Mac stops.
- The first purchase is at least $25. One purchase is at most $500. Unused credit does not expire and is not refundable.
- The `checkout_url` is a normal Stripe Checkout page. Your user pays by card or another method that the page shows. If you have a Link wallet (`link-cli`), you can pay the same page after your user approves the spend request.
- An order without enough credit answers `402` with `needed_cents`. Buy credit, then send the same order again with the same `Idempotency-Key`.
- Do not tell your user that a payment is complete until `credit_cents` shows it.

## Order rules

- `period` is `hourly` or `daily`. Hourly bills by the minute from the time the order is accepted. Daily buys 24 hours and does not renew unless `renew_daily` is true.
- Send `accept_terms: true` and `authorization: "user_authorized"` only if your user allowed you to rent a Mac for them. Terms: https://figment.so/terms.
- `intel-vm` also needs `intel_compatibility_accepted: true`. This is an Intel macOS VM on non-Apple hardware. It has no GPU or Metal acceleration. Apple silicon-only workloads are not supported. Some Xcode and iOS jobs may work, but compatibility is not guaranteed. Check your required macOS, Xcode and iOS Simulator versions before you pay. Simulator and Metal workloads may not work.
- If `available_now` is false, the order is refused with `not_available_now`. Send `allow_wait: true` only if your user accepts a wait; an hourly Mac bills from the order.
- An account can run 2 Macs at one time.
- Every write accepts an `Idempotency-Key` header (16 to 80 letters, digits, `_` or `-`). The same key gives the same result. Use a new key for a new order.

## States

| State | Meaning |
| --- | --- |
| `provisioning` | Setup is in progress. `state_reason` says why: `setting_up`, `waiting_for_capacity` or `desktop_preparing`. |
| `ready` | You can read access details and use the Mac. |
| `stopping` | A stop was requested. Billing has stopped. |
| `stopped` | Access has ended. `state_reason` is `rental_ended` or `credit_exhausted`. Data is kept until `data_deleted_after`. |
| `ended_before_setup` | The Mac was never delivered. The credit it used was returned. |
| `deleted` | The Mac and its data are deleted. |
| `failed` | Setup failed. Support reviews it. |

Setup is not instant. A Mac is usable only when its state is "ready". Poll the Mac; do not assume a start time. Poll no more than once every 30 seconds.

## Access

`POST https://figment.so/api/agent/v1/macs/{id}/access` works when the state is `ready`.

- `ssh`: `host`, `port` and `status`. `ready` means SSH answers. `enable_remote_login` means Remote Login is off on the Mac; turn it on in System Settings through the browser console.
- `console` (send `"console": true`): a one-time link to the Mac's screen in a browser. It expires in minutes. Ask for a new one each time.
- `login` (send `"login": true`): the Mac account name and password when they are available. Treat the password as a secret. Do not put it in logs, commits or chat.
- You have administrator access to your Mac or VM only.

## Stop

`POST https://figment.so/api/agent/v1/macs/{id}/stop` ends the rental. An hourly Mac is billed to that minute. A paid day is not refunded. A stopped Mac cannot be started again through this API; order a new one. When a rental ends, access stops and recoverable data is kept for seven days, then deleted.

## For your user

- `GET https://figment.so/api/agent/v1/account` returns a `claim.url`. Give it to your user if they want to see the Macs and the credit in a browser. They sign in on figment.so and the account is added to their login. This is optional. The API works without it.
- After a claim, your user manages the account at https://figment.so/mac-hosting/agents.
- We run the Mac, the network and the virtualization layer, and we fix infrastructure faults. You manage your apps, code, agents and third-party accounts.
- Support: Dashboard tickets with email replies, seven days a week. We respond within 24 hours, usually sooner. Write to support@figment.so.

## MCP

Add `https://figment.so/api/mcp` as a remote MCP server (Streamable HTTP). The tools match the API: `figment_get_offer`, `figment_create_account`, `figment_get_account`, `figment_buy_credit`, `figment_start_mac`, `figment_get_mac`, `figment_get_mac_access`, `figment_stop_mac`. Send the key as an `Authorization: Bearer` header on the MCP connection, or pass `api_key` to a tool.

## Errors

Errors are JSON: `{"error": "<code>", "message": "<plain text>"}`. Common codes: `unauthorized` (401), `credit_required` (402), `not_available_now` (409), `mac_limit_reached` (409), `mac_not_ready` (409), `rental_busy` (409, try again in a few seconds), `rate_limited` (429).

## What not to promise your user

Do not promise instant setup, an uptime figure, unlimited capacity or a refund of unused credit. Intel Mac VM has no iMessage and no GPU acceleration.
