# What is the Licensing for PrimeAgent? MIT License Explained

> Understand PrimeAgent licensing with our MIT License explanation. Use, modify, and distribute PrimeAgent freely for your projects.

- Repository: [Prime Intellect/prime-agent](https://github.com/PrimeIntellect-ai/prime-agent)
- Tags: getting-started
- Published: 2026-08-14

---

**PrimeAgent is released under the MIT License**, a permissive open-source license that allows you to use, copy, modify, merge, publish, distribute, sublicense, and even sell the software with minimal requirements.

Understanding the licensing for PrimeAgent is essential for developers building on top of the framework or redistributing it in commercial applications. According to the PrimeIntellect-ai/prime-agent source code, the project adopts a straightforward MIT-only approach at the package level, with dual-licensing appearing only in some transitive dependencies.

## MIT License Terms for PrimeAgent

The MIT License governing PrimeAgent is contained in the repository's root `LICENSE` file. This permissive license imposes just two key requirements:

- **Retain copyright notices** — Include the original copyright statement in all copies
- **Include license terms** — Distribute the MIT license text with the software

These requirements are lightweight compared to copyleft licenses, making PrimeAgent suitable for proprietary applications without source code disclosure obligations.

## Where PrimeAgent's License is Declared

The licensing for PrimeAgent is documented across multiple canonical locations in the repository:

| File | Purpose |
|------|---------|
| `LICENSE` (root) | Full MIT license text with copyright notice |
| [`package.json`](https://github.com/PrimeIntellect-ai/prime-agent/blob/main/package.json) (root) | Monorepo-level `"license": "MIT"` declaration |
| `packages/*/package.json` | Per-package MIT license repetition |

Each package's [`package.json`](https://github.com/PrimeIntellect-ai/prime-agent/blob/main/package.json) consistently lists `"license": "MIT"`. Some transitive dependencies use `"MIT OR Apache-2.0"` dual-licensing, but the core PrimeAgent codebase remains MIT-only.

## Practical Compliance Examples

When building with or extending PrimeAgent, reference the license correctly in your projects:

### TypeScript Project Configuration

```typescript
// package.json — declare dependency and compatible license
{
  "name": "my-prime-agent-extension",
  "version": "1.0.0",
  "license": "MIT",
  "dependencies": {
    "@primeintellect/prime-agent": "^0.7.6"
  }
}

```

### Redistribution Workflow

```bash

# Retain the LICENSE file when redistributing PrimeAgent code

cp node_modules/@primeintellect/prime-agent/LICENSE ./LICENSE

```

### Documentation Citation

```markdown

## License

PrimeAgent is licensed under the MIT License. 
See the full text in the repository's 
[LICENSE](https://github.com/PrimeIntellect-ai/prime-agent/blob/main/LICENSE) file.

```

## MIT vs. Apache-2.0 in PrimeAgent's Dependency Tree

While PrimeAgent itself uses MIT exclusively, some dependencies offer dual licensing:

- **PrimeAgent core**: MIT only — simple attribution required
- **Certain transitive dependencies**: MIT OR Apache-2.0 — you may choose either license for those specific components

This distinction matters for compliance audits but does not affect PrimeAgent's own permissive terms.

## Summary

- PrimeAgent's licensing is **MIT** — permissive and commercially friendly
- License declarations appear in `LICENSE`, root [`package.json`](https://github.com/PrimeIntellect-ai/prime-agent/blob/main/package.json), and every `packages/*/package.json`
- Requirements: preserve copyright notice and license text
- Some dependencies use dual MIT/Apache-2.0 licensing, but PrimeAgent core does not

## Frequently Asked Questions

### Can I use PrimeAgent in a commercial product?

Yes. The MIT License explicitly permits commercial use, including selling copies of the software. You must only retain the original copyright notice and license terms. No royalty payments or source code disclosure are required.

### Do I need to open-source my code if I modify PrimeAgent?

No. The MIT License is not copyleft. You may modify PrimeAgent and distribute your changes under proprietary terms, provided you include the original MIT license and copyright notice in your distribution.

### Where can I find the official license text?

The complete license text resides in the `LICENSE` file at the repository root: `https://github.com/PrimeIntellect-ai/prime-agent/blob/main/LICENSE`. Each package's [`package.json`](https://github.com/PrimeIntellect-ai/prime-agent/blob/main/package.json) also contains the `"license": "MIT"` field for programmatic verification.