Short Answer
No, Claude Code is not open source in the normal OSI-license sense. Anthropic does have a public GitHub repository for Claude Code, which is why people get confused. But the official repository license says use is subject to Anthropic’s Commercial Terms of Service, not MIT, Apache, GPL, or another standard open source license.
The clean operational answer
If legal, procurement, or platform engineering asks whether Claude Code is open source, answer no. If they ask whether the code is publicly viewable, answer yes. Those are different questions.
Why People Get Confused
Most developers use “open source” loosely. If a repo is public on GitHub, they call it open source. But software licensing does not work that way. Public visibility tells you that you can inspect the source. It does not tell you what rights you have to use, modify, redistribute, or commercialize it.
Claude Code triggers that confusion because both halves are true at once:
- The repository is public and active on GitHub.
- The governing license is commercial, not an OSI-approved open source license.
What The Official Repo Says
Anthropic maintains a public Claude Code repository on GitHub. The repo is visible, has public issues and pull requests, and ships releases. That makes the code inspectable.
But the decisive line is in the repository’s own LICENSE.md file. It says:
Official Claude Code repository license
© Anthropic PBC. All rights reserved.
Use is subject to Anthropic's Commercial Terms of Service.That is not an open source license. It is a commercial-terms grant.
What Is Open vs Closed
The cleanest way to think about Claude Code is to separate visibility from licensing and from the broader product stack.
| Layer | Status | Practical Meaning |
|---|---|---|
| GitHub repository | Public | You can inspect code, issues, pull requests, and releases |
| Repository license | Commercial terms | Not standard open source rights |
| Claude models | Proprietary | Not open weights or open source models |
| Hosted product surfaces | Proprietary | Desktop, web, IDE integrations are Anthropic product surfaces |
| MCP ecosystem | Open standard | Claude Code can connect to tools through the open MCP standard |
That last row is important. Claude Code itself is not open source, but it does participate in open ecosystems such as MCP. Open standards and open source software are related ideas, not the same thing.
Can You Use Claude Code Like Open Source Software?
Not safely without reading Anthropic’s commercial terms. If your team normally treats MIT or Apache repositories as forkable building blocks for internal tooling, you should not assume the same posture here.
The public repository still has value. It lets engineers inspect implementation details, understand how the CLI behaves, and audit changes more directly than they could with a closed binary. But that is transparency, not open source freedom.
What to check before adopting internally
If this matters for your company, route the decision through legal or procurement with the exact license language from the repo and Anthropic’s commercial terms. Do not let engineering hand-wave “public repo” into “open source approved.”
Claude Code vs Truly Open Source Agents
This is where category language matters. A tool like OpenCode is explicitly positioned as open source. Claude Code is a first-party Anthropic product with a public repo but commercial usage terms.
| Question | Claude Code | Truly open source agent |
|---|---|---|
| Can I inspect the source? | Yes | Yes |
| Is the repo public? | Yes | Usually yes |
| Is the license a standard open source license? | No | Yes |
| Are the underlying models open? | No | Sometimes, depends on tool |
| Best descriptor | Source-visible, commercially licensed | Open source |
If you need the least ambiguous answer for internal documentation, describe Claude Code as publicly viewable and commercially licensed.
FAQ
Does Claude Code having a public GitHub repo mean it is open source?
No. Public GitHub visibility and open source licensing are different things.
Can I still inspect how Claude Code works?
Yes. The public repo makes inspection possible even though the licensing posture is commercial.
What should I call Claude Code in an internal architecture document?
“Publicly viewable, commercially licensed coding agent” is more precise than “open source.”
If I want an actually open source alternative, where should I look?
Start with tools explicitly marketed and licensed as open source, such as OpenCode.
Your coding agent still needs a reliable merge layer
Whether you use Claude Code, OpenCode, or both, the hard part is turning model output into clean file updates. Morph Fast Apply handles that part at 10,500+ tokens per second.