Skip to content
/ gllm Public

A CLI tool that uses Google Gemini to generate terminal commands from natural language descriptions.

License

Notifications You must be signed in to change notification settings

hoishing/gllm

Repository files navigation

GLLM

ruff-badge pypi-badge MIT uv-badge

Generate Terminal Commands from Natural Language with Gemini

Installation

  • global install using uv
uv tool install gllm-cli

Configuration

GLLM requires a Google Google API key. You can set it up in two ways:

  1. provided by --key option

    gllm --key=YOUR_GEMINI_API_KEY your prompt
  2. Set it as an environment variable:

    export GEMINI_API_KEY=your-api-key-here

Usage

After installation, you can use the gllm command directly from your terminal:

# Basic usage
gllm list all files in the current directory

# Use a different model, default to `gemini-2.5-flash`
gllm --model gemini-2.5-pro show disk usage

# Customize the system prompt
gllm --system-prompt "Generate PowerShell commands" list files in the current directory

Options

  • --model: Gemini model to use (default: gemini-2.5-flash)
  • --system-prompt: System prompt for the LLM
  • --key: your gemini api key

Questions

About

A CLI tool that uses Google Gemini to generate terminal commands from natural language descriptions.

Topics

Resources

License

Stars

Watchers

Forks

Languages