GitHub radar

Run Claude Code in a separate virtual machine, away from your files

Claude Cage runs the official Claude Code and Claude Desktop inside a small separate Linux system on your computer. The agent works in its own space and reaches your computer only when you allow it.

It is a desktop app that creates a lightweight virtual machine (a separate computer inside yours) running Debian 13, where Claude works. The agent gets your computer's tools through MCP plugins (a standard way to give agents tools), and you confirm every call.

When it helps

Use it if you don't want the agent to see your whole computer, your Claude login, browser profile and SSH keys. If plain Claude Code works for you and you have no proxy of your own, you don't need Cage.

Pros

  • The agent sees only the workspace and the projects you open
  • You approve every call the agent makes outside its space
  • If the proxy fails, no traffic goes out around it
  • You can continue chats from your phone or move the environment to your server

Cons

  • You need your own proxy and your own Claude account
  • Projects inside one Cage can see each other's files
  • Windows and Linux on ARM processors are not supported yet

How to set it up — step by step

  1. 1Open Codex or another agent and send it the text from the block below.
  2. 2To install it yourself, download the app for your system from claude-cage.com and install it.
  3. 3Set up your proxy in the app: import a Clash or Mihomo subscription, pick a node and apply it.
  4. 4Start the environment. On first launch choose where to store its files and wait for setup to finish.
  5. 5Open your project folder, create a terminal, type claude and sign in to your account in the built-in browser.
  6. 6Make sure the project is in Git or backed up: the agent's edits change your real files.

Text for your agent

Copy this and send it to your agent — Claude Code, Codex, any of them:

Install Claude Cage following the README at https://github.com/Lee-xeo/Claude-Cage: download the installer for my system and prepare the first launch. Ask me which proxy and which Claude account to use, and show me what you got at the end.

Runs on a regular computer: macOS 14 or newer, Windows 10 or 11, or Debian or Ubuntu. You need your own proxy and your own Claude account. The README does not say how much memory the virtual machine needs.

Open on GitHub