CLI tool for interacting with LLMs like OpenAI, Azure, Perplexity, and Llama
Top 47.3% on sourcepulse
This CLI tool provides a powerful command-line interface for interacting with large language models from providers like OpenAI, Azure, and Perplexity AI. It is designed for both casual users and developers who need a flexible and feature-rich way to leverage LLMs, offering features like streaming, prompt management, and multimedia support.
How It Works
The tool operates via a command-line interface, supporting various interaction modes: streaming for real-time responses, query mode for single input-output, and interactive mode for conversational exchanges. It manages conversation history using a thread-based system with a sliding window to maintain context within token limits. The CLI also supports piping data from any source, including files and other programs, and can process image and audio inputs, as well as generate speech outputs.
Quick Start & Requirements
brew install kardolus/chatgpt-cli
), or direct binary download for macOS, Linux, and Windows.OPENAI_API_KEY
environment variable or configure via config.yaml
.Highlighted Details
Maintenance & Community
The project is actively maintained, with contributions encouraged via GitHub issues. Community discussions can be found on Reddit.
Licensing & Compatibility
The project is licensed under the MIT License, permitting commercial use and integration with closed-source projects.
Limitations & Caveats
Image and audio support are model-dependent and may not be available for all LLM versions. The text-to-speech feature requires afplay
on macOS for chained playback.
3 days ago
1 day