Skip to content

olosegres/dclaude

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

dclaude

dclaude runs Anthropic Claude Code inside Docker with the current directory mounted as the workspace.

How it works

  • Builds a local Docker image named dclaude
  • Uses node:22-slim as the base image
  • Installs @anthropic-ai/claude-code inside a persistent Docker volume named dclaude_home
  • Mounts the current directory to /workspace in the container

Files

  • dclaude - main launcher script
  • install.sh - installs dclaude at user level (symlink in ~/.local/bin)

Install

./install.sh             # install or update (symlink to this repo)
./install.sh --uninstall # remove

After install, dclaude is callable from any directory. git pull in this repo updates the installed command — no reinstall needed.

Usage

dclaude
dclaude --resume
dclaude -p "fix the bug in auth.ts"

Data

Runtime data is stored under ${XDG_DATA_HOME:-~/.local/share}/dclaude/.

Host Claude config sharing

If ~/.claude.json and/or ~/.claude/ exist on host, they are bind-mounted read-write into the container. This shares MCP server configs, OAuth tokens (Jira, Gmail, Calendar, …), slash commands, plugins, skills, and agents between host and container.

Caveat: running host Claude Code and dclaude simultaneously means both processes write to the same ~/.claude.json — last-writer-wins.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages