DEEP DIVE Security Permissions Mac Mini

By Oliver · AI Architect, BuildAClaw · November 3, 2026 · 9 min read

How to Set Up Safe AI Worker Permissions: What Your Agent Can Touch and What It Can't

A three-tier permission model, a dedicated macOS user, and approval gates that let your AI worker do real work without handing it the keys to your business.

Of the 138 pain points we collected from people running OpenClaw, 10 were about security. That sounds small until you read them. Almost none are about hackers. They are about an agent that had too much access on day one and did something nobody expected. One commenter on a Mac Mini thread put it bluntly: "It is so dangerous and people just take it too easy."

They are partly right. An AI worker that can read your email, edit your files, and run shell commands is powerful, and power without boundaries is a liability. But the answer is not to skip automation. The answer is a permission model you set up once, on purpose. This guide walks through the one we use on client Mac Mini M4 deployments.

The core rule: every AI worker starts with zero permissions and earns each one. In our deployments, a typical worker ends up with 6 to 10 explicit grants, not the "everything" access most default setups hand out.

Why Permissions Matter More for Agents Than for Chatbots

A chatbot answers questions. An agent takes actions. That difference changes the risk entirely. If a chatbot gets confused, you get a bad paragraph. If an agent gets confused while holding your email credentials, you get 400 messages sent to the wrong list.

Agents also read untrusted content: incoming emails, web pages, PDFs from customers. Any of that text can contain instructions aimed at the model. This is called prompt injection, and no model, including GPT-5.5, Claude Opus 4.7, or Llama 4 Maverick, is immune. You cannot rely on the model to refuse. You have to make sure that even a fully tricked agent cannot do real damage.

That is the mindset: design permissions assuming the model will eventually make a mistake or get manipulated. Then limit the blast radius.

Step 1: Give the Agent Its Own macOS User

The single highest-value step takes about 5 minutes. Create a dedicated standard (non-admin) user on the Mac Mini and run OpenClaw under it. Do not run your agent as you.

What you get: the agent can only see files that clawworker owns. Your Documents, Photos, browser sessions, and saved passwords live under a different user and are unreachable. If a malicious skill or injected prompt tries to read ~/Documents, it finds an empty folder.

This is also where local-first hardware pays off. On a cloud platform you trust the vendor's isolation. On your own Mac Mini you control the isolation yourself. For more on the hardware side, see our guide on what a Mac Mini AI worker really costs a small business.

Step 2: Use the Three-Tier Permission Model

Not every action carries the same risk. We sort everything an agent might do into three tiers, and each tier gets different rules.

TierWhat it allowsExamplesApproval
Tier 1: ReadLook, never changeRead a shared inbox, read a CRM, read a "Inbox" folderNone, but logged
Tier 2: DraftCreate reversible work productDraft replies, create calendar holds, write to an "Agent Output" folderReviewed in batch
Tier 3: ActIrreversible or external actionsSend email, issue invoices, delete files, spend moneyHuman approval, or strict caps

The trick is that most useful work lives in Tiers 1 and 2. In the client setups I have tested, roughly 80% of the time savings came from reading and drafting. The agent triages 60 emails, drafts 25 replies, and a human clicks send on the 25 in about 10 minutes. You keep nearly all the speed and none of the "oops."

Key insight: Promote an action from Tier 3 to autonomous only after it has run at least 50 times with zero corrections. Trust is earned from logs, not from optimism.

Step 3: Scope Every Credential Down

Most agent horror stories trace back to one thing: a credential with far more power than the job needed. A few concrete rules:

When something does go wrong, a scoped credential turns "disaster" into "annoying afternoon." You revoke one key, and your business keeps running.

Revocation test: You should be able to cut off any single integration in under 60 seconds. If you cannot, the credential is too tangled. We run this drill during every client handoff.

Step 4: Control the Network and the Filesystem

Credentials are only half the picture. A local agent can also be restricted at the machine level, and this is something cloud agents rarely let you do.

