Generate beautiful README files from your code using AI
Project description
🤖 readme-ai
Generate beautiful, production-ready README files from your code using AI.
Point it at any codebase. Get a README worth starring.
✨ Features
- Understands your code — scans source files, package manifests, and directory structure; builds context before writing a single word
- Production-quality output — badges, installation instructions, real usage examples, configuration docs, contributing guide
- Smart prioritisation — reads
pyproject.toml,package.json,main.pyand similar files first so the AI leads with the most important context - 15+ languages supported — Python, TypeScript, Go, Rust, Java, C/C++, Ruby, PHP, and more
- Dry-run mode —
readme-ai scanshows exactly what the AI will see, with no API call - Multilingual output — generate in English or Russian (
--language ru) - Non-destructive — always asks before overwriting an existing README
📦 Installation
pip install readme-ai
Or with pipx for an isolated global install:
pipx install readme-ai
Requirements: Python 3.9+ · An Anthropic API key
🚀 Usage
Generate a README
# Set your API key once
export ANTHROPIC_API_KEY="sk-ant-..."
# Generate README for the current directory
readme-ai generate .
# Or point at any project
readme-ai generate ~/projects/my-app
# Preview in terminal without writing to disk
readme-ai generate . --preview
# Generate in Russian
readme-ai generate . --language ru
# Write to a custom path
readme-ai generate . --output docs/README.md
Inspect what the AI sees (no API call)
readme-ai scan .
Output:
Project: my-app
Files found: 12
Languages detected:
Python ████████████ 6
TypeScript ██████ 3
Shell ██ 1
Priority files:
★ pyproject.toml
★ main.py
★ requirements.txt
Full options
readme-ai generate [OPTIONS] [PATH]
Arguments:
PATH Project directory [default: .]
Options:
-o, --output PATH Output file path [default: <path>/README.md]
-k, --api-key TEXT Anthropic API key (or set ANTHROPIC_API_KEY)
-l, --language [en|ru] Output language [default: en]
-p, --preview Print to stdout instead of writing to file
-f, --overwrite Skip the overwrite confirmation prompt
-m, --model TEXT Claude model to use
-V, --version Show version and exit
⚙️ Configuration
| Variable | Description | Required |
|---|---|---|
ANTHROPIC_API_KEY |
Your Anthropic API key | Yes |
Get your key at console.anthropic.com.
The default model is claude-sonnet-4-20250514. You can override it with --model:
readme-ai generate . --model claude-opus-4-20250514
🔍 How it works
Your project
│
▼
📂 Scanner Reads up to 30 files, prioritising entry points
│ and package manifests. Builds a directory tree.
▼
🧠 Prompt builder Assembles structured context: tree, languages,
│ package metadata, key source files.
▼
✨ Claude AI Generates a README following strict documentation
│ best practices with real examples and badges.
▼
📄 README.md
🤝 Contributing
Contributions are welcome! Here's how to get started:
git clone https://github.com/aaxnet/readme-ai
cd readme-ai
pip install -e ".[dev]"
pytest tests/ -v
Please open an issue before starting work on a large feature. PRs should include tests.
📄 License
MIT © 2026 readme-ai contributors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aaxnet_readme_ai-0.1.0.tar.gz.
File metadata
- Download URL: aaxnet_readme_ai-0.1.0.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d363b9446aa63ca60cb7042de3a721109949e6ce2f2b07a7fae8c92bf4e0891
|
|
| MD5 |
c6ddd03986b47f078c8527521b3ecab6
|
|
| BLAKE2b-256 |
1330096b5c37de6d9f65a90921aa2e0745f857e076bd7321cef6497cf2e0a50f
|
File details
Details for the file aaxnet_readme_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aaxnet_readme_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52d3bfd1c87e533eac504987369ce8c502dbea5769d90e1307002474fd5da036
|
|
| MD5 |
b716f16a81bcf4105978d996dcd780f9
|
|
| BLAKE2b-256 |
1e5fcb5126b0ef2486af1859e8b20e01841c61b72ab6f15085d10c995372a27c
|