Hellblazer/hal-9000
Hellblazer/hal-9000 · 2 stars · 1 plugin
Marketplace Run Claude Code in isolated Docker containers with Docker-in-Docker orchestration, persistent storage, and full marketplace support.
Install
/plugin marketplace add Hellblazer/hal-9000Run inside Claude Code, then install plugins from it. Check the repo's README before you run it.
Plugins 1
After adding the marketplace, install one with /plugin install <name>@hal-9000.
- 1hal-9000hal-9000 - Containerized Claude with MCP servers pre-installed
/plugin install hal-9000@hal-9000
Files
hal-9000 - Containerized Claude
Run Claude Code in isolated Docker containers with Docker-in-Docker orchestration, persistent storage, and full marketplace support.
Quick Start
# Install hal-9000 curl -fsSL https://raw.githubusercontent.com/Hellblazer/hal-9000/main/install-hal-9000.sh | bash # REQUIRED: Authenticate before first use (one of the following) # Option 1: Login with Claude subscription (recommended) hal-9000 /login # Note: When the OAuth URL appears, copy ALL lines of the URL # Or press 'c' to copy to clipboard # Option 2: Use file-based API key mkdir -p ~/.hal9000/secrets echo "sk-ant-api03-..." > ~/.hal9000/secrets/anthropic_key chmod 400 ~/.hal9000/secrets/anthropic_key # Launch Claude in current directory hal-9000
Important: Authentication is REQUIRED before first use. Auth is stored in a shared Docker volume - login once, use everywhere.
Security
hal-9000 v2.1.0 includes comprehensive security hardening:
Authentication & Secrets (v2.1.0):
- File-based secrets only - Environment variable API keys are rejected for security
- Docker secrets integration - Secure credential injection
- Subscription login - Recommended:
hal-9000 /login
Defense in Depth:
- Seccomp syscall filtering - Blocks mount, ptrace, kernel module loading
- Per-user volume isolation - Prevents cross-user data access
- Security audit logging - Structured JSON logs with hashed credentials
- Extended hooks - Protection for Grep, NotebookEdit, file_access operations
Supply Chain Hardening:
- SHA256 digest pinning - All Docker base images pinned
- Signature verification - Critical scripts verified before execution
Read detailed security summary →
Marketplace Support
hal-9000 supports Claude Code plugins. Install agents, commands, and tools that persist across all sessions:
# Add a marketplace (use owner/repo format) hal-9000 plugin marketplace add anthropics/skills # Install a plugin hal-9000 plugin install document-skills # List installed plugins hal-9000 plugin list
All installations are stored in a persistent Docker volume shared by all workers.
Note: Foundation MCP servers (ChromaDB, Memory Bank) require one-time setup via
scripts/setup-foundation-mcp.shon your host machine. Sequential Thinking is pre-installed in all workers. See Foundation MCP Servers Setup below.
What's Included
Every container includes:
- Claude CLI - Native binary, auto-updates
- Node.js 20 LTS - For npm-based tools and marketplace plugins
- Python + uv - For Python-based tools and marketplace plugins
- Persistent plugins and settings - Installed via marketplace, survive across sessions
Foundation MCP Servers (host-level, one-time setup):
- ChromaDB - Vector database for semantic search and embeddings
- Memory Bank - Cross-session persistent memory shared across all workers
- Sequential Thinking - Step-by-step reasoning (pre-installed in all workers)
MCP server configurations persist across all sessions. Register once, use everywhere.
Foundation MCP Servers
What are Foundation MCP Servers? MCP (Model Context Protocol) servers extend Claude's capabilities by providing tools and knowledge access. hal-9000 includes three core Foundation MCP servers:
- ChromaDB - Vector database for semantic search
- Memory Bank - Cross-session persistent memory
- Sequential Thinking - Step-by-step reasoning
These are set up once at the host level via setup-foundation-mcp.sh and automatically available to all workers.
Foundation MCP Servers Setup
Foundation MCP Servers run at the host level, accessible to all workers. One-time setup after installing hal-9000:
~/.hal9000/scripts/setup-foundation-mcp.sh
This deploys:
- ChromaDB (port 8000) - Vector database for semantic search
- Memory Bank - Persistent storage for cross-session context
- Sequential Thinking - Step-by-step reasoning (pre-installed in workers)
Check status and manage services:
~/.hal9000/scripts/setup-foundation-mcp.sh --status # Check status ~/.hal9000/scripts/setup-foundation-mcp.sh --logs # View logs
See Foundation MCP Servers documentation for advanced configuration and troubleshooting.
Usage
Basic
hal-9000 # Launch in current directory hal-9000 /path/to/project # Launch in specific directory hal-9000 --shell # Start bash instead of Claude
Daemon Management
hal-9000 daemon start # Start orchestrator + ChromaDB hal-9000 daemon status # Check status hal-9000 daemon stop # Stop everything
Resource Limits: The parent container uses resource limits to prevent consuming all host resources:
export HAL9000_PARENT_MEMORY=4g # Default: 4g export HAL9000_PARENT_CPUS=2 # Default: 2 CPUs hal-9000 daemon start
Verify limits with:
docker inspect hal9000-parent --format='Memory: {{.HostConfig.Memory}}, CPUs: {{.HostConfig.NanoCpus}}'
Worker Management
Manage active worker sessions:
show-workers.sh # Display all workers with socket status show-workers.sh -w # Live monitoring (auto-refresh) show-workers.sh -j # JSON output for automation attach-worker.sh worker-abc # Attach to worker's TMUX session attach-worker.sh -s # Interactive worker selection attach-worker.sh -l # List available workers attach-worker.sh -d worker # Docker exec fallback (debugging)
Status Indicators:
✓= TMUX socket healthy (session ready)⚠= TMUX socket stale (needs investigation)○= TMUX socket missing (session not started yet)
Worker Pool (Optional)
Pre-warm containers for instant startup:
hal-9000 pool start # Start pool manager hal-9000 pool status # View warm/busy workers hal-9000 pool scale 3 # Maintain 3 warm workers
Architecture
Parent-Worker Orchestration
graph LR
Parent["<b>Parent Container</b><br/>Orchestrator<br/>ChromaDB:8000<br/>Coordinator"]
W1["Worker 1<br/>Claude<br/>TMUX Socket"]
W2["Worker 2<br/>Claude<br/>TMUX Socket"]
W3["Worker 3<br/>Claude<br/>TMUX Socket"]
Vols["<b>Shared Volumes</b><br/>Plugins, Memory,<br/>TMUX Sockets"]
Parent ---|monitors| W1
Parent ---|monitors| W2
Parent ---|monitors| W3
W1 ---|socket IPC| Vols
W2 ---|socket IPC| Vols
W3 ---|socket IPC| Vols
Loading
Infrastructure:
- Parent Container: Orchestrates workers, runs ChromaDB server (port 8000), maintains coordinator
- Worker Containers: Independent TMUX servers with Claude CLI, communicate via socket IPC
- TMUX Sockets: Unix domain sockets in
/data/tmux-socketsfor parent-worker communication - Shared Volumes:
hal9000-claude-home- Marketplace plugins, credentials, MCP settingshal9000-tmux-sockets- Worker TMUX server sockets (socket-based IPC)hal9000-coordinator-state- Worker registry and session healthhal9000-memory-bank- Cross-session persistent memory
Network Isolation:
- Workers use bridge networking (not shared namespace)
- Access parent services (ChromaDB) via parent IP address
- Each worker has independent network stack
- Better security and enables future distributed deployment
Session Management:
- Each worker runs independent TMUX session with Claude in window 0, shell in window 1
- Sessions survive detach/attach cycles while parent runs (TMUX maintains active state)
- For cross-session persistence, use Memory Bank MCP to save work before stopping containers
- Coordinator monitors worker lifecycle and socket health
- Session state lives in TMUX process (no file-based race conditions)
Requirements
- Docker
- Bash
- Claude subscription (recommended) OR API key file (
~/.hal9000/secrets/anthropic_key)
Configuration
Authentication
Authentication is REQUIRED before first use.
Option 1 - Subscription Login (recommended):
hal-9000 /login # Login once, persists in shared volume
When the OAuth URL appears, copy ALL lines (it spans multiple lines) or press 'c' to copy to clipboard.
Option 2 - API Key (via secure file):
mkdir -p ~/.hal9000/secrets echo "sk-ant-api03-..." > ~/.hal9000/secrets/anthropic_key chmod 400 ~/.hal9000/secrets/anthropic_key
Note: Environment variable ANTHROPIC_API_KEY is NOT supported for security reasons (visible via docker inspect).
Persistent Storage
hal-9000 uses shared volumes for data that persists across container restarts:
hal9000-claude-home- Marketplace plugins, credentials, MCP configurationshal9000-claude-session- Authentication tokens, session settingshal9000-memory-bank- Cross-session persistent memory (use Memory Bank MCP)
What persists:
- ✅ Plugins, credentials, MCP configurations (volume storage)
- ✅ ChromaDB data, Memory Bank files (volume storage)
- ✅ Active Claude session while parent runs (TMUX process)
What doesn't persist:
- ❌ Claude conversation state when worker container stops
- ❌ In-memory data not saved to Memory Bank MCP
Set up MCP servers once—configurations persist. Use Memory Bank MCP to preserve work across container restarts.
Profiles
Built-in profiles are automatically selected based on your project structure:
hal-9000 --profile base # Minimal (default) hal-9000 --profile python # + Python tools hal-9000 --profile node # + Node.js tools hal-9000 --profile java # + Java/Maven tools
Auto-Detection:
- Python: Detects
requirements.txt,pyproject.toml,Pipfile - Node.js: Detects
package.json - Java: Detects
pom.xml,build.gradle,build.gradle.kts
Creating Custom Profiles:
Want a Ruby profile? Go profile? Anything else? You can create custom profiles for any language/framework.
Quick Start (easiest): See Local Profiles Quick Start
- Create a Dockerfile in
~/.hal9000/profiles/{name}/ - hal-9000 auto-detects and builds it
- Zero setup, no repo cloning needed
Complete Guide: See Custom Profiles Guide for:
- Complete walkthrough of creating a new profile
- Examples: Ruby, Go, Rust, PHP, .NET
- Best practices and troubleshooting
- How to share profiles with the community
- Contributing profiles back to the project
Companion Tools
hal-9000 Plugin - Tools & Commands
Custom commands, MCP servers, and hooks for enhanced Claude workflows:
# Install the plugin hal-9000 plugin marketplace add Hellblazer/hal-9000 hal-9000 plugin install hal-9000
Includes:
- Slash commands (/check, /load, /sessions)
- MCP servers and integrations
- Safety hooks
aod - Multi-Branch Development
Parallel development across git branches:
aod-init # Generate config aod aod.yml # Launch all branches aod-list # Show sessions aod-broadcast "cmd" # Send to all
Troubleshooting
System Diagnostics
hal-9000 --diagnose # Show diagnostic info hal-9000 daemon status # Check daemon health docker logs hal9000-parent # View parent logs show-workers.sh # Display all workers + socket status show-workers.sh -w # Live monitoring
Common Issues
"Parent container not running"
hal-9000 daemon start
"Cannot connect to Docker"
# Ensure Docker is running docker ps
"ChromaDB not responding"
hal-9000 daemon restart
"Worker socket not found / stale"
# Check socket health show-workers.sh # Shows socket status (✓/⚠/○) # If socket is stale (⚠), wait for coordinator to clean it up # Coordinator validates sockets every 30 seconds # Or manually check socket ls -la /data/tmux-sockets/worker-*.sock
"Cannot attach to worker"
# Verify worker is running and socket is healthy show-workers.sh -v # Detailed status docker ps | grep worker-abc # Check container exists # Try attaching with retry attach-worker.sh worker-abc # Has built-in retry logic # Or use fallback attach-worker.sh -d worker-abc # Docker exec fallback
"TMUX session frozen"
# Detach from TMUX (doesn't kill session) # Press Ctrl+B, then D # If completely frozen, kill TMUX socket (coordinator will recreate) docker exec hal9000-parent rm -f /data/tmux-sockets/worker-*.sock # Restart parent to trigger socket recreation hal-9000 daemon restart
TMUX Architecture Details
TMUX Architecture Guide → - Comprehensive reference for:
- Socket-based IPC architecture
- TMUX session lifecycle
- Session persistence model
- Troubleshooting socket issues
- Security considerations
Documentation
- Architecture Details
- Configuration Reference
- Troubleshooting Guide
- Development Guide
- Custom Profiles Guide - Create your own specialized profiles (Ruby, Go, Rust, PHP, etc.)
License
Apache 2.0
{
"_version": "2.1.0",
"_schema_version": "1.0",
"name": "hal-9000",
"description": "hal-9000 - Containerized Claude with MCP servers pre-installed",
"owner": {
"name": "Hal Hildebrand",
"url": "https://github.com/Hellblazer"
},
"plugins": [
{
"name": "hal-9000",
"source": "./plugins/hal-9000",
"description": "hal-9000 - Containerized Claude with MCP servers pre-installed",
"version": "2.1.0"
}
]
}Facts
- Kind
- Marketplace
- Repo
- Hellblazer/hal-9000
- Group
- Uncategorized
- Stars
- 2
- Marketplace name
- hal-9000
- Owner
- Hal Hildebrand
- License
- Apache-2.0
- Language
- Shell
- Created
- 2025-12-13
- Last push
- 2026-02-02
- Plugins
- 1