AI agents on the Mac
What an AI agent can reach on your Mac: files, Keychain, network and macOS permissions
How macOS privacy permissions (TCC) apply to AI agents, why agents inherit your terminal’s access, what the Keychain still guards, and how to reset grants.
Updated 8 October 2026 3 min read
The short answer
An agent running in your terminal runs as you, with your terminal app’s macOS privacy grants: if Terminal has Full Disk Access, so do the commands an agent runs there. The Keychain still asks before revealing items, and protected folders still prompt per app. Network access is unrestricted unless something sandboxes it.
macOS privacy permissions (TCC)
System Settings → Privacy & Security lists what each app may reach: Desktop, Documents and Downloads folders, Full Disk Access, Accessibility, Automation, Screen Recording. These grants belong to the app, and command-line tools inherit the grants of the terminal app that started them.
What still protects you
- The Keychain asks before a program reads an item another app created.
- Protected folders prompt the first time an app reaches into them.
- Sandboxed apps can’t read outside their container without an entitlement.
Review and reset grants
Review grants in System Settings → Privacy & Security. To start fresh for one app:
tccutil reset All com.apple.TerminalConsider a dedicated terminal profile, or a separate macOS user, for agent work, without Full Disk Access.
The network
Unsandboxed tools can connect anywhere. That’s how a prompt-injected agent sends your data somewhere. Agent sandboxes (Claude Code’s sandbox, Codex’s sandbox modes) and outbound firewalls narrow it.
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, freeQuestions developers ask
Do AI agents get Full Disk Access on a Mac?
Only if the app they run in has it. Agents in a terminal inherit that terminal app’s privacy grants.
Can an AI agent read my Keychain passwords?
Not silently: macOS prompts before revealing items another app created, unless you chose Always Allow.
How do I reset macOS privacy permissions?
In System Settings → Privacy & Security, or with tccutil reset All <bundle id> for one app.