Gpt Cli banner
kharvd kharvd

Gpt Cli

AI community

Description

Command-line interface for ChatGPT, Claude and Bard

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

gpt-cli

Command-line interface for chat LLMs.

Try now

export ANTHROPIC_API_KEY=xcxc
uvx --from gpt-command-line gpt

Supported providers

  • OpenAI
  • Anthropic
  • Google Gemini
  • Cohere
  • Other APIs compatible with OpenAI (e.g. Together, OpenRouter, local models with LM Studio)

![screenshot](https://github.com/kharvd/gpt-cli/assets/466920/ecbcccc4-7cfa-4c04-83c3-a822b6596f01)

Features

  • Command-Line Interface: Interact with ChatGPT or Claude directly from your terminal.
  • Model Customization: Override the default model, temperature, and top_p values for each assistant, giving you fine-grained control over the AI's behavior.
  • Extended Thinking Mode: Enable Claude 3.7's extended thinking capability to see its reasoning process for complex problems.
  • Usage tracking: Track your API usage with token count and price information.
  • Keyboard Shortcuts: Use Ctrl-C, Ctrl-D, and Ctrl-R shortcuts for easier conversation management and input control.
  • Multi-Line Input: Enter multi-line mode for more complex queries or conversations.
  • Markdown Support: Enable or disable markdown formatting for chat sessions to tailor the output to your preferences.
  • Predefined Messages: Set up predefined messages for your custom assistants to establish context or role-play scenarios.
  • Multiple Assistants: Easily switch between different assistants, including general, dev, and custom assistants defined in the config file.
  • Flexible Configuration: Define your assistants, model parameters, and API key in a YAML configuration file, allowing for easy customization and management.

Installation

This install assumes a Linux/OSX machine with Python and pip available.

pip install gpt-command-line

Install latest version from source:

pip install git+https://github.com/kharvd/gpt-cli.git

Or install by cloning the repository manually:

git clone https://github.com/kharvd/gpt-cli.git
cd gpt-cli
pip inst