---
title: "Cosmonic Desktop: Run Sandboxed AI Agents and Tools Locally, Free"
description: "Run AI agents and their tools in local WebAssembly sandboxes, with no access to your files, network or keys until you grant it. Free; macOS, Windows, Linux."
canonical: "https://cosmonic.com/desktop/"
---

Public beta · Free · macOS, Windows & Linux

# Sandbox your agents, tools, and apps.

Cosmonic Desktop runs **AI agents, their tools and your apps** on your own machine. Each one starts completely isolated with no access to your files, network, or keys until you grant it.

[Download Cosmonic Desktop (Beta)](https://learn.cosmonic.com/cosmonic-desktop-beta) [See how it works](https://cosmonic.com/desktop/#why)

No account required· Run your first sandbox in minutes

[Cosmonic Desktop: securely build and run your everyday apps.](https://cosmonic.com/desktop/hero-night.mp4)

Sandboxed agents

## Run an agent with nothing but its grants

Pick an agent on the Agents page, choose a model, and give it a folder or the tools it needs. The agent runs as a WebAssembly component with no network, files or API keys of its own. Desktop makes every model call and holds the key, and each tool gets only its own grant. Run Pi, OpenAI Codex or Goose, or [build your own with the Agent SDK](https://cosmonic.com/agent-sdk/).

Build with your agent

## Prompt to a sandboxed app, instantly

Bring your own coding agent. Install the `cosmonic-sandbox` skill, or connect Desktop's MCP server, and the code your agent writes lands in a sandbox you can read before it runs. The coding agent itself keeps running with your permissions; what it builds runs in the sandbox.

Works with the coding agents you already use

Claude Code Codex Gemini CLI Antigravity Kiro OpenClaw opencode Hermes Agent Pi Cowork Cursor Cursor CLI GitHub Copilot Cline Zed Goose Kilo Code Crush Augment CLI Trae Warp

Cosmonic Desktop — Build

[From a sentence to a sandboxed app, reaching Running in seconds.](https://cosmonic.com/desktop/screenshots/build-to-running.mp4)

*From a sentence to a sandboxed app, reaching Running in seconds.*

Tiny footprint

## Fast enough to sandbox everything, small enough to run it all

A fresh sandbox per call is cheap, and idle workloads cost nothing. Secure every tool your agent touches without compromises.

0.3–6 MB

per sandboxed agent harness, packaged, where container images for agent harnesses run 86 MB to 1.3 GB

1 per tool

every tool gets a sandbox of its own, with only its own grants

0 idle

scales to zero when nothing's calling, then wakes on demand

Packaged sizes: the harnesses in the [agent density benchmark](https://cosmonic.com/control/agent-density/) are 283 KB to 5.9 MB as components; 11 agent harness container images run 86 MB to 1.3 GB compressed. Under the hood, each workload is a WebAssembly component running on CNCF [wasmCloud](https://wasmcloud.com/), so you can deploy at scale and you're never locked in.

How it works

## Code only gets what you grant

Every workload starts with **zero authority**: no filesystem, no network, no environment, no clock. It gets exactly the capabilities you grant and nothing else, so a poisoned tool or a tricked agent can reach only what you granted. Open **Inspect** to see the whole boundary before anything runs.

Inspect · read before it runs

github-mcp Component 1.9 MB on disk

Can reach only what you granted

Network api.github.com

Never granted never requested, never reachable

All other network

Your files & home folder

Secrets & keys

*A real MCP server from the built-in app catalog, seen in Inspect: it reaches GitHub’s API and nothing else.*

In the box

## Everything you need to run agents and tools locally

Agents

Run Pi, Codex, Goose or your own agent, each tool with its own grant.

Launchpad

A catalog of ready-made, sandboxed apps and MCP servers.

Build

Prompt-to-sandboxed-app, agent or tool with your own coding agent.

Tools catalog

Add MCP servers and typed tools, and decide which ones agents may load.

Models

Pick a local or hosted model per session. Desktop holds the keys.

Inspect

Review the capabilities of any app.

MCP Inspector

Try a server's tools by hand, then hand it to your agent.

Local inference

Point it at Ollama so your tools call a model that never leaves your machine.

cosmonic CLI

Scaffold, dev-loop, and deploy from your terminal.

Four ways to start

## Get started in minutes

Install Desktop and pick a starting point. Whichever you choose, the code runs deny-by-default and you see its boundary before it starts.

Run something now

### Pull from the Launchpad

Grab a ready-made, already-sandboxed app or MCP server from the built-in catalog and deploy it in a click. Review what it can reach, then run it.

Build your own

### Describe an app in Build

Say what you want in plain language. Your coding agent builds and deploys in a sandbox.

Arm your agent

### Give your agent a sandboxed tool

Build an MCP server and register it with Claude Code, Cursor, and other agents in one step. Your agent gets a new tool in your sandbox.

Build an agent

### Write your own agent

Start from the [Agent SDK quickstart](https://cosmonic.com/docs/agent-sdk/build-your-first-agent/) and run your agent on the Agents page. Desktop checks it can't reach the network or your files before it runs.

FAQ

## Running agents safely, answered

**Can Cosmonic Desktop run an AI agent in a sandbox?**

Yes. On the Agents page, an agent such as Pi, OpenAI Codex or Goose runs as a WebAssembly component with no network, files or API keys of its own. Desktop makes every model call, and each tool the agent uses gets only the access you grant.

**Can I build my own agent?**

Yes. The open source [Cosmonic Agent SDK](https://cosmonic.com/agent-sdk/) gives you typed interfaces for models, tools and sessions. Build an agent in Rust, add it on the Agents page, and Desktop checks that it imports no network or files before it runs. The [Quickstart](https://cosmonic.com/docs/agent-sdk/build-your-first-agent/) walks through it.

**Is it safe to run the code my AI coding agent writes?**

A native coding agent runs with your permissions, and Desktop does not change that. Desktop runs the code and MCP servers it builds, each in its own WebAssembly sandbox with deny-all egress: no access to your files, network, or keys until you grant it.

**How do I run the code Claude Code writes in a sandbox?**

Install Cosmonic Desktop and connect it to Claude Code with its MCP server. Claude Code then builds and runs its code and MCP servers as sandboxed workloads on your machine, each starting with deny-all egress. The [Claude Code guide](https://cosmonic.com/docs/desktop/agents/claude-code-sandbox/) walks through the setup.

**How do I sandbox an MCP server for Claude Code or Cursor?**

Run the MCP server as a Cosmonic Desktop workload. It starts with no file, network, or credential access; you grant exactly the capabilities it needs, and everything else stays denied.

**How do I run an MCP server locally?**

Cosmonic Desktop runs MCP servers on your own machine (no cloud sandbox required), each isolated with deny-all egress by default. It's free on macOS, Windows, and Linux.

**Is Cosmonic Desktop free, and which platforms does it run on?**

Yes. Cosmonic Desktop is free and runs on macOS, Windows, and Linux. It's currently in public beta.

Public beta

## Cleared for launch

Download Cosmonic Desktop and run your first sandboxed workload in minutes. Free forever for personal use, local, and yours.

[Download Cosmonic Desktop (Beta)](https://learn.cosmonic.com/cosmonic-desktop-beta) [How the AI sandbox works](https://cosmonic.com/ai-sandbox/)

macOS · Windows · Linux

It's an early beta. Expect a few rough edges, and [tell us what breaks](mailto:product.feedback@cosmonic.com?subject=Cosmonic%20Desktop%20beta%20feedback).
