Skip to content

Instantly share code, notes, and snippets.

@laiso
Created June 21, 2025 09:20
Show Gist options
  • Save laiso/ffaaa9e14ff5b7efaf208bcbbf0132ce to your computer and use it in GitHub Desktop.
Save laiso/ffaaa9e14ff5b7efaf208bcbbf0132ce to your computer and use it in GitHub Desktop.
❯ docker run \
  --tmpfs /tmp/claude:rw,nosuid,size=1m \
  -e CREDS=$(security find-generic-password -a $USER -w -s "Claude Code-credentials") \
  -e HOME=/home/node \
  claude-code:latest sh -c '
    echo "$CREDS" > /tmp/claude/.credentials.json
    chmod 600 /tmp/claude/.credentials.json
    ln -s /tmp/claude/.credentials.json ~/.claude/.credentials.json
    claude -p hi
  '
Hi! I'm Claude Code, ready to help you with your software engineering tasks. What would you like to work on?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment