Interactive CLI tool for ChatGPT, powered by GPT-3.5-turbo and GPT-4
Top 46.3% on sourcepulse
This project provides an elegant, interactive command-line interface (CLI) for interacting with large language models, primarily focusing on OpenAI's GPT series. It's designed for developers and power users who prefer terminal-based workflows, enabling seamless integration of AI into scripting and pipelines.
How It Works
The CLI leverages OpenAI's API to facilitate conversational AI interactions. Users can initiate chats, provide prompts, and even pipe data through the tool for processing. It supports context management, allowing for multi-turn conversations, and offers extensive customization through a JSON configuration file for API keys, endpoints, prompts, and conversation parameters like model selection and temperature.
Quick Start & Requirements
brew install j178/tap/chatgpt
(macOS/Linux), scoop install j178/chatgpt
(Windows), or go install github.com/j178/chatgpt/cmd/chatgpt@latest
.OPENAI_API_KEY
environment variable or configure ~/.config/chatgpt/config.json
.Highlighted Details
Maintenance & Community
The project is actively maintained by j178. Further provider support (Claude, Gemini, Ollama) is under development.
Licensing & Compatibility
Limitations & Caveats
While primarily focused on OpenAI, support for other providers is in development. Users relying on specific Azure OpenAI versions should verify compatibility with the api_version
setting.
3 weeks ago
1 day