repomix

📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Langua

What is repomix?

📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, Grok, and more.

Overview of repomix

What it is

Repomix is a command-line tool that packs an entire repository into a single, AI-friendly file. It is designed for feeding codebases to Large Language Models (LLMs) and AI tools such as Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, and Grok. The project is open source under the MIT license.

Key features

  • AI-Optimized: Formats the codebase in a way that is easy for AI to understand and process.
  • Token Counting: Provides token counts for each file and the entire repository, useful for LLM context limits.
  • Simple to Use: Requires only one command to pack the entire repository.
  • Customizable: Allows configuration of what to include or exclude.
  • Git-Aware: Automatically respects .gitignore, .ignore, and .repomixignore files.
  • Security-Focused: Uses Secretlint to detect files matching known credential formats and exclude them from the output.
  • Code Compression: The --compress option uses Tree-sitter to extract key code elements, reducing token count while preserving structure.

Use cases

  • Feeding a codebase to an AI assistant for code review, refactoring, or generating code.
  • Providing context to LLMs when asking questions about a repository.
  • Sharing a repository’s structure and content with AI tools in a single file.
  • Analyzing code evolution by including git logs and diffs.

Getting started

You can try Repomix instantly in your project directory without installation: bash npx repomix@latest Or install globally for repeated use: bash npm install -g repomix # Alternatively using yarn yarn global add repomix # Alternatively using bun bun add -g repomix # Alternatively using Homebrew (macOS/Linux) brew install repomix # Then run in any project directory repomix

License and pricing

The project is licensed under the MIT License and is open source. No pricing information is provided beyond that.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/yamadashyrepomix.svg)](https://yunodb.com/tools/yamadashyrepomix?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/yamadashyrepomix?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/yamadashyrepomix.svg" alt="Featured on YunoDB" height="20"></a>