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.
- Open System Settings, then Users & Groups, and add a new Standard user such as
clawworker. - Install and launch OpenClaw only from that account.
- Keep your personal account logged out of the agent's files, and vice versa.
- Turn on FileVault so the disk is encrypted at rest.
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.
| Tier | What it allows | Examples | Approval |
|---|---|---|---|
| Tier 1: Read | Look, never change | Read a shared inbox, read a CRM, read a "Inbox" folder | None, but logged |
| Tier 2: Draft | Create reversible work product | Draft replies, create calendar holds, write to an "Agent Output" folder | Reviewed in batch |
| Tier 3: Act | Irreversible or external actions | Send email, issue invoices, delete files, spend money | Human 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:
- Use separate accounts. Give the agent its own email address (for example
assistant@yourcompany.com) with delegated access, instead of your login. - Prefer read-only API keys. If your CRM or accounting tool offers a read-only scope, start there. Many do.
- Restrict by folder, label, or project. Share one Google Drive folder, not the whole drive. Give access to one mailbox label, not every thread.
- Set spending ceilings at the provider. If you use any paid API, set a monthly cap on the provider side, like $50, so a runaway loop stops itself. This matters for the cost worries many people raised in the leads data (15 of 138).
- Never paste a master password or admin token. Create a purpose-built token you can revoke in one click.
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:
~/agent/inbox: files you drop in for it to process (read-only for the agent).~/agent/output: where it writes drafts and reports (read and write).~/agent/archive: finished work, kept for audit (write-once).
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
- The agent sends a summary to you on Telegram or WhatsApp: "Ready to send invoice #1042 for $2,400 to Acme. Approve?"
- You reply "yes." Nothing happens until you do.
- Approvals expire after a set time, say 4 hours, so a stale request cannot fire later.
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:
| Action | Suggested hard limit | Where to enforce it |
|---|---|---|
| Outbound email | 25 per day, max 5 external recipients per message | Mail provider / relay rules |
| Payments or invoices | Draft only, or $500 ceiling per item | Accounting tool permissions |
| File deletion | Disabled; move to a trash folder instead | Filesystem permissions |
| Shell commands | Allowlist of 5 to 10 named commands | OpenClaw tool config |
| API spend | $50 per month | Provider 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:
- Log every action. Keep a plain-text record of what the agent read, drafted, and did, with timestamps.
- Review weekly for the first month. Spend 15 minutes scanning for anything surprising. Most clients find one or two odd behaviors in week one, and they are easy to fix early.
- Add one permission at a time. Change one thing, watch for a week, then change the next. If something breaks, you know the cause.
- Remove unused grants. If a permission has not been used in 30 days, revoke it.
- Vet every skill and plugin. Community skills run with the agent's permissions. Read them before installing, and install nothing you cannot explain.
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 →