If you find Linux GPT useful, consider supporting development with a coffee ☕️
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.
Lgpt currently supports these providers to process your queries:
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:
- Go to GitHub Personal Access Tokens.
- 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>
Once the API key is set, you can use Lgpt as follows:
lgpt "How to update my system packages?"
You can change the default model with:
lgpt --set_model <your_favorite_model>
Tip: Run
lgpt -h
to view the list of available models.
Run the following command to install:
pip install linux-gpt
After installation, verify by running:
lgpt --version
pip uninstall linux-gpt
Feel free to open issues or submit pull requests on the GitHub repository. Contributions and feedback are welcome!
This project is licensed under the GPLv3 License. See the LICENSE file for details.