safeclaw

作者 ykdojo

The easiest way to run multiple Claude Code sessions, each in its own container, with a dashboard to manage them all. Quick setup with battle-tested sensible defaults and skills.

151
Stars
17
Forks
HTML
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/ykdojo/safeclaw

快速入门

使用 safeclaw 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

SafeClaw

The easiest way to run multiple Claude Code sessions, each in its own container, with a dashboard to manage them all. Quick setup with battle-tested sensible defaults and skills.

https://github.com/user-attachments/assets/e282ed8f-3ec9-4a9e-aa9e-4bc84f9281e9

See architecture.md for design details.

Why a container?

  • Isolated - Claude Code runs with bypass permissions, but can't touch your host machine.
  • Lightweight - Spin up, stop, or delete sessions in seconds. Much faster than a full VM.
  • Portable - Works on any machine with Docker. Same environment everywhere.

This lets you run Claude Code with --dangerously-skip-permissions safely and fast.

One session per container

Each Claude Code session runs in its own container. Spin up as many as you need - they're isolated from each other and start in seconds. Run different research tasks, projects, or experiments in parallel without interference. Conversation history is automatically stored on your host machine via a volume mount.

Quickstart

# Build image (once, or after changes)
./scripts/build.sh

# Start container and web terminal
./scripts/run.sh

# To mount a local project (host_path:container_path)
./scripts/run.sh -v ~/myproject:/home/sclaw/myproject

# Run multiple sessions with -s
./scripts/run.sh -s work        # safeclaw-work on next available port
./scripts/run.sh -s research    # safeclaw-research on next available port

On first run, run.sh will prompt you to set up authentication tokens. It then starts a web terminal at http://localhost:7681 and opens it in your browser.

Dashboard

Dashboard showing multiple Claude Code sessions running in parallel

Manage all sessions from a web dashboard:

node dashboard/server.js

Opens at http://localhost:7680 with:

  • Create new sessions with volume mounts and initial queries
  • All sessions listed with start/stop/delete controls
  • Live iframe views of active sessions

Optional integrations

  • ./scripts/setup-slack.sh - Add Slack read access

What's included

  • Ubuntu 24.04
  • Node.js 24 (LTS)
  • Claude Code 2.1.219
  • GitHub CLI with auto-configured git user
  • Playwright MCP with Chromium
  • Slack read-only skill and tool (optional - requires token)
  • DX plugin, custom status line, shell aliases
  • ttyd web terminal + tmux

Sensible defaults

  • Claude Code version pinned (currently 2.1.219)
  • autoCompactEnabled: false - prevents automatic context compaction
  • promptSuggestionEnabled: false - disables prompt suggestions
  • --dangerously-skip-permissions enabled (because it's containerized)

Conversation history and memory

Each session's data persists locally at:

~/.config/safeclaw/sessions/<session-name>/

This maps to /home/sclaw/.claude/projects/ inside the container and includes:

  • Conversations - JSONL files (one per conversation)
  • Memory - Auto memory at -home-sclaw/memory/MEMORY.md, loaded into the system prompt each conversation

Rebuilding containers or restarting sessions won't affect your history or memory.

Authentication

Tokens are stored in ~/.config/safeclaw/.secrets/ and injected as env vars on each run. The filename becomes the env var name.

FileHow to generate
CLAUDE_CODE_OAUTH_TOKENclaude setup-token (valid 1 year)
GH_TOKENgh auth token or create a PAT at github.com/settings/tokens
SLACK_TOKENOptional - ./scripts/setup-slack.sh

You can add any additional secrets by creating files in the .secrets/ directory.

Scripts

ScriptDescription
scripts/build.shBuild the Docker image and remove old container
scripts/run.shStart/reuse container, inject auth, start ttyd. Use -s name for named sessions, -v for volumes, -n to skip opening browser, -q "question" to start with a query.
scripts/setup-slack.shSet up Slack integration (optional)
scripts/manage-env.jsManage environment variables (list, add, delete)
dashboard/server.jsWeb dashboard for managing multiple sessions

Aliases

Inside each container, these aliases are available:

AliasCommand
cclaude
csclaude --dangerously-skip-permissions

npm scripts

CommandRuns
npm run build./scripts/build.sh
npm start./scripts/run.sh
npm run dashboardnode dashboard/server.js
npm run dashboard:devnodemon dashboard/server.js
npm run setup-slack./scripts/setup-slack.sh
npm run manage-envnode scripts/manage-env.js

Skills

Defined in setup/skills/.

SkillDescriptionRequires
slackRead Slack messages, channels, DMs, and search (read-only)SLACK_TOKEN
yt-dlpDownload YouTube videos, audio, and subtitles/transcripts-
gdocRead publicly shared Google Docs-

Featured in

常见问题

What is safeclaw?

safeclaw is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ykdojo. The easiest way to run multiple Claude Code sessions, each in its own container, with a dashboard to manage them all. Quick setup with battle-tested sensible defaults and skills. It has 151 GitHub stars.

Is safeclaw safe to use?

safeclaw returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install safeclaw?

Clone the repository with "git clone https://github.com/ykdojo/safeclaw" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is safeclaw written in?

safeclaw is primarily written in HTML. It is open-source under ykdojo on GitHub, so you can review or fork the full source.

Are there alternatives to safeclaw?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh safeclaw against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情
safeclaw — Claude Code AI Skill | SkillTip