https://github.com/grll/bearclaude
Minimalistic Docker image with Claude CLI for containerized usage
https://github.com/grll/bearclaude
Last synced: 6 months ago
JSON representation
Minimalistic Docker image with Claude CLI for containerized usage
- Host: GitHub
- URL: https://github.com/grll/bearclaude
- Owner: grll
- Created: 2025-05-29T12:49:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-29T13:19:25.000Z (about 1 year ago)
- Last Synced: 2025-07-30T20:56:15.147Z (12 months ago)
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BearClaude
A minimalistic Docker image with Claude CLI pre-installed for containerized usage.
## Usage
Pull and run the image from Docker Hub:
```bash
docker run --rm -it graille/bearclaude
```
Usually more useful with mounting a folder with some code:
```bash
docker run --rm -it -v $(pwd):/workspace graille/bearclaude
```
Also possible to use with in non interactive mode, but you would need to mount `~/.claude/.credentials.json` on linux or bring those values from keychain MacOS into `/root/.claude/.credentials.json`
Assuming I am already logged in locally on linux:
```bash
docker run --rm -it -v $(pwd):/workspace graille/bearclaude -v ~/.claude/.credentials.json:/root/.claude/.credentials.json -p "say hello"
```
## Features
- Based on `node:slim` for minimal size
- Claude CLI v24.1.0 pre-installed
- Ready to use out of the box
## Examples
Run Claude with specific commands:
```bash
docker run --rm graille/bearclaude --help
docker run --rm graille/bearclaude --version
```
Mount your project directory:
```bash
docker run --rm -it -v $(pwd):/workspace -w /workspace graille/bearclaude
```
## Build Locally
```bash
git clone https://github.com/graille/bearclaude.git
cd bearclaude
docker build -t bearclaude .
```
## License
MIT