aboutsummaryrefslogtreecommitdiffstats

claude-oauth-init

Initialize Claude OAuth configuration from environment variables.

Installation

uv pip install .

Or install in editable mode for development:

uv pip install -e .

Usage

From environment variables

export CLAUDE_ACCOUNT_UUID="your-account-uuid"
export CLAUDE_EMAIL="your@email.com"
export CLAUDE_ORG_UUID="your-org-uuid"

claude-oauth-init

From CLI arguments

claude-oauth-init \
  --account-uuid your-account-uuid \
  --email your@email.com \
  --org-uuid your-org-uuid

Custom config path

claude-oauth-init --config-path /path/to/.claude.json

Environment variables only

claude-oauth-init --env-only

Environment Variables

  • CLAUDE_ACCOUNT_UUID: Claude account UUID
  • CLAUDE_EMAIL: Claude email address
  • CLAUDE_ORG_UUID: Claude organization UUID

Integration with Docker

Replace the inline Python in your docker-entrypoint.sh:

#!/bin/bash
set -e

if [ -n "$CLAUDE_ACCOUNT_UUID" ] || [ -n "$CLAUDE_EMAIL" ] || [ -n "$CLAUDE_ORG_UUID" ]; then
    claude-oauth-init --config-path /home/claude/.claude.json
fi

exec claude --dangerously-skip-permissions "$@"