Skip to content
项目

关于

A plug-and-play dev container for all your projects, and the AI agents building them. Locked down by default.

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+5
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

o3s logo

o3s

Everything ready. Everything parallel. Everything locked down.

Agents work side by side in the cage alongside predefined and self-built features; every connection they open goes through o3s on the host, which holds the allowlist and the secrets, and is either allowed out to the internet or denied

Chrome Headless Shell Claude Code Docker (DinD) Gitea CLI (tea) GitHub CLI (gh) GitLab CLI (glab) Go Kubernetes (KinD) LaTeX Node OpenCode Python Rust

If you are not willing to trade security for productivity, o3s is a match. Let an agent generate every line of code, and review every line by hand or none at all. Either way, the features that shape your agents' environment, the hosts they reach and the secrets they can read stay yours to decide.

Anthropic and OpenAI both ship a reference devcontainer, deliberately minimal: Anthropic's applies a short hardcoded allowlist from inside the container, and OpenAI's tells you to add your own DNS filtering. o3s starts where they stop: productivity on steroids, and deterministic enforcement (harness) to get there.

We created o3s to keep pace: trusted environments, several projects at once, and several features inside each. AI will not be the death of good engineering. It is the golden era of agentic software engineers. This is how we build with it and still stand behind every line that ships.

Commands

Run o3s alone for a menu that leads through each of them.

firewall

# Allows the hosts the cage may reach, for good or for a set time
o3s firewall add github.com --port 22 --port 443 --for 1h

secret

# Lets the cage use a secret while its value stays on the host
echo "$EXAMPLE_TOKEN" | o3s secret add EXAMPLE_TOKEN

feature store

# Selects where the cage's tools come from, curated, reproducible and locked down
o3s feature store add ghcr.io/agentic-software-engineers/devcontainer-features

feature

# Installs a tool properly, pinned and wired to its hosts, env and config
o3s feature add ghcr.io/agentic-software-engineers/devcontainer-features/claude-code

project

# Clones a repository into ~/projects in the cage and adds it to the workspace
o3s project add torvalds/linux

cage

# Opens a shell in the home's cage
o3s cage shell

update

# Brings the binary, its images, the stack and your features forward
o3s update

home

# Makes a second home under a name of its own, works on it from any folder, and lists every home
o3s init --name dev
o3s --home dev cage shell
o3s home ls

Getting started

Prerequisites: Linux or macOS on amd64 or arm64, QEMU on Linux, which runs the VM through Lima the installer brings along, VS Code with the Dev Containers extension, and tar and xz. A home without its VM runs on Docker with Compose.

  1. Install o3s.
    curl -fsSL https://github.com/agentic-software-engineers/o3s/releases/latest/download/install.sh | sh
    
  2. Create your home.
    o3s init
    
  3. Open its cage.
    o3s cage shell
    
    It also opens in VS Code through the Remote - SSH extension for a home in its VM.
    o3s cage ide
    

[!WARNING] Only ~/features, ~/o3s, and ~/projects survive a rebuild in the cage. Keep your work in ~/projects, where o3s project add puts it.

What you get

Security

Your security model lives in one file, which hosts the cage reaches and which secrets it uses. Their values stay on the host, and the proxy injects them on the way out.

