Skip to content

anthropics/claude-code-action

Official

GitHub Action that runs Claude Code as an automated code reviewer and PR assistant. Triggers on pull requests to provide AI-powered code review, bug detection, and improvement suggestions.

Claude Code Action is an official Anthropic GitHub Action that integrates Claude Code into pull requests and issues for automated code analysis, implementation, and maintenance. You mention @claude in a comment, and it reviews diffs, suggests fixes, or implements changes -- no terminal required.

7,160 stars1,725 forksTypeScriptUpdated April 2026

Best for

Vibe BuilderDeveloper
✅ Reviewed by My AI Guide — vetted for vibe builders

Our Review

Claude Code Action is the official Anthropic GitHub Action that runs Claude Code on PRs and issues -- 6,933 GitHub stars and 1,679 forks as of April 2026. Built in TypeScript and released under the MIT license, it turns GitHub into an AI-powered code review hub with no extra infrastructure.

What Claude Code Action does:

  • Intelligent Mode Detection automatically picks execution mode from workflow context like @claude mentions or PR diffs.
  • Interactive Code Assistant answers questions on code, architecture, and programming in PR comments.
  • Code Review scans PR changes for bugs, security issues, and improvements.
  • Code Implementation applies simple fixes, refactoring, or new features on request.
  • PR/Issue Integration posts responses directly in GitHub comments and reviews.
  • Flexible Tool Access uses GitHub APIs and file ops; add custom tools via config.
  • Progress Tracking shows checkboxes that update live as tasks complete.
  • Structured Outputs delivers validated JSON as GitHub Action outputs for pipelines.
  • Multi-Provider Auth works with Anthropic API, AWS Bedrock, Google Vertex AI, Microsoft Foundry.
  • Path-Specific Triggers activates only on changes to critical file paths.

Claude Code Action ecosystem:

  • Scheduled Maintenance runs cron jobs for repo health, doc sync, issue triage.
  • v1.0 Migration unified prompt and claude_args inputs simplify workflows from v0.x.
  • Open-Source Freedom bring your own API key; full customization beats SaaS tools.

Getting started:

Add to your GitHub workflow YAML: use anthropics/claude-code-action@v1 with your API key and prompt. Trigger on pull_request or issues. See README for full config. Latest release v1.0.89 from April 5, 2026.

Limitations:

Requires GitHub Actions setup and billing for heavy usage. Depends on external AI provider costs for API calls. Limited to GitHub ecosystem -- no standalone CLI.

Cons

  • Requires GitHub Actions setup and billing for heavy usage.
  • Depends on external AI provider costs for API calls.
  • Limited to GitHub ecosystem -- no standalone CLI.
  • Progress tracking works best in PR comments, not all triggers.

Our Verdict

Vibe Builders gain an always-on coding teammate. Mention @claude for instant PR reviews or fixes. Schedule maintenance to keep solo repos tidy. Cut manual review time in half.

Developers build CI/CD with deep Claude analysis. Integrate structured outputs into pipelines. Multi-provider support fits enterprise auth. Catch subtle bugs early.

Skip if you stick to terminal Claude Code or avoid GitHub Actions entirely.

Frequently Asked Questions

What is Claude Code Action and what does it do?

Claude Code Action is Anthropic's official GitHub Action for Claude Code. It detects @claude mentions in PRs/issues, runs code reviews, implements fixes, and handles scheduled tasks. Use it to automate GitHub workflows without a terminal.

Is Claude Code Action free and open source?

Claude Code Action is fully open source under the MIT license. Download and use the TypeScript codebase freely. Pay only for your chosen AI provider's API usage.

Claude Code Action vs CodeRabbit -- which for automated PR review?

Claude Code Action runs full Claude Code with open-source customization and your API key. CodeRabbit offers managed SaaS reviews. Choose Claude Code Action when you need flexibility and no lock-in, CodeRabbit when you want zero setup.

Which cloud providers does Claude Code Action support?

Claude Code Action supports Anthropic API, AWS Bedrock, Google Vertex AI, and Microsoft Foundry. Pick based on your infra. v1.0.89 added better Vertex integration.

How do I set up Claude Code Action in my GitHub repo?

Add the action to your .github/workflows YAML file in 2026. Set ANTHROPIC_API_KEY secret and a prompt input. Trigger on pull_request or issues events. Full guide in the repo's README.

What is claude-code-action?

Claude Code Action is an official Anthropic GitHub Action that integrates Claude Code into pull requests and issues for automated code analysis, implementation, and maintenance. You mention @claude in a comment, and it reviews diffs, suggests fixes, or implements changes -- no terminal required.

What license does claude-code-action use?

claude-code-action uses the MIT license.

What are alternatives to claude-code-action?

Search My AI Guide for similar tools in this category.

Great for: Pro Vibe Builders

Skip if: You need something more beginner-friendly or guided

🔒

Open source & community-verified

MIT licensed — free to use in any project, no strings attached. 7,160 developers have starred this, meaning the community has reviewed and trusted it.

Reviewed by My AI Guide for relevance, quality, and active maintenance before listing.

Topics

claudegithub-actionci-cd