Skip to content

Lgpt (Linux GPT) — A command-line interface that leverages LLMs like Gemini, DeepSeek, and others to simplify and enhance Linux terminal usage. Execute commands, get explanations, and automate workflows using natural language.

License

Notifications You must be signed in to change notification settings

AmianDevSec/Lgpt

Repository files navigation

Linux GPT Logo

Buy Me a Coffee at Ko-fi
If you find Linux GPT useful, consider supporting development with a coffee ☕️

Linux GPT (lgpt)

GitHub Release

Lgpt (Linux GPT) is a lightweight command-line tool that simplifies your Linux terminal experience by integrating powerful large language models (LLMs) — all without needing API keys.

Supported Providers (No API Keys Required)

Lgpt currently supports these providers to process your queries:


Usage

Run lgpt followed by your query or options:

Usage: lgpt.py [-h] [-t TOKEN] [--model {gpt-4,gpt-4o,deepseek,mistral,llama,gpt-o3,grok,cohere,codestral}] [-s SET_MODEL] [-u UPDATE] [-v] [prompt ...]

Lgpt: A command-line utility for managing and interacting with large language models (LLMs) directly from the Linux terminal.

Positional arguments:

  prompt                The prompt to send to the selected model.

Optional arguments:

  -h, --help            Show this help message and exit.

  -t, --token           Set your API key token.

  --model               Specify the model to use for query processing.
                        Available models: gpt-4, gpt-4o, deepseek, mistral, llama, gpt-o3, grok, cohere, codestral.
                        Default: deepseek.

  -s, --set_model       Set your default model.

  -u, --update          Update Lgpt to the latest version.

  -v, --version         Display the current version of Lgpt.

Example:


Setting Your API Key

  1. Go to GitHub Personal Access Tokens.
  2. Watch this short Video guide to learn how to create a token for lgpt.

Once you have your token, set it by running:

lgpt --token <your_api_key_here>

Using Lgpt with Your API Key

Once the API key is set, you can use Lgpt as follows:

lgpt "How to update my system packages?"

Changing the Default Model

You can change the default model with:

lgpt --set_model <your_favorite_model>

Tip: Run lgpt -h to view the list of available models.


Installation

Run the following command to install:

pip install linux-gpt

After installation, verify by running:

lgpt --version

Uninstallation

pip uninstall linux-gpt

Contribution

Feel free to open issues or submit pull requests on the GitHub repository. Contributions and feedback are welcome!


License

This project is licensed under the GPLv3 License. See the LICENSE file for details.

About

Lgpt (Linux GPT) — A command-line interface that leverages LLMs like Gemini, DeepSeek, and others to simplify and enhance Linux terminal usage. Execute commands, get explanations, and automate workflows using natural language.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages