Skip to content

Instantly share code, notes, and snippets.

@costa
Created January 19, 2026 13:59
Show Gist options
  • Select an option

  • Save costa/d9b64547cc4d94a0c36716e7b3436803 to your computer and use it in GitHub Desktop.

Select an option

Save costa/d9b64547cc4d94a0c36716e7b3436803 to your computer and use it in GitHub Desktop.
Claude.AI (a genAI) "claude-code" docker (restricted) runner script -- to be run in a project root directory
#!/bin/bash -e
cwd="$( pwd )"
test -t 0 && tty_opt=t
docker run --rm -i$tty_opt -v "$cwd:$cwd" -w "$cwd" node npx -y @anthropic-ai/claude-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment