Set Up Claude Code GitHub Actions with /install-github-app
You don't need to manually configure workflow files, install GitHub apps, or wire up secrets to get Claude responding to @claude mentions in your PRs. There's a one-command setup.
claude
> /install-github-app
This walks you through installing the Claude GitHub app, adding your ANTHROPIC_API_KEY as a repository secret, and copying the workflow file into .github/workflows/. Once done, tag @claude in any issue or PR comment and it will analyse context and respond.
If you want to customise the behaviour, pass CLI arguments through the claude_args parameter in your workflow file:
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
claude_args: "--max-turns 5 --model claude-sonnet-4-6"
You can also set up automated workflows that trigger on schedules, PR opens, or any GitHub event by adding a prompt parameter instead of relying on @claude mentions.
You'll need to be a repository admin to install the app. The app requests read and write permissions for Contents, Issues, and Pull Requests.
One command to turn every PR into a conversation with Claude.
Log in to leave a comment.
The autoUpdatesChannel setting pins Claude Code to a stable release track that skips versions with major regressions.
The language setting makes Claude respond in your preferred language by default, across every session and project.
The attribution setting lets you customize or completely remove Claude's Co-Authored-By trailer from git commits and pull requests.