https://github.com/ktaletsk/ai-cli-template
Copier template for Python Click CLI with OpenAI and RAG
https://github.com/ktaletsk/ai-cli-template
ai-cli copier copier-python copier-template generative-ai python python-cli
Last synced: 21 days ago
JSON representation
Copier template for Python Click CLI with OpenAI and RAG
- Host: GitHub
- URL: https://github.com/ktaletsk/ai-cli-template
- Owner: ktaletsk
- Created: 2025-04-08T22:58:39.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-04-09T21:09:24.000Z (about 1 month ago)
- Last Synced: 2025-04-09T21:39:52.954Z (about 1 month ago)
- Topics: ai-cli, copier, copier-python, copier-template, generative-ai, python, python-cli
- Language: Jinja
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AI CLI Tool Template
[](https://github.com/copier-org/copier)
This repository contains a template for creating AI-powered CLI tools using Python. It provides a solid foundation for building command-line applications that leverage various AI models like OpenAI, Anthropic, and local models through Ollama.
## Features
- Ready-to-use CLI structure with [Click](https://click.palletsprojects.com/)
- Support for multiple AI providers:
- OpenAI (GPT models)
- Anthropic (Claude models)
- Azure OpenAI
- Ollama (local models)
- Optional Retrieval-Augmented Generation (RAG) capabilities
- Configuration management
- Easy environment setup with Conda## Usage
To use this template, you need [Copier](https://copier.readthedocs.io/en/stable/):
```bash
# Install copier
pip install copier# Create a new project
copier copy gh:ktaletsk/ai-cli-template path/to/your-project
```During the copy process, you'll be prompted to customize your project with options like:
- Project name and description
- Python package name
- Author information
- Whether to include Ollama support
- Whether to include RAG capabilities
- Python version## Template Structure
The template is located in the `template/` directory and includes:
- Project configuration files
- CLI implementation
- AI integration code
- Optional RAG functionality
- Documentation## License
This template is licensed under the MIT License. See the LICENSE file for details.