LibreAI / Dev Tools / repomix
// devtools · yamadashy/repomix

repomix

Pack your whole repository into one AI-friendly file for Claude, ChatGPT, Gemini and more

★ 28.8k stars⑂ 1.6k forksMITupdated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

repomix is an open-source dev tools project by yamadashy (yamadashy/repomix on GitHub). It has 28,751 GitHub stars and 1,573 forks, is released under the MIT license, and was last updated on GitHub on 3 October 2026.

GitHub stars
28,751
Forks
1,573
License
MIT
Last updated on GitHub
3 October 2026
Category
Dev Tools
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Clarify your goal

    Decide what you want to achieve with repomix and check the README on GitHub for requirements before installing.

  2. Get the code

    Clone the repository from GitHub (or take the packaged install route in step 3 if the README offers one).

  3. Install and configure

    Follow the project's documented install commands — the Run section below lists the exact ones — and add any required API keys or models.

  4. Run your first task

    Work through the README's quickstart example end to end, then adapt it to your own project or data.

// features

Why people love it

One-file codebase packing

Flattens a repo into a single output file with a clear tree and file boundaries.

Token counting

Reports token counts so you can fit output to a model's context window.

Code compression option

Can strip comments and whitespace to shrink output for large repos.

Remote repo packing

Pack a GitHub repository directly with the --remote option (also via Docker).

MCP server mode

Runs as an MCP server (claude mcp add repomix -- npx -y repomix --mcp) so agents can pack repos on demand.

Git-aware selection

Respects .gitignore and supports git-based file selection by branch, commit or tracked files.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Get the Repomix source if you want to develop it; most users just run it via npx.

    git clone https://github.com/yamadashy/repomix.git
    cd repomix
  2. Pack your current repo

    Run Repomix with npx in any repository — no install needed.

    npx repomix@latest
  3. Or install it globally

    Install once for repeated use (npm, bun, brew and Docker variants are also documented).

    npm install -g repomix
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains repomix?

repomix is maintained by the yamadashy organization/account on GitHub, together with open-source contributors, in the public repository yamadashy/repomix.

Is repomix free to use?

Yes — the code is open source under the MIT license. You can use, modify and redistribute it under that license's terms.

Does repomix need a paid API key?

No API key — Repomix runs locally and for free; you only pay for whatever LLM you paste the output into.

How does repomix compare to manually copying files / zips?

Manual copying misses files and wastes tokens; Repomix automates selection, formatting and token counting, and keeps secrets-prone files out via gitignore rules.

How do I get started with repomix?

Clone the repository from GitHub, follow the install commands in the Run section (taken from the project's README), and complete the documented quickstart example before adapting it to your own use case.

// keep exploring

Similar tools

Dev Tools

ClaudeBar

Menu-bar tracker for your AI coding quotas — Claude, Codex, Gemini and more.

★ 1.5k starsCustom
View guide →
Dev Tools

claude-octopus

Claude Octopus orchestrates Claude, Codex, Copilot, Gemini, and Ollama on one task — and surfaces disagreement

★ 4.2k starsMIT
View guide →
Dev Tools

repo2txt

Turn any GitHub repo into one formatted text file — perfect context for AI.

★ 1.8k starsCustom
View guide →
Dev Tools

harnessrouter

One API for every agent harness — run Codex, Claude Code and more through a single self-hosted interface

★ 2.9k starsApache-2.0
View guide →
Dev Tools

agtx

agtx: a terminal Kanban blackboard where Claude, Codex, Grok, and more collaborate on the same tasks.

★ 1.7k starsApache-2.0
View guide →
Dev Tools

Graft

A codebase knowledge graph that makes Claude Code, Cursor, Codex and Gemini faster, cheaper and repo-aware.

★ 9.8k starsMIT
View guide →
// alternatives

Alternatives in Dev Tools

The most-starred other Dev Tools projects in the LibreAI catalogue — the realistic shortlist if repomix is not the right fit.

Get repomix

Free and open — grab the source, star the repo, and start creating.