Introduction to Terminal GPT (tgpt) 🚀
Terminal GPT, commonly referred to as tgpt, is an innovative command-line interface (CLI) tool designed to integrate AI chatbot functionalities directly within a terminal. Its key advantage is that it functions without the need for API keys, making it accessible and easy to use across multiple platforms.
Key Features and Functionality
Tgpt provides users with the ability to interact with AI chatbots using various providers, enabling wide-ranging application possibilities. Below are the primary providers currently available:
- Blackbox AI: Utilizes the Blackbox model, particularly favored by developers.
- Duckduckgo: Offers several models, including a unique gpt-4o-mini model.
- Groq: Requires a free API Key, supporting sophisticated models like LLaMA2-70b.
- KoboldAI: Leverages the koboldcpp/HF_SPACE_Tiefighter-13B model, known for generating narrative-style answers.
- Ollama: Supports numerous models and operates locally.
- OpenAI: Requires an API key and supports a variety of models, including custom endpoints.
- Phind: Features the Phind model, also popular among developers.
Additionally, tgpt includes an Image Generation Model called BlackBoxAi, allowing it to create images from text.
Commands and Options
Tgpt allows users to tailor their experience through various commands and options, such as:
- Flags for specific functionalities: Users can generate and execute shell commands, produce code, or request responses without animations.
- Interactive Modes: Normal and multiline interactive modes are supported.
- Provider Selection: Default provider is phind, but users can specify others including blackboxai, duckduckgo, and openai among others.
Users can set parameters like model type, API key, and response length. The tool also features logging capabilities and can execute shell commands without confirmation.
Installation and Compatibility
Tgpt is easy to install and compatible with several operating systems:
- GNU/Linux and MacOS: Download and place in the default location
/usr/local/bin
, or usepacman
for Arch Linux. - FreeBSD: Install via ports or package management commands like
pkg install
. - Windows: Supported installations through Scoop and Chocolatey package managers.
Updating and Uninstalling
Tgpt keeps its installation straightforward, simplifying updating and removal processes:
- Updating: Those who installed via the installation script can update using the
tgpt -u
command. - Uninstalling: Removal is as simple as executing a command to delete the tgpt executable, with configuration files usually residing in the user's home directory.
Proxy Support
To facilitate usage in various network environments, tgpt provides proxy support, offering configuration via environment variables or configuration files.
Conclusion
Tgpt represents a robust tool to bridge the gap between terminal operations and AI capabilities, making it an invaluable asset for developers and tech enthusiasts across different platforms. With its wide-ranging provider support and user-friendly configuration, tgpt is set to enhance productivity by bringing AI-assisted functionalities directly to the command line.