claude-cli simplifies running Claude Code within a Docker container, keeping the host system clean. It supports versatile mode selection and configuration persistence, allowing users to access their settings effortlessly across sessions. Ideal for those who want to leverage Claude's capabilities without cluttering their local environment.
claude-cli is a versatile shell wrapper designed to seamlessly run Claude Code within a Docker container. This approach effectively maintains the cleanliness of your host system while ensuring that your Claude configuration and user preferences are preserved across sessions.
~/.claude/ and ~/.claude.json) by bind-mounting them into the container, ensuring continuity in settings and session history.To run claude-cli, use the command:
claude-cli [-b] [-c] [-h]
| Option | Description |
|---|---|
-b | Build or rebuild the claude-cli:latest Docker image |
-c | Remove all claude-cli containers, with an option to remove the image |
-h | Display help information |
Customize the behavior of claude-cli by modifying the following environment variables:
| Variable | Default | Description |
|---|---|---|
CLAUDE_IMAGE | claude-cli:latest | Docker image name to use |
NOTIFY_ERROR_ICON | $XDG_CONFIG_HOME/dunst/critical.png | Icon for desktop error notifications |
CLAUDE_IMAGE=my-claude:dev claude-cli
This setup ensures a robust development environment while keeping the host system uncluttered and organized. By using claude-cli, developers can effectively leverage the capabilities of Claude Code through a simple, clean interface.
No comments yet.
Sign in to be the first to comment.