Terminaider

2024 Jul 20 See all posts


Terminaider

Github Github

Terminaider

AI within your terminal 🤖

Description

Quickly prompt any supported AI from within your terminal, without being bound to any specific provider.

terminaider demo

Features

Installation

  1. Ensure you have Go installed on your system.

  2. Clone the repository and install:

git clone https://github.com/Danielratmiroff/terminaider.git
cd terminaider
go install
  1. Set up your API key:

    Option 1: Set an environment variable:

    export GROQ_API_KEY="your_api_key_here"

    Option 2: Create a config.yaml file in the repo folder:

    GroqAPIKey: "your_api_key_here"

Usage

Basic Usage

terminaider

Prompt on Startup

terminaider How big is the Earth?

Quick Command (copies executable command to clipboard)

terminaider -r How can I commit my changes to git?

Recommendation: Create an Alias

Add this line to your shell configuration file (e.g., ~/.zshrc or ~/.bashrc):

alias ai='terminaider'

Then reload your shell or run source ~/.zshrc (or respective config file).

Now you can use ai as a shortcut:

ai is the earth flat?

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License