CLI tool for interacting with chat LLMs (ChatGPT, Claude, Gemini, etc.)
Top 49.2% on sourcepulse
This project provides a command-line interface for interacting with various large language models, including OpenAI's ChatGPT, Anthropic's Claude, and Google's Gemini. It's designed for developers and power users who want to integrate AI chat capabilities directly into their terminal workflows, offering features like model customization, usage tracking, and flexible configuration.
How It Works
The CLI leverages Python and interacts with LLM APIs through environment variables or a YAML configuration file. Users can define multiple "assistants" with specific system prompts, model parameters (temperature, top_p), and API keys. This allows for tailored interactions, such as a dedicated "dev" assistant for coding or a "bash" assistant for generating shell commands. The tool supports streaming responses, multi-line input, and an "execute" mode for directly running generated shell commands.
Quick Start & Requirements
pip install gpt-command-line
~/.config/gpt-cli/gpt.yml
.Highlighted Details
!include
directive for loading context from files.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
3 months ago
1 week