Skip to content

VariableThe/Terminal_helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Terminal Helper

Two simple CLI tools for interacting with LLMs directly from your terminal:

  • ai – Uses Hugging Face's router (Qwen model)
  • fa – Uses OpenRouter (Nemotron model)

Setup

  1. Clone the repository:

    git clone https://github.com/yourusername/terminal_helper.git
    cd terminal_helper
  2. Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts�ctivate
  3. Install dependencies:

    pip install requests rich
  4. Set your API keys as environment variables:

    export HUGGINGFACE_API_TOKEN="your_huggingface_token"
    export OPENROUTER_API_KEY="your_openrouter_key"

    (Add these to your shell profile for persistence.)

Usage

ai "Explain quantum computing in simple terms"
fa "Write a Python function to calculate Fibonacci numbers"

Notes

  • Both scripts require internet access to call the respective APIs.
  • API keys are read from environment variables—never hardcode them.
  • The rich library is used for pretty markdown output in fa; install it if missing.

License

MIT

About

Scripts to add a quick AI access to the terminal using hugging face or openrouter API keys

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages