Skip to main content

PyPI version License: MIT

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.

Demo

✨ Features

  • AI Chat Interface: Engage in conversations with an AI assistant directly from your terminal.
  • Code Analysis: Provides code summaries related to your inputs.
  • Customizable Interfaces: Choose between different AI interfaces like Groq or OpenAI.
  • Session Management: Maintains chat history per session.
  • 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 or openai).
  • --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.

Metadata

Release files for terminaider 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for terminaider 0.1.3
File Size Uploaded
terminaider-0.1.3.tar.gz 23.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for terminaider 0.1.3
File Interpreter ABI Platform
terminaider-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 45.0 kB

Release files / terminaider-0.1.3.tar.gz

Download URL terminaider-0.1.3.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bdd05578a4e02ae9d77335ff9f946ba293024f406eab727b8f5a5fdd4ad67306
BLAKE2b-256 checksum
How to use checksums
52d54109fa67f2c114e8c61138653368a7d855c7ddd40a85f76e999f9abcec8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / terminaider-0.1.3-py3-none-any.whl

Download URL terminaider-0.1.3-py3-none-any.whl
Size 21.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e67aacff28ca7e421eb1784b3c10b6774e0305ed7c92640e08c2ea13faa5ac64
BLAKE2b-256 checksum
How to use checksums
61e11e2ac768de908401d5df1e14bead0c43241cae765b04cc55dfaedd971035
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page