AI assistant for your terminal
Project description
Your AI Assistant for the Terminal 🚀
Terminaider is a CLI that brings AI-powered assistance directly to your terminal.
Interact with an AI chat interface to get instant help, code analysis, and more — all without leaving your command line.
✨ Features
- AI Chat Interface: Engage in conversations with an AI assistant directly from your terminal.
- Code Analysis: Receive code summaries and analyses to understand and improve your code.
- Customizable Interfaces: Choose between different AI interfaces like Groq or OpenAI.
- Session Management: Maintains chat history per session for a seamless experience.
- Clipboard Integration: Copy code summaries directly to your clipboard.
📦 Installation
Install Terminaider via pip:
pip install terminaider
# Recommended:
pipx install terminaider
🚀 Getting Started
Start using Terminaider by simply typing:
ai
Or initiate a chat with an initial prompt:
ai "How do I calculate Earth's roundness"
⚙️ Configuration
Set your API tokens as environment variables:
# If you want to use Groq's API
export GROQ_API_KEY='your_groq_api_key'
# If you want to use OpenAI's API
export OPENAI_API_KEY='your_openai_api_key'
📖 Usage
🗨️ Chat with the AI Assistant
Start an interactive session:
ai
Provide an initial prompt:
ai "explain the why Python is great"
⚙️ Options
--interface
,-i
: Specify the AI interface to use (e.g.,groq
oropenai
).--version
,-v
: Display the current version of Terminaider.
PD: Interface selection will be stored as default for future use. So you don't need to specify it everytime_
Configuration file is located at
~/.config/terminaider/config.yaml
.
🔍 Code Analysis
The AI will provide code analysis when necessary and automatically copy them to your clipboard for easy access.
🛠 Build Instructions
Build from source:
Clone the Repository
git clone https://github.com/Danielratmiroff/terminaider.git
Navigate to the Project Directory
cd terminaider
Create a Virtual Environment (Optional but Recommended)
python -m venv venv
source venv/bin/activate # On Windows use venv\Scripts\activate
Install Dependencies
pip install build
pip install -r requirements.txt
Build the Package
python -m build
This will generate distribution files in the dist/
directory.
Install the Built Package
pip install dist/terminaider-<VERSION>-py3-none-any.whl
🤝 Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
📄 License
MIT License - LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file terminaider-0.1.1.tar.gz
.
File metadata
- Download URL: terminaider-0.1.1.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0133643a62308790bed99ceb0a544d6bce40dfa537465f8864a4c6c6b7d0686e |
|
MD5 | 80957bb2806ee9b038c937310921337e |
|
BLAKE2b-256 | 04e8334e65e880c5f5387b88b6feda86828b04eb78adcea6f0b5068ce6013a30 |
File details
Details for the file terminaider-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: terminaider-0.1.1-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9339eed54b468a7f22cdde13801ced02633ab98bc2884dfdbfcffbbdd64e0fe9 |
|
MD5 | 65dc19e8ff4f1213c1d28dd5c22c0889 |
|
BLAKE2b-256 | 7ae9910236dade43cf2f389c1e13fd08b7d59ac476f5909c544c98fdfde8954b |