repomix is a free, open source ai interaction & interfaces project written in TypeScript and released under MIT. It has 28,389 GitHub stars, 1,528 forks and 138 open issues, and was last pushed 5 days ago. On this registry it ranks #24 of 76 tracked projects in AI Interaction & Interfaces, with 5 head-to-head comparisons available. It gained 26 stars over the last 3 tracked days.

What is repomix?

Repomix is an MIT-licensed TypeScript tool that packs an entire repository into a single AI-friendly file, built for developers who need to feed a whole codebase to large language models such as Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, or Grok.

What it is

Repomix is a command-line utility distributed through npm that walks a repository and emits one consolidated, AI-optimized file containing the project's code. It lives in the Node.js and TypeScript ecosystem, publishes under the package name repomix, and is developed in the open on GitHub, where it has accumulated 28,389 stars, 1,528 forks, and 138 open issues as of the last push on 13 September 2026. A companion website at repomix.com offers the same packing capability in the browser, so the software runs both locally and as a hosted convenience.

The concrete problem it solves is the manual assembly work that precedes almost every useful conversation with a coding assistant. Without tooling, a developer copies files one at a time, pastes them into a chat window, loses track of which files were included, and discovers only after a rejected request that the material exceeded the model's context window. Repomix replaces that hand-collection step by producing a single structured artifact that the model can read as a coherent unit, which keeps multi-file reasoning intact instead of fragmenting it across separate pastes.

Key capabilities

  • Packs an entire repository into a single, AI-friendly file rather than a loose collection of pasted snippets.
  • Counts tokens for each individual file and for the whole repository, which lets you size the payload against a model's context limit before sending it.
  • Emits codebase formatting tuned for machine comprehension, aimed at the models named in the project's documentation: Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, and Grok.
  • Ships as the npm package repomix, written in TypeScript and licensed under MIT.
  • Provides a browser-based path at repomix.com for users who do not want to install anything locally.
  • Maintains an active Discord server for configuration, usage, and support discussion.
  • Carries ecosystem signals including a nomination in the Powered by AI category at the JSNation Open Source Awards 2025 and sponsorship from Warp and CodeRabbit.

Who uses it and how

  • Individual developers working through a refactor or bug hunt who need a model to see every relevant file at once instead of a hand-picked subset.
  • Review workflows where a packed repository is handed to an AI assistant to reason across modules, tests, and configuration together.
  • Token-budget planning, where the per-file counts identify which parts of a large codebase to include and which to leave out before a prompt is assembled.
  • Quick, low-friction sharing, where someone points a collaborator or a model at repomix.com rather than walking through a local install.
  • Teams that configure the packing behavior repeatedly and rely on the Discord community for guidance on those settings.

Getting started

Install and run the npm package repomix in a repository, or use the hosted version at repomix.com when no local setup is wanted.

How it compares

No comparable codebase-packing tools are named in the available facts, so on that evidence this project stands alone in this registry. The tools it is documented alongside are the language models that consume its output, not alternatives that produce it.

When to use it β€” and when not to

Adoption cost is low: a Node.js runtime and the repomix package are the whole footprint, with no database, object storage, or mail service to operate, and the public web app removes even that requirement. The honest caveats are that the supplied README excerpt is only partial, so features beyond AI-optimized packing and token counting are not verifiable from these facts, and that 138 open issues indicate a project with real ongoing maintenance load. Anyone who needs a governed, access-controlled service with self-hosted server infrastructure should look elsewhere, because what is described here is a CLI plus a public web app, not a deployable platform.

project readme (upstream, from github) β€” read inline

Special thanks to:

Warp sponsorship

Warp, built for coding with multiple AI agents

Available for MacOS, Linux, & Windows


CodeRabbit | AI Code Reviews

Cut code review time & bugs in half, instantly.


Pack your codebase into AI-friendly formats

Use Repomix online! πŸ‘‰ repomix.com

Need discussion? Join us on Discord!
Share your experience and tips
Stay updated on new features
Get help with configuration and usage


npm npm Actions Status codecov CodeRabbit Pull Request Reviews Sponsors Discord

DeepWiki

πŸ“¦ Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file.
It is 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.

Please consider sponsoring me.

Sponsor

Sponsors

πŸ† Open Source Awards Nomination

We're honored! Repomix has been nominated for the Powered by AI category at the JSNation Open Source Awards 2025.

This wouldn't have been possible without all of you using and supporting Repomix. Thank you!

πŸŽ‰ New: Repomix Website & Discord Community!

We look forward to seeing you there!

🌟 Features

  • AI-Optimized: Formats your codebase in a way that's 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: You need just one command to pack your entire repository.
  • Customizable: Easily configure what to include or exclude.
  • Git-Aware: Automatically respects your .gitignore, .ignore, and .repomixignore files.
  • Security-Focused: Incorporates Secretlint to detect files matching known credential formats and leave them out of the output.
  • Code Compression: The --compress option uses Tree-sitter to extract key code elements, reducing token count while preserving structure.

πŸš€ Quick Start

Using the CLI Tool >_

You can try Repomix instantly in your project directory without installation:

npx repomix@latest

Or install globally for repeated use:

# Install using npm
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

That's it! Repomix will generate a repomix-output.xml file in your current directory, containing your entire repository in an AI-friendly format.

You can then send this file to an AI assistant with a prompt like:

This file contains all the files in the repository combined into one.
I want to refactor the code, so please review it first.

Repomix File Usage 1

When you propose specific changes, the AI might be able to generate code accordingly. With features like Claude's Artifacts, you could potentially output multiple files, allowing for the generation of multiple interdependent pieces of code.

Repomix File Usage 2

Happy coding! πŸš€

Using The Website 🌐

Want to try it quickly? Visit the official website at repomix.com. Simply enter your repository name, fill in any optional details, and click the Pack button to see your generated output.

Available Options

The website offers several convenient features:

  • Customizable output format (XML, Markdown, or Plain Text)
  • Instant token count estimation
  • Much more!

Using The Browser Extension 🧩

Get instant access to Repomix directly from any GitHub repository! Our Chrome extension adds a convenient "Repomix" button to GitHub repository pages.

Repomix Browser Extension

Install
Features
  • One-click access to Repomix for any GitHub repository
  • More exciting features coming soon!

Using The VSCode Extension ⚑️

A community-maintained VSCode extension called Repomix Runner (created by massdo) lets you run Repomix right inside your editor with just a few clicks. Run it on any folder, manage outputs seamlessly, and control everything through VSCode's intuitive interface.

Want your output as a file or just the content? Need automatic cleanup? This extension has you covered. Plus, it works smoothly with your existing repomix.config.json.

Try it now on the VSCode Marketplace! Source code is available o

readme truncated β€” read the full docs on github

Frequently asked questions

Is repomix free to use?

repomix is open source under the MIT licence. There is no licence fee and no seat count β€” you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does repomix do?

πŸ“¦ 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 written in?

repomix is primarily written in TypeScript. Its source is publicly available at https://github.com/yamadashy/repomix, and it has 28,389 GitHub stars.