Repomix
Developer CLI · Free
Packages selected repository files into structured AI context: it helps share code with exclusions and estimated token counts.
Also known as: yamadashy/repomix; repomix; repo-pack; ai-packager

What you can use for free
Code and local use under MIT.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Prepare repository context for an AI review
- Build structured context and check the result's content/token volume
Example workflow
A possible workflow; this is not a report of hands-on testing.
Prepare repository context for an AI review.
Before you start
- Project files or environment.
- A shell and supported platform.
Steps
- Choose files and exclusions for the relevant project section.
- Build structured context and check the result's content/token volume.
- Save the working command or script and the result criteria.
Check your result
- The command correctly handles paths, Unicode, and invalid inputs.
- Repeat runs behave predictably; credentials do not appear in the output.
Choosing Repomix
Prepare repository context for an AI review
Choose this when
- Prepare repository context for an AI review
- Build structured context and check the result's content/token volume
Requirements
- Limit files with --include/--ignore and inspect the final package before sharing it with an AI service.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: MIT for the code; dependencies have separate licenses.
- Secretlint detects known secret patterns; it does not guarantee the absence of all confidential data.
Frequently asked questions
What can you use for free in Repomix?
Code and local use under MIT.
What additional costs might arise with Repomix?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for Repomix?
MIT for the code; dependencies have separate licenses.
How do you get started with Repomix?
Choose files and exclusions for the relevant project section. Build structured context and check the result's content/token volume. Save the working command or script and the result criteria.
How can I package only the required code?
--include accepts file glob patterns, while --ignore excludes log files and temporary directories. Repomix also honors .gitignore and .repomixignore.
What does --compress do?
Compression uses Tree-sitter to preserve key code elements and structure with less context. Token counts can be estimated, but source files and full context should still be kept separately.
License
MIT for the code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- Repomix
- CLI
- Development