What is Repomix?
Repomix is an open-source developer tool that packages a repository into a single file for large language models and other AI tools. Repomix is designed for developers who need to share codebase context with assistants such as Claude, ChatGPT, DeepSeek, Gemini, and Llama. The project is published on GitHub under the MIT license.
Repomix prepares the input for an AI-assisted workflow rather than performing the documented code reviews or generating tests itself. The repository shows how developers can send the packed file to an AI assistant with instructions to review architecture, suggest refactoring, generate documentation, or propose unit tests.
What Repomix can do
Repomix combines repository packaging with controls over file selection, output size, and development context. Repomix provides token counts for individual files and the full repository, which helps developers consider model context limits before sharing a codebase. The website also offers output format selection and instant token count estimation.
- Repomix packs local directories and remote repositories.
- Repomix supports XML, Markdown, and plain-text output on the website.
- Repomix respects .gitignore, .ignore, and .repomixignore files.
- Repomix uses Secretlint to exclude files matching known credential formats.
- Repomix uses Tree-sitter compression to extract key code elements.
- Repomix can add Git logs and diffs to the output.
How Repomix works
Repomix can run from a project directory using npx repomix@latest without a global installation. Repomix generates repomix-output.xml in the current directory by default. Developers can then provide that file to an AI assistant with a task-specific prompt. Global installation options include npm, yarn, bun, and Homebrew, and Docker provides a container-based alternative.
Repomix also accepts remote repository URLs, GitHub shorthand, and branch, tag, or commit selections. Repomix can read file paths through stdin while continuing to apply include and ignore rules. For browser-based use, developers enter a repository name on repomix.com, supply optional details, and select Pack to generate output.
Who Repomix is for
Repomix is for developers who want AI assistants to work with broader repository context instead of isolated code snippets. The documented examples cover understanding a library, evaluating maintainability, and preparing project documentation. Repomix also supports including commit dates, messages, and changed file paths to give AI tools context about development history.
- Repomix supplies repository context for code review and refactoring prompts.
- Repomix prepares codebase input for README generation.
- Repomix supports prompts requesting unit tests and edge cases.
- Repomix supplies code and history for code quality assessment.
Repomix pricing and access
Repomix is distributed as an open-source project under the MIT license. The supplied repository text does not list paid plans or subscription prices. Repomix is available through the CLI, the official website, and Docker. Chrome and Firefox extensions provide access from GitHub pages, while the community-maintained Repomix Runner extension supports use inside VSCode.
Repomix strengths and limitations
Repomix combines configurable repository selection, token visibility, credential-pattern detection, and optional code compression in a preparation workflow for AI tools. Repomix offers several access methods, including a website for quick use and a CLI for file selection and configuration. The documented workflow still depends on a separate AI assistant to interpret the generated file.
- Repomix prepares context rather than carrying out the example AI analysis tasks.
- Repomix Runner for VSCode is maintained by the community.
- Repomix applies ignore rules even to paths explicitly supplied through stdin.
Repomix FAQ
What is Repomix?
Repomix is an open-source tool that packs a repository into a single AI-friendly file. Repomix helps developers supply codebase context to large language models and assistants such as Claude, ChatGPT, DeepSeek, and Gemini.
Is Repomix free?
Repomix is available as an open-source project under the MIT license. Repomix provides CLI, website, and Docker access, and the supplied repository text does not list subscription prices or paid plans.
How do you run Repomix?
Repomix can run in a project directory with npx repomix@latest without a global installation. Repomix generates repomix-output.xml by default, and developers can pass the resulting file to an AI assistant with a prompt describing the task.
Can Repomix process remote GitHub repositories?
Repomix can pack remote repositories using a repository URL or GitHub shorthand with the --remote option. Repomix also supports selecting a branch, tag, or commit, including supported branch and commit URLs.
How does Repomix handle secrets and excluded files?
Repomix uses Secretlint to detect files matching known credential formats and leave those files out of the output. Repomix also respects .gitignore, .ignore, and .repomixignore files, and applies ignore rules to files selected through stdin.
Does Repomix support browsers and VSCode?
Repomix offers a browser-based website and Chrome and Firefox extensions for access from GitHub repository pages. Repomix also has a community-maintained VSCode extension called Repomix Runner that runs on folders and supports existing repomix.config.json configuration.
From the community
No reviews yet
Be the first to review this tool. What you write helps the next person choose.




