mufeedvh/code2prompt
A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
- Stars
- 7.7k
- Forks
- 455
- Open issues
- 5
- Last push
- 5d ago
About code2prompt
code2prompt is a free, open-source LLM chat app by mufeedvh, written mainly in Rust. A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting. It has 7.7k GitHub stars and 455 forks, and was last updated 5d ago. It's released under the MIT license, a standard open-source license.
- License
- MIT
- Language
- Rust
- Stars
- 7,730
- Last update
- 5d ago
- Runs on Mac
- Not stated
- GPU
- Not stated
- Paid API key
- Not stated
- Self-hostable
- Yes
Similar free tools
rtk84k stars · CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
OpenHands92k stars · 🙌 OpenHands: AI-Driven Development
repomix29k stars · 📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like
gpt4free67k stars · The official gpt4free repository | various collection of powerful language models | opus 4.6 gpt 5.3 kimi 2.5 deepseek v3.2 gemini 3
khoj38k stars · Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI
QwenPaw36k stars · Your Personal AI Assistant; easy to install, deploy on your own machine or on the cloud; supports multiple chat apps with easily extensible capabilities.
code2prompt FAQ
Is code2prompt free?
Yes. code2prompt is open source and free to use. It's released under the MIT license, a standard open-source license.
Does code2prompt run on a Mac?
The project doesn't say. Check its installation guide before you start.
Does code2prompt need a GPU?
The project doesn't state hardware needs. AI models generally run much faster with a GPU.
Is code2prompt still maintained?
Yes. It was last updated 5d ago and has 5 open issues on GitHub.
What are alternatives to code2prompt?
Similar free, open-source tools include rtk, OpenHands, repomix, gpt4free.