abdulovia

Agent Vpn Sandbox — DevOps skill for Claude Code

DevOps community

Run AI coding agents (Claude Code, Codex CLI, Gemini CLI, Copilot CLI, or any CLI) in a Docker sandbox whose only network exit is your own VPN server.

How to install Agent Vpn Sandbox

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

What Agent Vpn Sandbox does

Run AI coding agents (Claude Code, Codex CLI, Gemini CLI, Copilot CLI, or any CLI) in a Docker sandbox whose only network exit is your own VPN server. Fail-closed: no IP leak, no fallback to your real IP. sing-box, WireGuard, VLESS, Shadowsocks.

Alternatives in DevOps

  • Mirrord — Run any process, on your machine or in an AI agent's environment, as if it were a pod in your Kubernetes clust 5.3k ★
  • Claudable — Claudable is an open-source web builder that leverages local CLI agents, such as Claude Code, Codex, Gemini CL 4k ★
  • Codeg — Aggregate and browse AI coding agent sessions (Claude Code, Codex, Gemini CLI, etc.) in one place 850 ★

README

agent-vpn-sandbox

**Run AI coding agents — Claude Code, Codex CLI, Gemini CLI, GitHub Copilot CLI, or any other CLI — in a Docker sandbox whose only way out is your own VPN server.** Fail-closed: if the tunnel is down, the sandbox has no network, and nothing falls back to your real IP address — an IP leak has no path here.

[![ci](https://github.com/abdulovia/agent-vpn-sandbox/actions/workflows/ci.yml/badge.svg)](https://github.com/abdulovia/agent-vpn-sandbox/actions/workflows/ci.yml) [![release](https://img.shields.io/github/v/release/abdulovia/agent-vpn-sandbox)](https://github.com/abdulovia/agent-vpn-sandbox/releases) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

English | [Русский](README.ru.md) | [简体中文](README.zh-CN.md) | [Español](README.es.md)

Why

A coding agent runs commands you did not write and talks to services you did not choose. Two things follow: it should not see more of your computer than the project needs, and the network it uses should be one you control.

A VPN switched on for the whole computer is a setting that gets switched off, or one that leaks while it reconnects. Here the exit is a property of the sandbox, not of the computer:

  • One exit, by construction. The agent's container has no egress of its own. It shares a namespace with a sing-box tunnel, and a firewall rule in that namespace lets nothing reach the network card except sing-box itself. Routing alone would not do: an unprivileged process can bind a socket to the interface and leave directly. The rule stops that.
  • Verified from the outside. Every 30 seconds, and again before any tool starts, echo services are asked which address they see. Two must name your server's address and none may name another. Otherwise the sandbox stays without network — the check never prints the wrong address, since that one could be yours.
  • DNS goes the same way. Every port-53 packet is captured and resolved over DoH through the tunnel. No resolver of the h