# Why we built scoped overnight approvals and an on-device agent browser

Two failure modes break real-world AI agents: asking for permission on every single click until the user turns safety off, and getting blocked by cloud-IP bot walls on everyday sites. Here is how we solved both.

Updated 2026-12-03. Page: https://casama.ai/blog/scoped-approvals-and-on-device-agent-browser

## Bottom line

Casama replaces all-or-nothing agent autonomy with **scoped, expiring approval bundles** (`permissions.preview` and `permissions.request` with folder and tool limits) and pairs cloud sandboxes with a **native on-device browser** on iOS, Android, macOS, Linux, and Windows so bots can work on sites that block headless cloud VMs while you watch.

## 1. The approval fatigue trap

Most AI agent tools swing between two extremes:

- **Full autopilot:** The agent can send emails, push commits, delete files, or spend money without asking. One hallucination or prompt injection causes real damage.
- **Per-step prompts:** The agent pauses 15 times during a routine job, so the user either gives up on background runs or clicks "Always allow" for everything.

Neither works for overnight routines or multi-step delegation.

## 2. Scoped overnight permission bundles

Instead of permanent blanket grants, Casama lets a bot preview the exact actions an overnight or scheduled task will need (`permissions.preview`) and request a **scoped, time-bounded bundle** (`permissions.request`):

- **Scoped to specific tools and folders:** A bot can be approved to read and organize files inside `shared/invoices/` without touching anything outside that path.
- **Automatic expiration:** Overnight grants expire on schedule, and any bundle can be revoked immediately from your phone.
- **Hard exclusions stay protected:** High-impact external actions and `always_allow` bypasses are enforced by our open-source safety rules (`packages/safety`), with owner/admin checks enforced on the server.
- **Morning summary cards:** If a bot hits an unapproved step while you are asleep, it pauses cleanly, leaves the approval open instead of timing out and discarding hours of work, and hands you a single **Approve & finish** card in the morning.

## 3. Why an on-device browser beats cloud VMs for personal web tasks

Cloud-hosted headless browsers run from datacenter IP ranges. Banks, airline portals, local portals, and everyday web apps frequently challenge or block datacenter browsers — and signing into personal accounts inside a remote cloud VM forces you to re-authenticate constantly.

Casama solves this with a **native in-app browser** built directly into our iOS, Android, macOS, Linux (WebKitGTK), and Windows (WebView2) apps:

- **Your real network and session:** Websites see a normal local browser on your device, with zero VM boot delay.
- **Watch live and take over in one tap:** You see every click and form fill on screen; if a login or checkout step needs you, you tap in, finish it, and hand control back.
- **Strict boundary:** The native browser only shows external websites the bot is browsing — every Casama screen and plugin UI stays native Flutter, and every sensitive action still obeys the same approval rules.

## Questions

### What happens if a Casama bot needs approval while I am asleep?

The run pauses cleanly at the checkpoint, keeps its state intact, and surfaces an **Approve & finish** summary card when you wake up so the bot can complete the remaining steps without starting over.

### Can I restrict an agent's permissions to a single folder?

Yes. Scoped action rules in Casama support path limits (`target.paths`) and automatic expiry so you can grant access to one project folder without opening your entire workspace.

### Why does Casama have both a cloud Linux computer and an on-device browser?

The cloud Linux sandbox is ideal for background routines, running code, shell tools, and file processing while your laptop is closed. The on-device browser handles interactive personal web tasks on sites that distrust datacenter IPs or require your local session.

## Related reading

- [How we sandbox AI agent computers with gVisor, warm sleep, and zero-wake file reads](https://casama.ai/blog/gvisor-warm-sleep-zero-wake-sandboxes)
- [2026 AI Agent Safety & Sandboxing Matrix](https://casama.ai/compare/ai-agent-safety-and-sandboxing-matrix-2026)
- [Which AI agents ask before they act?](https://casama.ai/learn/which-ai-agents-ask-before-they-act)

Get the app at https://casama.ai/download and sign up free
