Direct answer
Claude Code open source is the question of whether Anthropic licenses the coding tool for source access, modification, and redistribution. The answer is no as of 11 August 2026. Anthropic's public `anthropics/claude-code` repository has a root license that says Anthropic reserves all rights and makes use subject to its Commercial Terms. Anthropic's current legal documentation says usage follows Commercial Terms or Consumer Terms, depending on the account. A public repository, readable files, downloadable package, or visible source does not by itself grant open-source rights.
Claude Code open source status in short
- Claude Code itself uses Anthropic's reserved-rights license and applicable service terms, not an approved open-source license.
- Anthropic publishes a public Claude Code GitHub repository, but repository visibility is different from an open-source grant.
- Files, examples, plugins, or subdirectories need their own license check. Do not infer a permission from the parent folder's visibility.
- Some separate Anthropic repositories are open source. The official Python and TypeScript API SDKs and Python Agent SDK currently publish MIT licenses.
- An open-source client can still call a proprietary model or paid API. Evaluate the client, model, service terms, data path, and extensions separately.
- OpenCode and Aider are examples of separately maintained open-source coding tools. Their official repositories currently show MIT and Apache-2.0 licenses.
Where can you verify the current license status?
Start with the license attached to the exact code or package. The current root `LICENSE.md` in Anthropic's Claude Code repository is one line. It states that Anthropic reserves all rights and that use is subject to the Commercial Terms. This is not an OSI-approved open-source license.
Read the current root license in Anthropic's Claude Code repository.
Anthropic's legal and compliance page separates users by account type. It points Team, Enterprise, and API users to Commercial Terms. It points Free, Pro, and Max users to Consumer Terms. The same page also describes authentication limits for third-party products.
Check Anthropic's current Claude Code legal and compliance page.
Why does Claude Code have a public GitHub repository?
A company can use a public repository for distribution, documentation, examples, plugins, issue reports, security notices, and release information. GitHub's public setting controls who can view a repository. The license controls the permissions a copyright holder grants. Those are separate questions.
Anthropic's repository currently contains a README, changelog, plugins, examples, configuration, issue tracking, and other files. Its README describes Claude Code and points to supported installation methods. The repository's presence on GitHub does not replace the root license.
Inspect the official repository and its current file tree directly.
How do public, source-available, and open source differ?
- Public repository
- anyone may be able to view or download what the owner publishes, subject to the repository and service terms.
- Source-available software
- source can be inspected under a license that may limit modification, redistribution, fields of use, users, or commercial activity.
- Open-source software
- the license grants the rights described by the Open Source Definition, including redistribution and access to source code.
- Open model
- a separate and imprecise label that can involve weights, code, training data, evaluation material, and a model-specific license.
- Free of charge
- a price condition, not a source-code license or a promise about future price, usage, hosting, or model access.
Use the Open Source Initiative definition when evaluating an open-source claim.
Visible source does not create a license
Code may become visible through a package, build artifact, cache, source map, archive, mirror, or accidental publication. Visibility alone does not give permission to copy, modify, redistribute, or publish a derivative. Check the governing license and terms. Avoid using leaked or ambiguously licensed material in a replacement.
A GitHub fork button is also not a complete license analysis. The platform can technically create a copy while copyright and contract rules still apply. Before reusing code, record the file, version, license text, notices, obligations, and how the intended use fits.
Which Anthropic components are open source?
Do not apply one product's license to Anthropic's entire ecosystem. Separate repositories can publish separate licenses. At the time of review, Anthropic's Python API SDK, TypeScript API SDK, and Python Agent SDK repositories each display an MIT license. That does not make Claude Code or the Claude models open source.
- Client application
- reserved-rights root license and applicable Anthropic terms.
- Python API SDK
- separate repository with an MIT license and access to the Claude API.
- TypeScript API SDK
- separate repository with an MIT license and access to the Claude API.
- Python Agent SDK
- separate repository with an MIT license, while service authentication and usage remain subject to applicable terms.
- Plugins, skills, MCP servers, examples, and dependencies
- inspect the exact repository, directory, package, and license version for each item.
Verify the current Python API SDK license in its official repository.
Audit every layer of a coding agent
- Client license
- inspection, modification, redistribution, commercial use, notices, patents, trademarks, and contribution rules.
- Model license
- model weights, acceptable use, hosting, fine-tuning, redistribution, geography, and output conditions.
- Service terms
- account type, authentication, rate limits, data retention, training choices, support, suspension, and pricing.
- Execution boundary
- local process, hosted sandbox, shell access, network access, file scope, credentials, approvals, and logs.
- Extension layer
- MCP servers, plugins, skills, hooks, packages, marketplace terms, dependencies, and update sources.
- Output layer
- generated code, copied material, dependency licenses, notices, security review, tests, authorship policy, and project contribution rules.
On local surfaces, Claude Code still sends prompts and model outputs over the network to the selected provider. Anthropic's data-usage page documents different training, retention, telemetry, feedback, and provider behaviors. Use the current page for the chosen account and deployment.
Review Claude Code's current data flow and retention documentation.
Can Claude Code work on open-source projects?
A proprietary tool can be used in an open-source project when the project's rules and the tool's terms allow it. The generated contribution still needs normal review. Check authorship disclosure, developer certificate or contributor agreement, dependency policy, test evidence, security, copyright, and required notices.
- Obtain authorization before sending non-public code, issues, customer data, credentials, or security material to a model service.
- Follow the repository's contribution guide and any rule for AI-assisted code or commit attribution.
- Inspect diffs and dependencies rather than accepting a generated patch because it compiles.
- Run the project's formatter, tests, type checks, security checks, license checks, and human review.
- Preserve copyright notices and avoid asking the model to imitate code from an incompatible source.
- Record the tool, model, task, reviewer, tests, and material decisions when the project requires traceability.
Use Better Design's AI guardrails as a starting point for reviewable agent workflows.
Open-source alternatives to evaluate
An open-source client is not automatically a drop-in replacement. Features, model support, permission controls, context handling, editing quality, telemetry, maintenance, and security can differ. Build a representative evaluation and verify the license at the commit or release you plan to adopt.
OpenCode describes itself as an open-source coding agent. Its official repository currently displays an MIT license. Review its provider support, configuration, permission behavior, update channel, extension surface, and active security notices before adoption.
Inspect OpenCode's official repository and current license.
Aider describes itself as AI pair programming in the terminal. Its official repository currently displays an Apache-2.0 license. Compare its workflow and autonomy with the exact tasks your team expects rather than relying on the shared terminal label.
Run an evidence-based replacement test
- Write the reason open source matters, such as audit, modification, redistribution, model choice, local operation, procurement, or continuity.
- Record the license and terms for the client, SDK, model, provider, extensions, dependencies, and distribution method.
- Create representative tasks for investigation, edits, commands, tests, review, recovery, and non-interactive automation.
- Test with the same repository state, instructions, permissions, model budget, time limit, and acceptance criteria.
- Inspect network traffic, local files, logs, telemetry, credential access, prompt-injection handling, approvals, and failure containment.
- Measure correct task completion, review effort, unsafe actions, regressions, cost, latency, context loss, and recovery quality.
- Choose an owner for updates, vulnerability response, model changes, policy, support, training, and replacement.
Frequently asked questions
No, not under its current root license. Anthropic's repository says the company reserves all rights and makes use subject to its terms. Recheck the license for the version you plan to use.
Public visibility can support installation, plugins, documentation, examples, issues, and releases. It does not grant open-source rights. The repository license and applicable terms state the granted permissions.
A platform may provide a fork button, but the technical copy does not settle your rights to modify or redistribute the contents. Check the exact license and obtain legal advice for the intended use.
Some separate SDK repositories currently use MIT licenses, including the official Python and TypeScript API SDKs and Python Agent SDK. The API service and Claude models still have their own terms.
A compatible client may call the Claude API through an approved authentication route. The client's open-source license does not replace Anthropic's model, API, account, data, or usage terms.
Not necessarily. The client can be open source while sending prompts to a hosted model. Verify model hosting, network calls, telemetry, updates, package downloads, extensions, and where logs or session data are stored.
