Skip to main content

AI assistant for your terminal

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

terminaider-0.1.3.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

terminaider-0.1.3-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file terminaider-0.1.3.tar.gz.

File metadata

  • Download URL: terminaider-0.1.3.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for terminaider-0.1.3.tar.gz
Algorithm Hash digest
SHA256 bdd05578a4e02ae9d77335ff9f946ba293024f406eab727b8f5a5fdd4ad67306
MD5 204913195c8b4bf3c253fa43cb7d040b
BLAKE2b-256 52d54109fa67f2c114e8c61138653368a7d855c7ddd40a85f76e999f9abcec8f

See more details on using hashes here.

File details

Details for the file terminaider-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: terminaider-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for terminaider-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e67aacff28ca7e421eb1784b3c10b6774e0305ed7c92640e08c2ea13faa5ac64
MD5 05e014100db0402d9a1de567502a627a
BLAKE2b-256 61e11e2ac768de908401d5df1e14bead0c43241cae765b04cc55dfaedd971035

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page