clodpod

作者 webcoyote已验证

Run AI agents isolated inside an macOS virtual machine. Configured to run Claude Code, OpenAI Codex, Cursor Agent, Google Gemini.

115
Stars
15
Forks
Shell
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/webcoyote/clodpod

快速入门

使用 clodpod 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

ClodPod - Run AI agents in a macOS VM sandbox

ClodPod creates a macOS virtual machine sandbox configured to run applications like Claude Code, Open AI Codex, Google Gemini, and Cursor Agent. It facilitates disabling AI permission prompts so you can get work done without risking your entire computer.

ClodPod maps any number of your project directories into the virtual machine so AI agents can work on your code while remaining isolated from your host computer.

ClodPod virtual machines include Xcode and common development tools, and it's easy to extend to add your own development tools and configuration files.


Key features

  • Builds a virtual machine and launches AI agents with access to your projects
  • Enables mapping multiple projects in the same virtual machine simultaneously
  • Open multiple AI agents sessions and shell prompts, or use the GUI
  • Headless mode for CI/CD workflows with --no-graphics
  • Includes Xcode and common development tools; you can add your own tools too
  • Fast rebuild and relaunch using a three-layer APFS CoW caching system
  • Named VM instances for switching between projects or worktree branches
  • Parallel VM execution with configurable memory budget

Usage:

# Clone clodpod
git clone https://github.com/webcoyote/clodpod ~/projects/clodpod

# Create an alias for clod or add it to your path
alias clod="$HOME/projects/clodpod/clod"
# - or -
alias clod="$HOME/projects/clodpod/clod --no-graphics"
# - or -
PATH="$PATH:"$HOME/projects/clodpod"

# Note: for the first run you'll want to start in the project directory,
# which will get remembered. Use add/remove for changing projects.
cd "YOUR PROJECT DIRECTORY"

# Run Claude Code
clod claude
# also clod cl"

# Run OpenAI Codex
clod codex
# also "clod co"

# Run Google Gemini
clod gemini
# also "clod g"

# Or a command shell
clod shell
# also "clod s"

# Start virtual machine (useful for utilizing Virtual Machine GUI apps)
clod start

# Enable passwordless sudo in VM
ALLOW_SUDO=true clod build-base

# Disable passwordless sudo in VM (default)
ALLOW_SUDO=false clod build-base

# Stop all clodpod virtual machines
clod stop

# Add/remove/list projects
clod add "THIRD PROJECT DIRECTORY"          # also "clod a ..."
clod remove "FOURTH PROJECT DIRECTORY"      # also "clod rm ..."
clod list                                   # also "clod l", "clod ls"

Named VM instances

Create named VMs to keep separate environments for different projects or worktree branches. Each is a cheap APFS CoW clone of the base VM.

# Create a named VM with mounted directories
clod create myproject --dir project:/path/to/project
clod create feature-a --dir work:/path/to/repo/.worktrees/feature-a

# SSH into a named VM
clod shell myproject

# Multiple VMs can run simultaneously if memory budget allows
clod shell feature-a    # starts alongside myproject

# List named VMs
clod list

# Add or replace a mount on an existing instance
clod set --dir data:/Volumes/data myproject

# Remove a mount
clod set --dir-remove data myproject

# Clean up
clod destroy myproject
clod destroy --all

Memory budget

By default, VMs share a memory budget of 5/8 of host RAM. You can configure per-instance RAM and the total budget:

# Set RAM for a specific instance (takes effect on next launch)
clod set --ram 8G myproject

# Set workspace memory budget
clod set --max-memory 16G

# Create with specific RAM
clod create dev --ram 10G --dir project:/path

# Override RAM for one session
clod shell --ram 6G dev

# Split budget across multiple VMs (default: 1)
clod set --vm-count 2

# Reset to dynamic (use remaining budget)
clod set --ram default dev
clod set --max-memory default
clod set --vm-count default

Port forwarding

Forward host ports into the VM via SSH reverse tunnels so VM agents can reach host resources such as databases and local LLMs.

clod --forward-port 8080 --forward-port 3000 claude
CLOD_FORWARD_PORTS=8080,3000 clod shell dev    # env var alternative

Both methods can be combined.

macOS versions