Filesystem boundaries

Keep the agent inside a small, named set of folders. A layout that works well:

Deny everything else. The agent has no business touching system folders, other users' files, or your backups. Also keep backups: take a Time Machine snapshot before you grant any new write permission, so rollback is a 5-minute task.

Network boundaries

Use the built-in macOS firewall plus an outbound allowlist (a tool like Little Snitch or a router rule works). List the exact domains the agent needs: your model endpoint, your email provider, your CRM. Block the rest. If an injected prompt tells the agent to upload data to a random server, the connection simply fails.

If you run local models such as Llama 4 Scout or Gemma 4 through Ollama, the model itself needs no internet at all. That removes an entire category of leaks, because your prompts and data never leave the machine. We cover why that matters in our guide to chaining lead intake, scheduling, and invoicing into one workflow, where each step touches different systems and needs its own scoped access.

Step 5: Add Approval Gates and Hard Limits

For Tier 3 actions, you need two layers: a human gate and a hard limit that does not depend on the model behaving.

Approval gates

Hard limits enforced outside the model

A prompt that says "never send more than 20 emails" is a suggestion. A limit in the mail relay or API gateway is a rule. Put numbers in places the model cannot edit:

ActionSuggested hard limitWhere to enforce it
Outbound email25 per day, max 5 external recipients per messageMail provider / relay rules
Payments or invoicesDraft only, or $500 ceiling per itemAccounting tool permissions
File deletionDisabled; move to a trash folder insteadFilesystem permissions
Shell commandsAllowlist of 5 to 10 named commandsOpenClaw tool config
API spend$50 per monthProvider billing cap

The shell row deserves emphasis. Giving an agent unrestricted terminal access is the equivalent of giving a new hire the server root password on day one. Allowlist the specific commands it needs and nothing more.

Step 6: Audit, Review, and Expand Slowly

Permissions are not a set-and-forget task. Build a short review habit:

Quick checklist: dedicated standard user, FileVault on, three tiers defined, scoped credentials, outbound allowlist, approval gates on Tier 3, hard limits outside the model, weekly log review. If you can check all eight, you are ahead of most setups I have seen.

What We Saw: A Real Rollout Pattern

On a recent small-business deployment (an operations team of four), we followed this exact sequence. Week one: read-only access to a shared inbox and a CRM. Week two: drafting replies and calendar holds into an output folder. Week three: autonomous sending for a single low-risk template, capped at 10 per day. Week four: review and expand.

By the end of the month the agent was handling around 35 tasks per day and the team had made 3 corrections total. Slow permissioning did not slow the results. It made the team trust the system faster, because nothing ever surprised them.

Frequently Asked Questions

What permissions should an AI agent have by default?

Read-only access to the specific folders, inboxes, and tools its job requires, and nothing else. Writing, sending, and deleting should be separate grants, added one at a time, each with a clear reason and a log entry.

Should my AI worker run as an admin user on the Mac Mini?

No. Create a dedicated standard macOS user for the agent. A bad prompt or a compromised skill can then only reach files that user owns, not your personal files or system settings.

How do I stop an AI agent from sending emails or spending money by mistake?

Put an approval gate on every irreversible action. The agent drafts the email or prepares the payment, and a human approves it. Add hard caps too, such as a daily send limit and a dollar ceiling enforced outside the model.

Is a local AI agent safer than a cloud one for permissions?

It can be. Your data and credentials stay on hardware you control, and you can enforce limits at the OS and network level. But local is not automatically safe. The permission model still has to be designed, which is what this guide covers.

Want an AI worker that is powerful and locked down?

BuildAClaw sets up OpenClaw on your own Mac Mini M4 with the permission model above already in place: dedicated user, scoped credentials, approval gates, and hard limits. No cloud dependency, fully autonomous where it is safe, and supervised where it matters.

Schedule a Free Strategy Call →