Docker containers for Claude Code SDKs in Typescript and Python. Includes built-in authentication for Claude Pro and Max plans. Enables developers to automate code generation, analysis, and refactoring tasks. Integrates with CI/CD pipelines and developer workflows.
git clone https://github.com/cabinlab/claude-code-sdk-docker.gitClaude Agent SDKs in Docker provides pre-configured container images for TypeScript and Python that eliminate interactive authentication workflows. The images include the official Claude Agent SDK, Claude Code CLI, and essential development tools, designed to run non-interactively in CI/CD pipelines and containerized environments. Users generate an OAuth token once on their host machine, then pass it to containers via environment variable—no browser flows or setup wizards required. Available in Debian and Alpine variants, these images support code generation, analysis, and refactoring tasks. They're ideal for developers automating Claude interactions in production workflows, Docker-based development environments, and automated testing pipelines.
Generate an OAuth token on your host machine with `claude setup-token`, then pass it to the container via the `CLAUDE_CODE_OAUTH_TOKEN` environment variable. Use docker compose with the provided compose files or docker run commands—no interactive setup required. Run examples with `docker compose exec typescript tsx /app/examples/typescript/hello.ts` or the Python equivalent.
Automate code generation and refactoring in CI/CD pipelines
Run Claude SDK scripts non-interactively in containerized environments
Develop and test TypeScript/Python code with Claude Agent SDK without manual auth setup
Deploy containerized AI agents for code analysis and automation tasks
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/cabinlab/claude-code-sdk-dockerCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I want to use the claude-code-sdk-docker to automate code refactoring for my [COMPANY] in the [INDUSTRY] sector. I need to integrate this with my existing CI/CD pipeline. Please provide step-by-step instructions for setting up the Docker container, authenticating with my Claude Pro account, and implementing a basic code refactoring workflow.
# Claude Code SDK Docker Setup Guide
## Prerequisites
- Docker installed on your system
- Claude Pro account credentials
- Basic understanding of CI/CD pipelines
## Step 1: Pull the Docker Image
```bash
docker pull anthropic/claude-code-sdk-python
```
## Step 2: Authenticate with Claude
```python
from claude_code_sdk import ClaudeCodeClient
client = ClaudeCodeClient(api_key='your_claude_pro_api_key')
```
## Step 3: Implement Code Refactoring Workflow
```python
def refactor_code(code_snippet):
response = client.refactor(
code=code_snippet,
language='python',
instructions='Improve code readability and performance'
)
return response.refactored_code
```
## Step 4: Integrate with CI/CD Pipeline
1. Add the Docker container to your CI/CD pipeline configuration.
2. Trigger the refactoring script on code push events.
3. Review and merge the refactored code.
Container platform for building, sharing, and running applications
AI assistant built for thoughtful, nuanced conversation
The #1 Decentralized ID platform
Get more done every day with Microsoft Teams – powered by AI
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan