Python CLI for AI Chat API
console-chat-gpt v6
Your Ultimate CLI Companion for Chatting with AI Models
Enjoy seamless interactions with OpenAI, MistralAI, Anthropic, xAI, Google AI, DeepSeek, Alibaba or Ollama hosted models directly from your command line.
Elevate your chat experience with efficiency and ease.
DISCLAIMER: The intention and implementation of this code are entirely unconnected and unrelated to OpenAI, MistralAI, Anthropic, xAI, Google AI, DeepSeek, Aliababa or any other related parties. There is no affiliation or relationship with OpenAI, MistralAI, Anthropic, xAI, Google, DeepSeek, Alibaba or their subsidiaries in any form.
claude_desktop_config.json
to the root directory and rename to mcp_config.json
to start using with any model! :star:settings
menuconfig.toml
file for complete control over
how the app works. Also supported in-app via the settings
command.Overall, this app focuses on providing a user-friendly and customizable experience with features that enhance personalization, control, and convenience.
The script works fine on Linux and MacOS terminals. For Windows it's recommended to use WSL.
Clone the repository:
git clone https://github.com/amidabuddha/console-chat-gpt.git
Go inside the folder:
cd console-chat-gpt
Install the necessary dependencies:
python3 -m pip install -r requirements.txt
Get your API key from OpenAI, MistralAI, Anthropic, xAI, Google AI Studio, DeeepSeek, Alibaba depending on your selected LLM.
The config.toml.sample
will be automatically copied into config.toml
upon first run, with a prompt to enter your API key/s. Feel free to change any of the other defaults that are not available in the settings
in-app menu as per your needs.
Run the executable:
python3 main.py
Pro-tip: Create an alias for the executable to run from anywhere.
Use the help
command within the chat to check the available options.
Enjoy
Prompt example:
Markdown visualization example:
Settings and help:
You can find more examples on our Examples page.
Contributions are welcome! If you find any bugs, have feature requests, or want to contribute improvements, please open an issue or submit a pull request.