Claude Code in GitHub Actions: @claude mentions, setup and costs

With the Claude Code GitHub Action you can write @claude in an issue or pull request comment and have Claude read the code, make a change and push it. It can also run a prompt on a schedule or on any GitHub event. Here is how to set it up, what it costs, who can trigger it and what to check when it stays silent.

What this is (and what it isn't)

Several products share the Claude Code name. This guide is about the claude-code-action workflow integration, which you configure with workflow files in your repository. As we read the docs, these are separate things: Code Review (automatic review of every pull request without writing a workflow), Claude Code in the cloud (sessions on cloud machines) and the Agent SDK (custom automation outside GitHub Actions, which this action is built on). GitLab has its own CI/CD page.

Set it up

Either way you need admin access to the repository.

The credential

Using it

Comment on an issue or pull request, for example @claude fix the TypeError in the user dashboard component. Claude replies in a comment and updates it as it works. It also reacts to a review comment, a pull request review, or the title or body of a newly opened issue.

For a project's own rules, put them in CLAUDE.md in the repository root: Claude follows it when it opens pull requests (see CLAUDE.md and memory).

Who can trigger it

What it costs

Each run uses two things: GitHub Actions minutes on the hosted runner, and tokens (or your subscription's usage, if you authenticate with the OAuth token). The docs suggest ways to cap both:

More general ways to spend less are in reduce token usage.

When it doesn't answer

Using a cloud provider, and uninstalling

Amazon Bedrock, Google Cloud's Agent Platform and Microsoft Foundry are supported through inputs such as use_bedrock, with OIDC federation instead of a stored API key. To remove everything: delete the workflow files (claude.yml and, if you picked it, claude-code-review.yml), delete the secret from the repository and any organization secrets, and uninstall the GitHub App only if no other Claude feature uses it. Deleting a secret does not revoke the credential, so retire an API key in the Console as well.

All the guides are in the guides index. If you also want Claude on a schedule from your own machine, see running Claude Code from a script and the permissions starter. This follows Anthropic's GitHub Actions documentation as we read it in October 2026, shortened on purpose. We are not affiliated with Anthropic or GitHub. We wrote this from the documentation and have not tested every setup. Input names, versions and defaults change, and where this page and the documentation disagree, the documentation wins. Never paste a real key into a prompt, an issue or a file in the repository.

The free loop-stop skill gives long tasks a limit and a stop rule. If you want a second pair of eyes on your CLAUDE.md and settings, the Tune-Up Kit is a checklist for exactly that.