swiftapplications

AI agents on the Mac

A checklist for running AI agents safely on your Mac

Twelve practical checks for running AI agents on macOS: folders, permissions, keys, MCP, approvals, audit logs and network, from a developer’s point of view.

Updated 8 October 2026 3 min read

The short answer

Run agents in a project folder, not your home folder; keep them out of apps with Full Disk Access; keep API keys out of files they can read; let them read before they can write; require a human approval for anything that changes money, data or messages; and keep a log of what they did.

Files and permissions

  1. Start agents in the project folder, never in ~.
  2. Deny .env, secrets/ and ~/.ssh in each agent’s settings.
  3. Don’t run agents in a terminal with Full Disk Access.
  4. Review System Settings → Privacy & Security after installing agent tools.

Keys

  1. No API keys in shell profiles, .env files or MCP config files.
  2. Prefer restricted, revocable keys (Stripe restricted keys, scoped tokens).
  3. Keep one copy of each key, in the Keychain or a vault for agents.
  4. Rotate anything that ever touched a repository or a chat transcript.

Actions

  1. Read-only by default: an agent should earn write access per task.
  2. Every change to money, customer data or outgoing messages waits for a person.
  3. Log every request and decision, on your own machine.
  4. Watch outbound network: a prompt-injected agent leaks data by sending it somewhere.

The safe way to do this

MoltenRock

The encrypted vault for your API keys and AI agents

Your keys sealed by your Mac’s Secure Enclave, handed only to the local agents you approve, never written to a .env file. Free for Mac.

Get MoltenRock, free

Questions developers ask

Is it safe to run AI coding agents on my main Mac?

Yes, with care: confine them to project folders, keep keys out of their reach and approve changes. Some teams use a separate macOS user for agent work.

What should an AI agent never be allowed to do without approval?

Move money, change customer or production data, send messages on your behalf, and delete anything.

How do I audit what an AI agent did?

Keep a local log of each tool call and decision, and prefer tools that record proposals and approvals.