{
  "$schema": "./.devcontainer/o3s.schema.json",
  "stores": [
    { "id": "ghcr.io/devcontainers/features" },
    { "id": "ghcr.io/agentic-software-engineers/devcontainer-features" }
  ],
  "hosts": [
    // yours
    { "name": "github.com", "ports": [22, 443], "by": ["user"] },

    // claude-code
    { "name": "api.anthropic.com", "ports": [443], "secret": "ANTHROPIC_API_KEY", "inject": ["header"], "by": ["ghcr.io/agentic-software-engineers/devcontainer-features/claude-code"] },
    { "name": "platform.claude.com", "ports": [443], "by": ["ghcr.io/agentic-software-engineers/devcontainer-features/claude-code"] },

    // dind
    { "name": "*.docker.io", "ports": [443], "by": ["ghcr.io/agentic-software-engineers/devcontainer-features/dind"] },
    { "name": "production.cloudfront.docker.com", "ports": [443], "by": ["ghcr.io/agentic-software-engineers/devcontainer-features/dind"] },

    // go
    { "name": "proxy.golang.org", "ports": [443], "by": ["ghcr.io/agentic-software-engineers/devcontainer-features/go"] },
    { "name": "sum.golang.org", "ports": [443], "by": ["ghcr.io/agentic-software-engineers/devcontainer-features/go"] },

    // rust
    { "name": "index.crates.io", "ports": [443], "by": ["ghcr.io/agentic-software-engineers/devcontainer-features/rust"] },
    { "name": "static.crates.io", "ports": [443], "by": ["ghcr.io/agentic-software-engineers/devcontainer-features/rust"] },
    { "name": "static.rust-lang.org", "ports": [443], "by": ["ghcr.io/agentic-software-engineers/devcontainer-features/rust"] }
  ]
}

Productivity

Several agents work side by side, each on its own branch or worktree. Everything lands in one view for you to review.

{
  "folders": [
    { "name": "o3s", "path": "/home/ubuntu/o3s" },
    { "name": "eval-harness", "path": "/home/ubuntu/projects/eval-harness" },
    { "name": "inference-engine", "path": "/home/ubuntu/projects/inference-engine" },
    { "name": "inference-engine.worktrees", "path": "/home/ubuntu/projects/inference-engine.worktrees" },
    { "name": "triton-kernels", "path": "/home/ubuntu/projects/triton-kernels" },
    { "name": "triton-kernels.worktrees", "path": "/home/ubuntu/projects/triton-kernels.worktrees" },
    { "name": "wafer-scale-compiler", "path": "/home/ubuntu/projects/wafer-scale-compiler" }
  ]
}

Velocity

Fail fast, fix faster, ship fastest. Your agents see every repository at once, the best context they can get. With Docker, Compose and Kubernetes inside the cage they run your whole stack there, break it and bring it back without touching anything real.

{
  "features": {
    "ghcr.io/agentic-software-engineers/devcontainer-features/claude-code:3": {
      "stateDir": "/home/ubuntu/features/ghcr.io/agentic-software-engineers/devcontainer-features/claude-code"
    },
    "ghcr.io/agentic-software-engineers/devcontainer-features/dind:7": {
      "stateDir": "/home/ubuntu/features/ghcr.io/agentic-software-engineers/devcontainer-features/dind"
    },
    "ghcr.io/agentic-software-engineers/devcontainer-features/go:2": {
      "stateDir": "/home/ubuntu/features/ghcr.io/agentic-software-engineers/devcontainer-features/go"
    },
    "ghcr.io/agentic-software-engineers/devcontainer-features/rust:2": {
      "stateDir": "/home/ubuntu/features/ghcr.io/agentic-software-engineers/devcontainer-features/rust"
    }
  }
}

References

[!TIP] Is o3s worth your limited time? Decide on your security model:

My agent is actively malicious and tries to escape
❌ No, a VM boundary is stronger than containers.

My long-leash-but-not-weaponized agent needs deterministic boundaries
✅ Yes, the architecture delivers security coupled with convenience.

See the comparison for others working on the same problem.

Something here you would do differently? Open an issue, send a pull request, or just get in touch. And if one of the others fits you better, take it, as long as you keep both your security and your productivity. You are always welcome back.

What the name means

Open

Read every line, shape it however you like, and make the whole setup truly your own to trust and extend.

Secure

Give AI agents and untrusted code a long leash while you control the network they reach and the secrets they read.

Software

Built for engineers and their agents to take your whole stack from prototype to production with minimal friction.

Suite

Agents, containers, languages, and all your projects, wired together into one platform you just open and use.

open secure software suite, or osss, shortened to o3s.

探索相关项目

加载中…