head to head · open source

repomix vs code2prompt

repomix has 28,393 GitHub stars, 1,528 forks, 138 open issues and last shipped 5 days ago. code2prompt has 7,657 stars, 438 forks, 16 open issues and last shipped 7 days ago. repomix leads on adoption by 271% (28,393 vs 7,657 stars). repomix is written in TypeScript under MIT; code2prompt is written in Rust under MIT. repomix has attracted 5% as many forks as stars, code2prompt 6%. repomix was the more recently maintained of the two, and both are self-hostable with no licence fee. The two share 4 topic tags (ai, chatgpt, claude, gpt), so they are genuine substitutes rather than adjacent tools.

Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.

repomix ★ 28K code2prompt ★ 7.7K category AI & Machine Learning

← all 13541 open source comparisons

Side by side

repomix code2prompt
GitHub stars ★ 28K ★ 7.7K
License MIT MIT
Written in TypeScript Rust
Last push 2026-09-13 2026-09-11
Forks ⑂ 1.5K ⑂ 438
Self-hosting Yes Yes
Data ownership Your server Your server

pick repomix if

  • You weight community size — 28K stars and counting
  • You want the MIT license terms
  • Your stack matches TypeScript
  • You value the larger contributor base for long-term maintenance

full repomix profile →

pick code2prompt if

  • You want the code2prompt feature set and don't need the biggest community
  • You prefer the MIT license terms
  • Your stack matches Rust
  • You evaluated both and code2prompt fits your workflow better

full code2prompt profile →

About 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.

read the full repomix overview →

About code2prompt

code2prompt is a Rust command line tool, also shipped as a Python SDK and an MCP server, that ingests a codebase and formats it into a single LLM prompt with a source tree, prompt templating, and token counting, for developers and agent builders who need to hand repository context to ChatGPT, Claude, or GPT.

read the full code2prompt overview →

More in AI & Machine Learning

OpenClaw ★ 390K Hermes Agent ★ 247K Ollama ★ 181K Dify ★ 156K Open WebUI ★ 152K langchain ★ 147K

Related comparisons

openclaw vs hermes-agent openclaw vs opencode openclaw vs n8n openclaw vs open-webui openclaw vs lobechat openclaw vs anythingllm hermes-agent vs opencode hermes-agent vs n8n openclaw vs dify openclaw vs multica openclaw vs langgraph n8n vs dify dify vs langflow dify vs open-webui dify vs langchain dify vs ponytail openclaw vs ollama ollama vs llama-cpp ollama vs vllm ollama vs gpt4all ollama vs llama-index ollama vs localai open-webui vs gpt4all llama-cpp vs vllm

More AI Interaction & Interfaces projects

Compare either of these against the rest of the AI Interaction & Interfaces field.

repomix vs OpenClaw repomix vs Hermes Agent repomix vs Open WebUI repomix vs odysseus repomix vs LobeChat repomix vs AnythingLLM repomix vs Cherry Studio repomix vs nanobot repomix vs Jan repomix vs LibreChat repomix vs chatbox repomix vs AstrBot

Frequently asked questions

Is repomix or code2prompt more popular?

repomix has 28,393 GitHub stars and code2prompt has 7,657. repomix has the larger community by that measure.

Are repomix and code2prompt free?

Both are open source. repomix is licensed under MIT and code2prompt under MIT. Neither carries a licence fee.

What is the difference between repomix and code2prompt?

repomix is written in TypeScript and code2prompt in Rust. The practical differences are community size, licence terms, language stack and release cadence — all compared in the table above.

Which should I choose, repomix or code2prompt?

Choose repomix if you want the larger community (28,393 stars) or its MIT licence terms. Choose code2prompt if its feature set, stack or MIT licence fits better. Both are self-hostable.