Last verified

Is Claude Code open source?

No.
Proprietary · all rights reserved

No. The licence in Anthropic's public repository reads © Anthropic PBC. All rights reserved., with use governed by Anthropic's Commercial Terms — not an open-source licence. The npm package declares SEE LICENSE IN README.md rather than MIT or Apache. What that repository does hold is issues, a changelog, plugins and examples; the application's source code isn't published there.

Licence — "All rights reserved", Anthropic Commercial Terms No source in the public repo — issues, changelog, plugins, examples npm field reads SEE LICENSE IN README.md, not an SPDX id Plugins and examples in that repo are public and reusable MCP is an open standard — the protocol, not the client
§ 01 / SOURCE

Where this answer comes from.

Methodology →
PER VENDOR ARTEFACTS · AUG 01, 2026

Read the licence file and the package manifest — they both say the same thing.

LICENSE.md in anthropics/claude-code carries two lines that settle it: "© Anthropic PBC. All rights reserved." and a pointer to Anthropic's Commercial Terms of Service. Neither the OSI nor anyone else would call that an open-source licence; there is no grant to modify or redistribute.

The npm manifest agrees. @anthropic-ai/claude-code (version 2.1.220 at the time of writing) sets "license": "SEE LICENSE IN README.md" — the convention publishers use precisely when the licence is not one of the standard identifiers. An MIT or Apache-2.0 project simply says so in that field.

So what is in the public repository? Issues and pull requests, the changelog, plugins, examples, and configuration — a community and distribution hub. Useful, genuinely public, and not the application. This matters because Google's AI Overview for this cluster currently states the opposite, and several ranking articles repeat it.

Licence: All rights reservedGoverned by: Commercial ToSnpm licence field: SEE LICENSE IN README.mdSource published: noRepo contains: issues · changelog · plugins
!
Per vendor docs — we did not run this test. The answer above rests on the source below, read on . Where we run a capability ourselves, this section carries the terminal transcript instead.
Source anthropics/claude-code — LICENSE.md https://github.com/anthropics/claude-code/blob/main/LICENSE.md
§ 02 / WHY

Why people think otherwise.

2.1
A public repo is not published source

The confusion is understandable. github.com/anthropics/claude-code looks like every open-source project you've ever used: stars, thousands of issues, pull requests, a changelog, a plugins directory. What it doesn't have is the code that runs when you type claude.

Vendors use GitHub as a support desk and distribution point all the time. The tell is the licence file — and here it says all rights reserved.

2.2
Some things around it genuinely are open

It's worth being precise rather than sweeping, because parts of the ecosystem are open:

  • MCP — the Model Context Protocol is an open standard for connecting AI tools to data sources. The protocol is open; the client that speaks it is not.
  • Plugins, skills and examples published in that repository are public and made to be copied.
  • Your own configurationCLAUDE.md, hooks, skills — is yours, in your repo, in plain text.

None of that makes the product open source, and conflating the two is where most of the wrong answers come from.

2.3
If open source is the actual requirement

People usually ask this question for a reason: an audit requirement, a policy against proprietary tooling in the build chain, a wish to self-host, or simple preference. If any of those is your case, the answer isn't to hope — it's to pick a tool whose licence you can read. The options below are Apache-2.0 and can run against models you host yourself.

Related and often conflated: whether it runs offline (it doesn't) and whether it's free (it isn't). Open source, offline, and free are three separate questions that this cluster tends to blur into one.

→ IF THE LICENCE MATTERS

Agents you can actually read.

Both publish their source under a permissive licence and can point at a locally hosted model. We have not benchmarked either against Claude Code — capability tracks the model you give them.

Frequently asked.

Quick follow-ups people search after this question.

Q · 01 But there's a GitHub repository — isn't that open source? +
No. The repository is a public issue tracker and distribution hub: issues, changelog, plugins, examples, configuration. The application source isn't in it, and LICENSE.md reserves all rights.
Q · 02 Can I self-host Claude Code? +
Not the product itself. You can route it through your own LLM gateway or an enterprise cloud provider, which changes where the model runs — but the client stays Anthropic's proprietary binary, updated by them.
Q · 03 Is the Model Context Protocol open? +
Yes — MCP is an open standard for connecting AI tools to external data, and other tools implement it. That openness belongs to the protocol, not to Claude Code, which is one proprietary client that speaks it.
Q · 04 Why do search results say it is open source? +
Because a public GitHub repository looks like an open-source project, and summaries built from those pages inherit the mistake. Google's AI Overview for this cluster states it outright at the time of writing. The licence file is the thing to check, and it disagrees.