README file generator, powered by AI.
Designed for simplicity, customization, and developer productivity.
The metrics above are rendered with HyperWeave — an experimental SVG artifact layer for agents. Explore →
[!IMPORTANT] Explore the [Official Documentation][docs] for a complete list of features, customization options, and examples.
ReadmeAI is a developer tool that automatically generates README files using a robust repository processing engine and advanced language models. Simply provide a URL or path to your codebase, and a well-structured and detailed README will be generated.
Why Use ReadmeAI?
This project aims to streamline the process of creating and maintaining documentation across all technical disciplines and experience levels. The core principles include:
OpenAI, Ollama, Anthropic, and Gemini anytime..readmeaiignore patterns.Run from your terminal:
[readmeai-cli-demo][cli-demo]
Let's begin by exploring various customization options and styles supported by ReadmeAI:
Project Introduction
|
|---|
| ![][project-overview] |
Features Table
|
|---|
| ![][features-table] |
Project Structure
|
|---|
| ![][project-structure] |
Project Index
|
| ![][project-index] |
Getting Started Guides
|
|---|
| ![][installation-steps] |
Installation, Usage, & Testing
|
| ![][usage-guides] |
Community & Support
|
|---|
| ![][community-and-support] |
Contribution Guides
|
| ![][contributing-guidelines] |
ReadmeAI requires Python 3.10 or higher, and one of the following installation methods:
| Requirement | Details |
|---|---|
| • [Python][python-link] ≥3.10 | Core runtime |
| Installation Method (choose one) | |
| • [pip][pip-link] | Default Python package manager |
| • [pipx][pipx-link] | Isolated environment installer |
| • [uv][uv-link] | High-performance package manager |
| • [docker][docker-link] | Containerized environment |
To generate a README file, provide the source repository. ReadmeAI supports these platforms:
| Platform | Details |
|---|---|
| [File System][file-system] | Local repository access |
| [GitHub][github] | Industry-standard hosting |
| [GitLab][gitlab] | Full DevOps integration |
| [Bitbucket][bitbucket] | Atlassian ecosystem |
ReadmeAI is model agnostic, with support for the following LLM API services:
| Provider | Best For | Details |
|---|---|---|
| [OpenAI][openai] | General use | Industry-leading models |
| [Anthropic][anthropic] | Advanced tasks | Claude language models |
| [Google Gemini][gemini] | Multimodal AI | Latest Google technology |
| [Ollama][ollama] | Open source | No API key needed |
| [Offline Mode][README-Offline.md] | Local operation | No internet required |
ReadmeAI is available on [PyPI][pypi-link] as readmeai and can be installed as follows:
Install with pip (recommended for most users):
❯ pip install -U readmeaiWith pipx, readmeai will be installed in an isolated environment:
❯ pipx install readmeaiThe fastest way to install readmeai is with [uv][uv-link]:
❯ uv tool install readmeaiTo run readmeai in a containerized environment, pull the latest image from [Docker Hub][dockerhub-link]:
❯ docker pull zeroxeli/readme-ai:latestreadmeai from sourceClone the repository:
❯ git clone https://github.com/eli64s/readme-aiNavigate to the project directory:
❯ cd readme-aiInstall dependencies:
❯ pip install -r setup/requirements.txtAlternatively, use the [setup script][setup-script] to install dependencies:
Run the setup script:
❯ bash setup/setup.shOr, use poetry to build and install project dependencies:
Install dependencies with poetry:
❯ poetry install[!IMPORTANT] To use the Anthropic and Google Gemini clients, extra dependencies are required. Install the package with the following extras:
Anthropic:
❯ pip install "readmeai[anthropic]"Google Gemini:
❯ pip install "readmeai[google-generativeai]"Install Multiple Clients:
❯ pip install "readmeai[anthropic,google-generativeai]"
When running readmeai with a third-party service, you must provide a valid API key. For example, the OpenAI client is set as follows:
❯ export OPENAI_API_KEY=<your_api_key>
# For Windows users:
❯ set OPENAI_API_KEY=<your_api_key>Ollama, Anthropic, Google Gemini
Refer to the [Ollama documentation][ollama] for more information on setting up the Ollama server.
To start, follow these steps:
Pull your model of choice from the Ollama repository:
❯ ollama pull llama3.2:latestStart the Ollama server and set the OLLAMA_HOST environment variable:
❯ export OLLAMA_HOST=127.0.0.1 && ollama serveExport your Anthropic API key:
❯ export ANTHROPIC_API_KEY=<your_api_key>Export your Google Gemini API key:
❯ export GOOGLE_API_KEY=<your_api_keyBelow is the minimal command required to run readmeai using the OpenAI client:
❯ readmeai --api openai -o readmeai-openai.md -r https://github.com/eli64s/readme-ai[!IMPORTANT] The default model set is
gpt-3.5-turbo, offering the best balance between cost and performance.When using any model from thegpt-4series and up, please monitor your costs and usage to avoid unexpected charges.
ReadmeAI can easily switch between API providers and models. We can run the same command as above with the Anthropic client:
❯ readmeai --api anthropic -m claude-3-5-sonnet-20240620 -o readmeai-anthropic.md -r https://github.com/eli64s/readme-aiAnd finally, with the Google Gemini client:
❯ readmeai --api gemini -m gemini-1.5-flash -o readmeai-gemini.md -r https://github.com/eli64s/readme-aiWe can also run readmeai with free and open-source locally hosted models using the Ollama:
❯ readmeai --api ollama --model llama3.2 -r https://github.com/eli64s/readme-aiTo generate a README file from a local codebase, simply provide the full path to the project:
❯ readmeai --repository /users/username/projects/myproject --api openaiAdding more customization options:
❯ readmeai --repository https://github.com/eli64s/readme-ai \
--output readmeai.md \
--api openai \
--model gpt-4 \
--badge-color A931EC \
--badge-style flat-square \
--header-style compact \
--navigation-style fold \
--temperature 0.9 \
--tree-depth 2
--logo LLM \
--emojis solarReadmeAI supports offline mode, allowing you to generate README files without using a LLM API service.
❯ readmeai --api offline -o readmeai-offline.md -r https://github.com/eli64s/readme-aiRun the readmeai CLI in a Docker container:
❯ docker run -it --rm \
-e OPENAI_API_KEY=$OPENAI_API_KEY \
-v "$(pwd)":/app zeroxeli/readme-ai:latest \
--repository https://github.com/eli64s/readme-ai \
--api openaiTry readme-ai directly in your browser on Streamlit Cloud, no installation required.
See the [readme-ai-streamlit][readme-ai-streamlit] repository on GitHub for more details about the application.
[!WARNING] The readme-ai Streamlit web app may not always be up-to-date with the latest features. Please use the command-line interface (CLI) for the most recent functionality.
No open issues yet, or sync has not completed.