Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

Claude Code GitHub Actions (2026): What @claude Does in Your Repo and How to Set It Up

Claude Code GitHub Actions is a GitHub Action that runs Claude Code inside your repository: mention @claude in a pull request or issue comment and it can analyse code, make changes and push commits. The quickest setup is running /install-github-app from Claude Code, which needs admin access to the repository and, as of October 2026, only works with github.com repositories.

It's a developer tool, but the decision to switch it on is often a business one, because it gives an AI write access to your code. So this page covers what it does, which of the similarly named products you want, how to set it up, and what you're agreeing to when you do.

What it does in plain terms

The action runs in one of two modes, and it picks based on how your workflow file is written:

  • Interactive mode: Claude waits for someone to write @claude in an issue or pull request comment, in a pull request review, or in the title or body of a new issue. Progress and results appear as a comment on that issue or pull request.
  • Automation mode: the workflow gives Claude a prompt, and it runs on any GitHub event without waiting for a mention, including on a timed schedule. By default the results land in the workflow run log rather than a comment.

The docs suggest uses such as turning issues into pull requests, fixing a bug from a comment, or automating recurring tasks. If what you want is a recurring job outside GitHub, scheduled tasks in Claude Code may suit you better.

Which Claude Code product are you after?

The docs open by admitting several products share the Claude Code name, and this one is only the workflow integration you configure with files in your repository. Here's the difference in one table:

ProductWhat it doesNeeds a workflow file in your repo?
Claude Code GitHub ActionsRuns Claude Code in your workflows and answers @claude mentionsYes
Code ReviewAutomatic review on every pull requestNo
Claude Code in the cloudClaude Code sessions on cloud infrastructure instead of your machineNo
Claude Agent SDKCustom automation outside GitHub Actions; the action itself is built on itNo, you write your own code
GitHub Enterprise ServerClaude Code with self-hosted GitHubCovered on its own page

If all you want is a second pair of eyes on every pull request, look at Claude Code Review first; it does that without any workflow. If you want Claude working on a task while you're away from your laptop, Claude Code on the web is the closer fit.

Quick setup, step by step

Quick setup needs admin access to the repository, a github.com remote, and the GitHub CLI. If your repository lives on gitlab.com or bitbucket.org, the command prints a notice and exits; GitLab has its own Claude Code CI/CD page.

  1. Install the GitHub CLI and sign it in with gh auth login. Claude Code checks for it and warns you if it's missing.
  2. Open claude in the repository you want to connect and run the setup command shown below.
  3. Let it install the Claude GitHub App, then choose how the workflows authenticate: it reuses an API key Claude Code already has, or you choose between creating a long-lived token from your Claude subscription and pasting in an API key.
  4. Pick the workflow files you want. Claude Code pushes a branch with them and opens GitHub in your browser with a pull request ready to create.
  5. Create and merge that pull request. From then on, @claude works in the repository. Test it by tagging @claude in an issue comment.

The setup command to run inside Claude Code

/install-github-app

You can press Esc to stop partway, and the closing message lists what already happened, such as a pushed branch or a saved secret. Choosing Skip for now after the app installs stops with only the app in place. If you choose the review workflow, Claude posts each review on the pull request itself, as an inline comment per issue or one summary comment when it finds none, and it skips some pull requests, such as drafts.

Manual setup and the secret it needs

Use manual setup when you don't run Claude Code locally, when the command fails, or when you want full control of the workflow files. You install the Claude GitHub App, add a secret to the repository, and copy the example claude.yml file from the action's repository into your .github/workflows folder.

The secret is one of two, depending on how you pay for Claude:

  • ANTHROPIC_API_KEY: an API key from the Claude Console.
  • CLAUDE_CODE_OAUTH_TOKEN: a token tied to a Claude subscription on Pro, Max, Ultra, Team or Enterprise, which you generate by running claude setup-token on your own machine.

Three things from the docs worth remembering. Never commit a key or token into the repository; store it as a GitHub secret. For a secret shared across an organisation, use a Console API key rather than a subscription token, because the token is tied to the subscription of whoever generated it. And deleting a secret later doesn't switch the credential off: to retire an API key, delete it in the Claude Console too.

Work with me

Want AI doing the heavy lifting in your marketing?

I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.

The permissions you're granting

The action itself relies on three of the app's permissions, all read and write: Contents, so Claude can change files; Issues, so it can respond to issues; and Pull requests, so it can create them and push changes. The bit most people don't realise is that the Claude GitHub App is shared by every Claude feature that touches GitHub, so installing it grants a longer list, including read and write access to Actions, Workflows and repository hooks. GitHub doesn't let you accept only part of that list. If your organisation wants just the three, the docs say to create a custom GitHub App instead, though Code Review would still need the official one.

There are guardrails on who can start a run. On issue and pull request events, the person who triggers it must have write access to the repository, and bots are rejected unless you list them, which keeps bots from triggering Claude in a loop.

Who should skip it, and who should try it

I'd skip it if nobody on your team reviews pull requests before merging, because the whole safety model assumes a human reads Claude's changes first. The docs say as much: grant the workflow only the permissions it needs and review Claude's changes before merging.

If you do have that review habit, I'd try it on a low-risk repository first, an internal tool rather than the code that runs your checkout. Keep a short CLAUDE.md file in the repository root with your house rules, write specific @claude requests, and set --max-turns in the workflow's claude_args line with a timeout on the job, so one vague request can't run on and on.

If you'd like help deciding what you let an AI assistant do inside your repositories, and where a person should stay in charge, that's the kind of AI enablement I help with. I run AI training and workshops for teams, and help businesses with AI enablement and workflow automation, so the busywork runs itself and people get time back. Most of that work is with SaaS marketing teams and small businesses. Here's how we can work together.

Frequently asked questions

What does Claude Code GitHub Actions do?

It runs Claude Code inside your repository's GitHub workflows. Mention @claude in a pull request or issue comment and Claude can analyse code, implement changes and push commits.

How do I set up Claude Code GitHub Actions?

The quickest way is to run /install-github-app from Claude Code in the repository. It installs the Claude GitHub App, adds the authentication secret and prepares the workflow pull request for you to merge.

What secret does Claude Code GitHub Actions need?

Either ANTHROPIC_API_KEY for a Claude Console API key, or CLAUDE_CODE_OAUTH_TOKEN for a token tied to a Claude subscription, stored as a repository secret.

Does Claude Code GitHub Actions work with GitLab?

Not through this setup. The quick setup command only works with github.com repositories, and GitLab has a separate Claude Code GitLab CI/CD page.

Is Claude Code GitHub Actions the same as Code Review?

No. Code Review gives automatic review on every pull request without a workflow file, while Claude Code GitHub Actions is configured with workflow files in your repository and responds to @claude mentions.

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.