TL;DR
code2prompt at a glance
A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
Overview
What is code2prompt?
code2prompt is an open-source project by code2prompt on GitHub. A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting. It has 7,682 stars on GitHub. Commonly categorised as Code. All credit belongs to the maintainers; One9Founders lists it for discovery with a link to the source.
Trust
Security assessment
FAQ
Frequently asked questions
What is code2prompt and what does it do?
A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
What does code2prompt cost in India?
code2prompt is a paid tool.
Is code2prompt safe for startups?
code2prompt has not yet been assessed on our Security & Data Privacy criterion. Check the vendor’s own security documentation before using it for sensitive data.
How is code2prompt rated on One9Founders?
code2prompt has not yet been rated on our 10-point evaluation framework. See How We Rate for the 10-criterion framework and status definitions.
Community
Reviews & comments
Become the first to write about this tool
Listed: 20 September 2026
Alternatives
Alternatives to code2prompt
Anthropic's AI assistant for writing, coding, research, and Claude Code.
Google’s multimodal AI assistant designed for creative and productive collaboration.
AI-powered pair programming tool for suggesting code in real-time
Open source healthcare tool for data analysis.

AI-assisted coding insights dashboard
Web UI for Stable Diffusion image generation

Supercharge your coding with AI-powered snippets and tools.
AI-powered code assistant for developers