By default ClodPod uses the ghcr.io/cirruslabs/macos-tahoe-xcode:latest VM flavor, but this is configurable by setting the MACOS_VERSION and MACOS_FLAVOR environment variables when building the VM:

MACOS_VERSION=sequoia MACOS_FLAVOR=vanilla clod shell

See the cirrus packages page on Github to see the available alternatives.

Setup notes

By default the guest CPU count is set to be identical to the host system, and guest memory to 5/8 * host memory (NOTE1) to provide resources for compiling projects in Xcode.

NOTE1: This value was empirically calculated (N=1) to leave plenty of memory for web-browsing, which I shouldn't be doing anyway.

Optional virtual machine configuration (example):

tart set clodpod-xcode --cpu 8
tart set clodpod-xcode --memory "$(( $(sysctl -n hw.memsize) * 2 / 3 / 1024 / 1024 ))"

Add your own tools and configuration

To add custom configuration; see ./guest/home/README.md.

Per-project Homebrew dependencies (Brewfile)

If a mounted project contains a Brewfile at its root, ClodPod will reconcile it via brew bundle automatically:

  • At instance creation (clod create): every mounted project's Brewfile is applied.
  • At every shell entry (clod claude, clod shell, etc.): the active project's Brewfile is checked with brew bundle check; install only runs on drift, so steady-state cost is negligible.

The default file is ./Brewfile; override per-session by setting the standard HOMEBREW_BUNDLE_FILE env var. Install uses --no-upgrade, so pinned versions stay pinned. Failures emit a loud warning but never block the VM or shell from starting. ClodPod does not run brew bundle cleanup — removal stays a manual call.

Background

This project exists because I was foolishly trying to find a way to insulate my computer from destruction by rogue AI agents when running (e.g.) Claude Code with --dangerously-skip-permissions (to avoid frequent "do you want to proceed?" dialogs), when perhaps I should have simply learned to accept their infrequent rages.

I experimented with running AI agents inside docker and podman containers (i.e. in Linux), but as my goal ultimate is to build apps using Xcode, I wanted to stick with OSX.

I considered using xtool, but instead went down a different rabbit hole and tried providing the containers with limited access from the guest OS to my host computer using GNU Rush (Remote User SHell). This worked but was limiting.

I then tried limiting filesystem access using exec-sandbox, and it works in a "proof-of-concept" sort of way, but the attack surface area was too large. I expect I'll come back to this because sandboxing is quite interesting all by itself.

Eventually I settled on running the whole thing inside a virtual machine, which is probably where I should have started.

In any event, this project is the result. Hope you like it.

Alternatives

  • SandVault runs AI agents in a limited user account on macOS.
  • Chamber is a proof-of-concept app for running Claude Code inside a macOS virtual machine.
  • Claude Code Sandbox runs Claude Code in a Docker container (Linux)

License

Apache License, Version 2.0

ClodPod Copyright © 2025 Patrick Wyatt

See LICENSE.md for details.

Contributors

We welcome contributions and bug reports.

See CONTRIBUTORS.md for the list of contributors to this project.

Thanks to

This project builds on the great works of other open-source authors:

  • Tart: macOS and Linux VMs on Apple Silicon (licensed under FSL-1.1-MIT; free for individuals, commercial use may require a paid license)
  • Homebrew: 🍺 The missing package manager for macOS (or Linux)
  • Sqlite: The most used database engine in the world
  • Shellcheck: finds bugs in your shell scripts
  • uv: An extremely fast Python package and project manager, written in Rust
  • Claude Code Hooks Mastery: Quickly master how to use Claude Code hooks to add deterministic (or non-deterministic) control over Claude Code's behavior
  • StatusLine: project status information for Claude Code

... as well as GNU, BSD, Linux, Git, Sqlite, Node, Python, netcat, jq, and more. "We stand upon the shoulders of giants."

常见问题

What is clodpod?

clodpod is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by webcoyote. Run AI agents isolated inside an macOS virtual machine. Configured to run Claude Code, OpenAI Codex, Cursor Agent, Google Gemini. It has 115 GitHub stars.

Is clodpod safe to use?

Yes. clodpod passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install clodpod?

Clone the repository with "git clone https://github.com/webcoyote/clodpod" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is clodpod written in?

clodpod is primarily written in Shell. It is open-source under webcoyote on GitHub, so you can review or fork the full source.

Are there alternatives to clodpod?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh clodpod against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情