chatgpt  by j178

Interactive CLI tool for ChatGPT, powered by GPT-3.5-turbo and GPT-4

created 2 years ago
768 stars

Top 46.3% on sourcepulse

GitHubView on GitHub
Project Summary

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

  • Installation: Download binaries from releases, or use package managers: brew install j178/tap/chatgpt (macOS/Linux), scoop install j178/chatgpt (Windows), or go install github.com/j178/chatgpt/cmd/chatgpt@latest.
  • Prerequisites: OpenAI API Key.
  • Configuration: Set OPENAI_API_KEY environment variable or configure ~/.config/chatgpt/config.json.
  • Docs: https://github.com/j178/chatgpt

Highlighted Details

  • Supports both GPT-3.5-turbo and GPT-4 models.
  • Extensive, customizable key bindings for navigation and editing.
  • Pipeline-friendly design for integrating AI into shell workflows.
  • Supports Azure OpenAI service with specific configuration options.

Maintenance & Community

The project is actively maintained by j178. Further provider support (Claude, Gemini, Ollama) is under development.

Licensing & Compatibility

  • License: MIT.
  • Compatibility: Permissive MIT license allows for commercial use and integration into closed-source projects.

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.

Health Check
Last commit

3 weeks ago

Responsiveness

1 day

Pull Requests (30d)
5
Issues (30d)
0
Star History
8 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.