独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
V

valentinwust/ContainedClaude

Claude Code and Codex in a sandbox on a Slurm cluster

装之前:没有可直接复制的命令 · 许可证 MIT · 链接可访问

第一步:git clone https://github.com/valentinwust/ContainedClaude.git ~/ContainedClaude

在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
官方说明Claude Code and Codex in a sandbox on a Slurm cluster. Reads what you can read, writes only its project, submits jobs through a broker. Apocalypse averted.
★ 数取值
1 ★ · valentinwust/ContainedClaude · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
来源明细
从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
收录与活跃
收录于 2026-11-11 · 最近见到 2026-11-14 · 共见到 4 次 · 被 2 个来源列出
评分构成
综合分 203 · 1 ★ · 2 个来源 · repo
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 valentinwust/ContainedClaude;我们收录于 2026-11-11;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。

Run Claude Code and Codex on a Slurm cluster in a sandbox. Built for the curry c

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

own site.ini.
TL;DR
The agent, and everything it starts, reads everything you can read except credentials, writes only its
project folder and the folders you add, and runs cluster work only as Slurm jobs through cc-run. Those
jobs run in the same sandbox on the compute node.
Once: clone and run install.sh (below). Per project: containedclaude init DIR, then
containedclaude DIR; /login once in the first session.
On curry, projects lie below your home, /mnt/sds-hd/sd17l002/u/ or /mnt/sds-hd/sd17l002/p/. In a shared
folder everyone sets up their own sub-folder p/ / and shares data with --write.
Jobs get 4 CPUs / 32G / 4 h by default, at most 72 CPUs / 700G / 24 h each, and 4 GPU jobs at a time. A
session on the login node gets 32G of memory (/tmp included), 8 cores and 300 processes. Each project can
change these in .contained/config.ini.
containedclaude test DIR checks what should work, containedclaude doctor DIR what must be blocked, and
containedclaude update updates ContainedClaude, Claude Code and Codex.
> This is not perfect containment, so don't rely on it alone. It is a best effort against a confused or
> prompt-injected agent, not a proven security boundary, and it can't protect against bugs in the kernel,
> bubblewrap or apptainer. Don't give a contained agent data or credentials that must not leak (the network
> is open). Before you run anything from the project outside the sandbox, review what the agent changed; every
> session ends with a change report. Keep backups and version control. On curry, run every agent that can
> reach the SDS through ContainedClaude.
What exactly is allowed or blocked and why: EXPLANATIONS.md. How it works inside and how
to debug it: DEVELOPMENT.md.
## Install
Needs Linux with unprivileged user namespaces, bwrap, unshare, /usr/bin/python3 (3.6 or newer, no extra
packages), Claude Code, and for jobs Slurm and apptainer. Tested on curry (AlmaLinux 9, Python 3.9, bwrap
0.6.3, apptainer 1.5.5, Slurm 26.05).
bash
git clone https://github.com/valentinwust/ContainedClaude.git ~/ContainedClaude
~/ContainedClaude/install.sh # links containedclaude into ~/.local/bin, creates site.ini from site.curry.ini
On another cluster, start with ./install.sh site.example.ini and adapt site.ini (local, not in git):
partition, GPUs, shares to mount, limits and where projects may live. Uninstall:
~/ContainedClaude/uninstall.sh (--state also removes the contained Claude and Codex login and config),
then delete the clone. Projects stay normal folders.
Optional, both undone by uninstall.sh:
install.sh --shell-guard adds a line to ~/.bashrc (or ~/.zshrc): claude or codex typed in a
contained project asks first (Enter: contained, u: as usual; command claude skips it). cclaude and
ccodex start them contained in the current folder's project, cclaude server the Remote Control server.
install.sh --extras adds the compaction notice and idle compaction ([claude], see Configure) to your own
Claude Code too, in ~/.claude/settings.json, with the values of site.ini as they are then: run it again
after changing them.
## Set up a project
bash
containedclaude init ~/projects/myanalysis
# a shared project on the SDS: your own sub-folder is the project, the shared data folder is writable too
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/valentinwust-containedclaude/)
来源
github · https://github.com/valentinwust/ContainedClaude
按领域浏览
开源项目
Traction
1 ★
收录来源
2 个独立来源
收录于
今天

同类推荐

全部 1,671 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引