# Repomix

> Pack a whole repository into one AI-friendly file

Source: https://talira.ai/catalog/repomix-wb28vn59
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, MCP server
- Categories: [ai / agents / docs for agents](https://talira.ai/categories/ai/agents/docs-for-agents), [developer tools / ai coding / context](https://talira.ai/categories/developer-tools/ai-coding/context)
- Platforms: macos, linux, windows, web, cli
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Cloud hosted: yes
- MCP server: yes
- Supports: [MCP](https://talira.ai/standards/mcp.md)
- Creator: yamadashy
- Sponsors: Warp, CodeRabbit

Repomix packs a whole repository (local or remote) into one AI-friendly file in XML, Markdown or plain text, with token counts per file and a total, respect for .gitignore, and a Secretlint scan so secrets don't leak into prompts. It can compress code with Tree-sitter to keep only signatures and structure, and also runs as an MCP server and a web app at repomix.com.

## Links

- Website: https://repomix.com
- GitHub: https://github.com/yamadashy/repomix
- Docs: https://repomix.com

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/repomix>[^1]

## Problems it solves

- paste my whole codebase into ChatGPT or Claude in one go
- how many tokens is my repo, will it fit in the context window
- bundle a GitHub repo into a single file for an LLM to review
- make sure I don't accidentally paste API keys into an AI chat
- shrink the codebase down to function signatures so it fits
- give an agent the full context of another repository
- skip gitignored and binary files when exporting code for AI
- let my agent pack a remote repo through MCP

## Features

- XML, Markdown and plain output
- token counting
- .gitignore support
- Secretlint security check
- Tree-sitter compression (--compress)
- remote repositories (--remote)
- MCP server
- web app

## Ways to run it

### Repomix website (repomix.com)

Hosted by the maker. Price: free.

Only in this edition:

- packs a public repository or uploaded files in the browser with nothing to install

Not included:

- a per-IP rate limit (30 packs a day, per the server source)
- your local working tree and private repositories

Pricing: https://repomix.com

### Repomix CLI and MCP server

You run it, MIT. Price: free.

Only in this edition:

- packs local repositories, including private code, on your own machine
- MCP server mode
- a Docker image
- no rate limits

You arrange:

- Node.js (npx repomix) or Docker

Self-hosting docs: https://repomix.com/guide/

## Capabilities

- Has a command line tool: plan not known
- Has an MCP server: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.79 out of 1.
Signals: maintenance 1.00, adoption 0.89, momentum 0.91, community 0.78, backing 0.35, extensibility 0.40.

- last commit 9 days ago
- 468 commits in the last 90 days
- latest release v1.19.0 16 days ago
- 29.3k GitHub stars
- 90 contributors
- accepts sponsorship (Github)
- created by yamadashy
- sponsored by Warp, CodeRabbit
- has an MCP server for agents

## Alternatives

- [GitMCP](https://talira.ai/catalog/gitmcp-4916vgtw.md): Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project
- [Context7](https://talira.ai/catalog/context7-7maq508q.md): Up-to-date docs for AI agents
- [DeepWiki](https://talira.ai/catalog/deepwiki-1hdwzsq3.md): AI-generated documentation and Q&A for public GitHub repositories, with a free MCP server
- [Starlight Page Actions](https://talira.ai/catalog/starlight-page-actions-2001sjzs.md): A Starlight plugin that adds page action buttons to your documentation

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
