Pack a whole repository into one AI-friendly file
open sourceMITself-hostablefreeMCP
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.
Ways to install
Package managers
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)
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
Repomix CLI and MCP server
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
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has an MCP server | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Repomix does.
- GitMCP Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project
- Context7 Up-to-date docs for AI agents
- DeepWiki AI-generated documentation and Q&A for public GitHub repositories, with a free MCP server
- Starlight Page Actions A Starlight plugin that adds page action buttons to your documentation
