the browser is the sandbox

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Browsers may now sandbox AI agents that edit local files without heavyweight local containers, cutting the deployment barrier for file-managing AI tools.

Read this as

Paul Kinlan, a Google web platform developer advocate, built Co-do, a browser demo where you pick a folder, add an API key, and chat with an AI that works on your files. Normally such tools need a heavy local container for security; Co-do instead uses the browser's own protections, which were built to safely run untrusted web code. Simon Willison highlights useful tricks, including a 'webkitdirectory' input that lets browsers read a folder of files.

Google's Paul Kinlan argues the browser's 30-year-old sandbox can safely run AI agents on local files, and demonstrates this with Co-do, a working prototype similar to Claude Cowork but without installing a multi-gigabyte local container. File System Access API support remains Chrome-only, a practical limit. Teams building agent tools could skip container overhead; the trade-off is that file contents are sent to whichever AI provider the user selects.

Kinlan maps the three sandbox requirements to browser APIs: File System Access API for the filesystem, CSP headers with <iframe sandbox> for code execution, and WebAssembly in Web Workers. Network rules can be applied via a double-iframe technique; <iframe sandbox> is thinly documented across browsers. Co-do configures an LLM provider with an API key and CSP-approved API calls. <input type="file" webkitdirectory> gives read-only directory access on Firefox, Safari and Chrome.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Co-do Paul Kinlan Google Claude Cowork File System Access API Simon Willison WebAssembly

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading