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
@costa
Copy link
Author

costa commented Feb 10, 2026

$ curl -o /usr/local/bin/claude https://gist.githubusercontent.com/costa/d9b64547cc4d94a0c36716e7b3436803/raw/1de5ee65cfdee56d7140234eb06b33ee4923216c/claude; chmod +x /usr/local/bin/claude

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment