How to Remove Co-Authored-By Claude From Commits

To stop Claude Code adding "Co-Authored-By: Claude" to git commits, put "attribution": false in ~/.claude/settings.json (Claude Code 2.1.281 or later); on older versions set attribution.commit and attribution.pr to empty strings. The deprecated includeCoAuthoredBy key still works but is ignored once attribution is set. Read at Anthropic's Claude Code docs on Nov 23, 2026.

To stop Claude Code adding Co-Authored-By: Claude ... to your commits, add "attribution": false to ~/.claude/settings.json; that one line also removes the "Generated with Claude Code" line from pull request descriptions and the claude.ai session link from cloud commits (Claude Code settings reference, read Nov 23, 2026). The false value needs Claude Code 2.1.281 or later, and an older version rejects it and skips the whole settings file, so check claude --version first; the newest release is 2.1.330 of Nov 20, 2026. The change applies to commits Claude makes from then on, not to commits already in your history.

Next: which settings file to put it in for you or your whole team, the commands that save settings for you or another one-line setting, Code Mode, new this month.

The line to copy

Pick the block that fits your version and what you want to keep. Each is a complete settings.json; if the file already has keys, add only the "attribution" entry.

You want Paste this Needs
No attribution anywhere {"attribution": false} 2.1.281 or later
No attribution, on any version {"attribution": {"commit": "", "pr": "", "sessionUrl": false}} any version since 2.0.62
Commits clean, PR line kept {"attribution": {"commit": ""}} any version since 2.0.62
Your own trailer instead {"attribution": {"commit": "Assisted-by: AI"}} any version since 2.0.62

The versions are from Anthropic's reference, which dates the attribution key to 2.0.62, when it replaced includeCoAuthoredBy, and the false shortcut to 2.1.281 (settings reference, read Nov 23, 2026). The empty-string form is the safe choice on a machine where you do not know the version, or in a settings file that several machines share.

AI LABS gives the same fix in its Mar 25, 2026 video of hidden Claude Code settings: "add the attribution key and leave the commit and PR fields empty", after which Claude "won't co-author itself", or set a custom string so the commit shows "whatever author name you choose". The video adds why people bother: the default trailer puts Claude in the repository's contributor graph.

What Claude Code writes when you change nothing

Where Default text
Commit message Co-Authored-By: <model name> <noreply@anthropic.com>, for example Claude Opus 5.5
Pull request description A "Generated with Claude Code" line linking claude.com/claude-code
Cloud and Remote Control sessions A Claude-Session trailer on commits and the session's claude.ai link in pull requests

Source: settings reference, Git and attribution, read Nov 23, 2026. The trailer names the model in use when the commit is made, so a commit made by a subagent names the subagent's model; a model Claude Code cannot match, such as a third-party model behind a custom ANTHROPIC_BASE_URL, is written as Claude Code.

A Co-authored-by: trailer is how GitHub attributes one commit to several people, and the commit counts toward a co-author's contributions when the email belongs to a GitHub account (GitHub Docs, read Nov 23, 2026). That is why Claude appears beside you on a repository's page.

A worked example

Before, a commit Claude Code made on Opus 5.5 ends:

Fix retry limit in payment client

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

With "attribution": false in ~/.claude/settings.json, the next commit Claude makes ends after its message:

Fix retry limit in payment client

With "attribution": {"commit": "Assisted-by: Claude Code"}, the trailer becomes your line instead. Settings files are strict JSON, so a trailing comma or a // comment makes Claude Code report a Settings Error at the next start (Settings files and precedence, read Nov 23, 2026).

Which file to put it in

  • Only you, every project: ~/.claude/settings.json (on Windows, %USERPROFILE%\.claude\settings.json).
  • Everyone on a repository: .claude/settings.json in the project, committed. The attribution key works from any settings file, so a team can set it once for every clone.
  • Only you, one project: .claude/settings.local.json, which sits above the shared project file.

Claude Code reloads settings files when they change, so the next commit in a running session already follows the new value, and /status lists which files loaded (Settings files and precedence, read Nov 23, 2026). If your organization sets the attribution lines in managed settings, those win over every file of yours.

A rule in CLAUDE.md also works: Claude Code tells Claude that your own instructions about attribution, such as a CLAUDE.md or memory rule, take precedence over the default lines, unless the line comes from managed settings (settings reference, read Nov 23, 2026). We think the setting is the better place, because it holds even in a session that never reads your CLAUDE.md.

The old key, includeCoAuthoredBy

"includeCoAuthoredBy": false is what most older guides give. It still works: Claude Code honors it from settings files that predate attribution, and it removes both the commit trailer and the pull request line. But it has been deprecated since 2.0.62, and the moment you set attribution.commit or attribution.pr, Claude Code ignores it and uses its default text for whichever of the two you left out (settings reference, read Nov 23, 2026). So a file holding "includeCoAuthoredBy": false and "attribution": {"commit": ""} still gets the pull request line. Replace the old key rather than adding the new one beside it.

Commits you already made

The setting changes nothing in history. To remove the trailer from the last commit before you push, run git commit --amend and delete the line. For older commits it takes a history rewrite and a force push, which changes every rewritten commit's hash for anyone who has pulled them.

Ask Simon!'s Nov 10, 2026 walkthrough does exactly that: an interactive rebase, git commit --amend on each commit where Claude appears, then git push --force-with-lease. It then says GitHub keeps contributor figures in a separate cache, so the contributor sidebar may not update until the default branch is renamed and renamed back; that last step is the video's report of what users saw, not something GitHub documents.

Sources

Moments

12 Hidden Settings To Enable In Your Claude Code Setup

AI LABS

  1. AI LABS gives the same fix in its Mar 25, 2026 video of hidden Claude Code settings: "add the attribution key and…

How To Remove Claude As Co-authors From Your GitHub Repo

Ask Simon!

  1. Ask Simon!'s Nov 10, 2026 walkthrough does exactly that: an interactive rebase, git commit --amend on each commit…

See also

About this page

Last updated Nov 23, 2026 by the Vi.ki team. Page text CC BY-SA 4.0.

Edit History

Hotkeys

/
Jump to the search box
? or Ctrl + /
Open this list
Esc
Close this list, the photo viewer, or the account menu

Video

Space or K
Play or pause
← →
Back or forward 5 seconds
J L
Back or forward 10 seconds
0 to 9
Go to 0% to 90% of the video
, .
Previous or next frame, while paused
M
Mute or unmute
C
Captions on or off
F
Full screen on or off
A D
Previous or next moment

Photo viewer

← → or A D
Previous or next photo
↑ ↓ or W S
Previous or next photo
Home End
First or last photo
I
Show or hide the photo's info
Z
Clickless on or off: a pointer over a thumbnail shows it
N
Compare with the last photo: back to the one shown before this, and N again comes back
Q
Move the thumbnails to the next edge: top, bottom, left and round
, or Ctrl + ,
Open or close the viewer's settings
V
Clickless pan: a zoomed photo follows the pointer, rather than being dragged
Shift
Browse on or off
B
Show or hide the button bar
T
Show or hide the thumbnails
1
100% zoom on or off
0
Rate the photo as no opinion; again takes the answer back
+ -
Rate the photo a step higher or lower
F
Full screen: the photo alone. F again puts everything back.
Back to top