OpenClaw sandbox: Python 3.13, Node 26, Playwright with Xvfb, financial data libs, CJK ready.
368
为 OpenClaw 设计的增强型沙箱镜像,基于 Debian Trixie,预装 Python 3.13、Node 26 和丰富的工具链,适用于 AI Agent 的安全隔离执行环境。
linux/amd64 和 linux/arm64(包括 Apple Silicon)docker pull aosolao/openclaw-sandbox:py313-node26-trixie
# 设置沙箱镜像
openclaw config set agents.defaults.sandbox.docker.image "aosolao/openclaw-sandbox:py313-node26-trixie"
# 启用沙箱
openclaw config set agents.defaults.sandbox.mode "all"
openclaw config set agents.defaults.sandbox.scope "agent"
# 重启 Gateway
openclaw gateway restart
nikolaik/python-nodejs:python3.13-nodejs26py313-node26-trixielinux/amd64, linux/arm64sandbox 用户(UID 501),某些系统级操作可能受限--build-arg 切换完整更新日志请访问 GitHub Releases
| 类别 | 工具 |
|---|---|
| HTTP 客户端 | requests, httpx, aiohttp, urllib3 |
| 数据处理 | pandas, numpy, scipy, polars, pyarrow, duckdb |
| 金融数据 | yfinance, akshare, pandas-datareader |
| 网页解析 | beautifulsoup4, lxml, html5lib |
| 文件处理 | openpyxl, xlsxwriter, odfpy, python-docx, python-pptx, Pillow, pdfplumber, pypdf |
| 配置格式 | pyyaml, toml, python-dotenv |
| 终端/可视化 | rich, tqdm, click, typer, matplotlib, plotly |
| 浏览器自动化 | playwright, playwright-stealth, selenium, scrapy, fake-useragent |
| 加密/SSH | cryptography, paramiko |
| 时间处理 | python-dateutil, pytz, tzdata |
| 其他 | pydantic, tenacity, cachetools, psutil, uv |
/opt/ms-playwright)| 变量 | 说明 | 默认值 |
|---|---|---|
TZ | 时区 | UTC |
LANG / LC_ALL | 字符编码 | C.UTF-8 |
DISPLAY | X11 显示 | :99(Xvfb 自动设置) |
PLAYWRIGHT_BROWSERS_PATH | 浏览器路径 | /opt/ms-playwright |
sandbox (UID 501)/home/sandboxsleep infinity(由 OpenClaw 通过 docker exec 注入命令)docker run -d \
--name openclaw-sandbox \
-v ~/.openclaw/workspace:/workspace:rw \
-v ~/.openclaw/workspace/openclaw-work:/workspace-project:rw \
-e TZ=Asia/Shanghai \
aosolao/openclaw-sandbox:py313-node26-trixie
如需自定义镜像,可从源码构建:
# 克隆仓库
git clone https://github.com/aosolao/elysia-openclaw-nyandoc.git
cd elysia-openclaw-nyandoc/docker-sandbox
# 单架构构建
docker build -t my-openclaw-sandbox:latest .
# 多架构构建(需要 buildx)
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t my-openclaw-sandbox:latest \
--push .
| 参数 | 说明 | 默认值 |
|---|---|---|
APT_MIRROR | Debian 软件源 | https://mirrors.tuna.tsinghua.edu.cn |
PYPI_MIRROR | PyPI 镜像 | https://pypi.tuna.tsinghua.edu.cn/simple |
NPM_MIRROR | npm 镜像 | https://registry.npmmirror.com |
PLAYWRIGHT_MIRROR | Playwright CDN | https://cdn.playwright.dev |
TZ | 时区 | UTC |
海外构建示例(使用官方源):
docker build \
--build-arg APT_MIRROR="http://deb.debian.org" \
--build-arg PYPI_MIRROR="https://pypi.org/simple" \
--build-arg NPM_MIRROR="https://registry.npmjs.org" \
-t my-openclaw-sandbox:latest .
完整配置指南请访问项目仓库:
本镜像的 Dockerfile 和文档基于 CC BY-NC-SA 4.0 许可证发布。
预装的软件包遵循各自的开源许可证。
欢迎提交 Issue 和 Pull Request!
Made with ❤️ for the OpenClaw community
Content type
Image
Digest
sha256:8d5b85e1b…
Size
1.9 GB
Last updated
26 days ago
docker pull aosolao/openclaw-sandbox:py313-node26-trixie-20260824