# Repomix

> Packs a whole codebase into AI-friendly files with strong ignore and token controls.

- Website: https://repomix.com
- Category: Coding & Development
- Source page: https://opendirs.com/en/tools/repomix
- Pricing: Open source
- Starting price: $0
- Public API: Yes
- Open source: Yes
- Chinese language: No
- Accessible from mainland China: Unknown
- Platforms: Unknown
- Country: Unknown
- Last verified: Nov 28, 2026

## Overview

Repomix is an open-source tool that packs a repository into a single AI-friendly file or set of files. It handles ignore rules, output formats, and token-oriented limits so you can feed a coding agent or chat model a structured snapshot of the project. Many developers use it as the packaging step before asking an assistant to review, document, or refactor a codebase.

**Best for:** Developers who want a reliable, configurable way to pack a repo for an LLM.

## Key features

- Packs a repository into AI-friendly output formats
- Fine-grained ignore rules and token-oriented size controls
- CLI-first workflow that fits local and CI use
- Open source and actively used in agent preprocessing

## Use cases

- Preparing a repository snapshot before a design or review session with an LLM
- Including packed context in an agent prompt or evaluation pipeline
- Generating a shareable, sanitized digest of a project

## Pros

- More packaging control than a naive file dump
- Works well as a local or CI preprocessing step
- Open source and straightforward to automate

## Cons

- Packing still loses the live, navigable structure of a real repo workspace
- Very large repos require careful include and exclude rules

## Alternatives

- [Gitingest](https://opendirs.com/en/tools/gitingest.md)
- [claude-mem](https://opendirs.com/en/tools/claude-mem.md)
- [Koed](https://opendirs.com/en/tools/koed.md)
- [Context7](https://opendirs.com/en/tools/context7.md)
- [OpenCode](https://opendirs.com/en/tools/opencode.md)

## FAQ

### What is Repomix?

Repomix is an open-source tool that packs a repository into a single AI-friendly file or set of files. It handles ignore rules, output formats, and token-oriented limits so you can feed a coding agent or chat model a structured snapshot of the project. Many developers use it as the packaging step before asking an assistant to review, document, or refactor a codebase.

### Is Repomix free?

Repomix uses a Open source pricing model (verified Nov 28, 2026).

### Does Repomix have an API?

Yes. Repomix offers an API for developers.

### Does Repomix support Chinese, and is it available in China?

Repomix does not support Chinese, and it has unverified availability in mainland China.

### What are the best alternatives to Repomix?

Popular alternatives to Repomix include Gitingest, claude-mem, Koed, Context7.

_Last verified: Nov 28, 2026_