repowiserepowise

lee-xeo / claude-cage Architecture and code health

Cage:为 Claude 特化的轻量化虚拟机,彻底杜绝网络泄露。多平台适配,支持多账号管理、远程部署、移动端操控。

★ 7,068stars on GitHubGoMIT

Claude Code, Cursor, Codex or VS Code. No key. You approve one sign-in in your browser.

Repowise maps public repos from their source. Not affiliated with lee-xeo. What is Repowise?

github.com/lee-xeo/claude-cageIndexed at 35d719f

What is claude-cage?

claude-cage is a desktop app for running Claude Code inside an isolated virtual machine on your own computer. Its core idea is to place that virtual machine behind its own network proxy, and to open project folders, terminals and a browser together in one workbench. The main language is Go, with a browser-based interface and native desktop and mobile parts. Its code health is 7.4 out of 10 (Good), ranked #121 of 4,000+ indexed repos. The last commit to claude-cage was on Nov 16, 2026, and 27 people have contributed.

As of commit 35d719f, indexed Nov 17, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.

For agentsclaude-cage.md

Repo facts: type, license, health, rank, contributors
claude-cage facts
LicenseMIT
Code health7.4 / 10 (Good)
Health rank#121 of 4,000+ indexed repos
Last commitNov 16, 2026
Contributors27
Bus factor1
Size2,668 files, 316,631 lines

Explore claude-cage

Ask about this code in your agent

This connects Repowise to claude-cage's code. It does not install claude-cage.

Useful if you want to change or fork claude-cage: your agent can ask how it is put together and get answers that cite its files.

Ask about claude-cage

Answers come from claude-cage's README and source, with the files they cite. Two free answers a day without an account.

Featured answer

claude-cage is a desktop app for running Claude Code inside a virtual machine on your own computer, with that virtual machine placed behind its own network proxy. The native shell in the desktop directory runs the app locally and handles checking for, downloading and installing newer versions. The browser interface in ui/src/main.jsx lets you open projects, run Claude Code terminals, read diagnostics and change settings, while the Go packages under internal create, run and inspect the sandboxed agent virtual machines. The mobile directory holds a phone app that pairs with a computer so you can browse projects, resume sessions and answer tool approval prompts. By file count, the largest layers are Service with 779 files, Application with 476 and Docs & Tooling with 370, followed by CLI with 129 and UI with 78. To start reading, open cmd/agent-vm/main.go for a Go entry point, agent-vm.sh for the shell function that passes arguments to the VM setup script, and ui/src/main.jsx for the interface.

Files per layer in claude-cage10 layers.

Basis: Inferred · knowledge graph· as of 35d719f

Want this for your own codebase? Map your repo free

About this page

Get a page like this for your own codebase

Repowise built this map of lee-xeo/claude-cage from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.

Free for 2 public repos, with a page like this one. No card. See how Repowise works

Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub

lee-xeo/claude-cage FAQ

What is claude-cage?

claude-cage is a desktop app that runs Claude Code inside an isolated virtual machine on your own computer. It runs behind its own network proxy and opens project folders, terminals and a browser in one workbench.

How does claude-cage work?

claude-cage starts a sandboxed virtual machine for each environment and connects the desktop workbench to it. Only the default workspace and project folders you explicitly open are shared with that machine.

What language is claude-cage written in?

claude-cage is written mainly in Go. Its browser interface uses JavaScript, and it also includes shell, Swift, C# and Python files.

How is the claude-cage code organized?

claude-cage keeps the Go packages that manage virtual machines in internal and its entry points in cmd. The browser interface lives in ui, the native desktop shell in desktop, and the phone app in mobile.

Who is claude-cage for?

claude-cage is for people who want to work with Claude on their own machine while keeping its network traffic and files contained. It keeps tools, files and login state inside the virtual machine.

What license does claude-cage use?

claude-cage is released under the MIT license, as stated by the license id MIT. Bundled components keep their own licenses.

Code health

7.3out of 10Good

Hotspots average 4.9, the place fixes pay off most.

On the leaderboards:#8 of 28 Go repos

Key features of claude-cage

  • Runs Claude Code inside an isolated virtual machine on your own computer, behind its own network proxy.
  • Shares only the default workspace and the project folders you explicitly open with the virtual machine.
  • Manages proxy subscriptions, node selection and exit checks, and keeps the environment offline when a key check fails.
  • Keeps tools, files and login state on a virtual disk so work can continue between sessions.
  • Pairs a phone with a computer to resume Claude Code sessions and answer tool approval prompts.

How lee-xeo/claude-cage works

The native shell in the desktop directory runs the app on the user's machine and checks for, downloads and installs newer versions. The browser interface in ui/src/main.jsx is where a user opens projects, runs Claude Code terminals, reads diagnostics and changes settings. The Go packages under internal create, run and inspect the sandboxed agent virtual machines, from the workbench down to the guest operating systems. cmd/agent-vm/main.go is one of the Go entry points, and agent-vm.sh defines the shell function that passes a user's arguments to the setup script that prepares the virtual machine. The mobile directory holds the phone app, which pairs with a computer and lets you browse projects, resume sessions and answer tool approval prompts.

The codebase has 2,668 files and 17,153 symbols in 13 modules, led by Go, JavaScript and Shell. Code health is 7.3 out of 10, rated good.