M30W-M1X

Moat — Security skill for Claude Code

Security community

Self-hosted Firecracker microVM sandbox for AI coding agents (Claude Code, Cursor, MCP).

How to install Moat

This entry records only its repository, not the path inside it, so there is no exact command to give. Open M30W-M1X/moat and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Moat does

Self-hosted Firecracker microVM sandbox for AI coding agents (Claude Code, Cursor, MCP). Hardware-isolated KVM Linux VMs with a secret firewall, egress filter, and audit log.

Alternatives in Security

  • Google Workspace Model Armor — Filter user-generated content for safety 21.6k ★
  • ThinkWatch — Self-hosted AI API and MCP gateway for organizations: SSO and RBAC, per-user identity for MCP tool calls, PII 817 ★
  • Pocketpaw — Your AI agent in 30 seconds 775 ★

README

Moat

**Give your agent root. Burn the VM.**

Moat is an open-source, self-hosted sandbox for AI coding agents and untrusted code. Every task runs inside its own disposable Firecracker microVM on KVM — separate Linux kernel, no host filesystem, no host network, no host credentials — then disappears the moment the task ends.

**Website & Docs:** https://m30w-m1x.github.io/moat/

No containers sharing your kernel. No third-party cloud holding your source code. One command on your Linux machine.


Why Moat

Coding agents install packages, execute generated scripts, and fetch from the internet on their own. Where that command runs decides what one bad tool call — or one prompt injection — can reach.

Where the command runs Kernel boundary Host files & credentials Your code stays local Cost per task
Directly on your host None Full access (~/.ssh, ~/.aws, browser cookies) Yes Free until it burns you
Docker / container Shared host kernel Exposed by container escapes or leaked mounts Yes Low
Hosted cloud sandbox Provider VM Isolated from laptop, sent to third-party servers No Per-minute bill + latency
Moat (Firecracker + KVM) Dedicated guest kernel per task None mounted; ingress secret firewall Yes — runs on your metal ~1 ms from a warm pool

60-second quickstart

Requires Linux `x86_64` with `/dev/kvm`.

# Install binaries, verified kernel + rootfs, starter config, and systemd unit
curl -fsSL https://raw.githubusercontent.com/M30W-M1X/moat/main/install.sh | sh

# Verify KVM, cgroup v2 delegation, Firecracker, and image digests
moat doctor

# Start the daemon
systemctl enable --now moatd

# Run your first command inside a throwaway microVM
moat run -- uname -a

Prefer a rootless install under `$HOME` (`~/.local/bin`, `~/.local/share/moat`, `~/.config/moat`)? Append `-s -- --user`.

Connect your AI agent (MCP)

Dro