Skip to main content

An AI-powered natural-language Linux assistant

Project description

linux‑Assistant

An AI-powered assistant that lets you interact with your Linux system using natural language. Ask it to list files, install packages, inspect processes, or perform any shell task—behind the scenes it translates your request into safe bash commands and runs them for you.


Features

  • Natural‑language interface: Describe what you want to do—no need to remember exact commands.
  • Interactive shell execution: The assistant decides when to run commands, executes them in a temporary script, and returns the output.
  • Continuous conversation: You can follow up on results, ask for clarifications, or chain multiple operations in one session.
  • Customizable: Swap in any llama.cpp model and adjust prompts to suit your workflow.

Prerequisites

  • Linux
  • Python 3.12+
  • (Optional but recommended) A dedicated Python virtual environment

Configuration

Open models/config.py and adjust:

  • GENERATION_MODEL – the GGUF model you wish to use.
  • REPO_ID – The hf repository you want to model beeing download from.
  • SYSTEM_PROMPT – how the assistant should frame its replies and decide when to run shell commands.

Installation

  • Install via pip
$ pip install linux-assistant
  • Build from source
$ git clone https://github.com/alifthi/linux-Assistant.git
$ cd linux-Assistant
$ pip install -e .

Usage

Run the assistant and start chatting:

$ linux-assistant
  • If inference enginee is not installed, you need to run linux-assistant setup to install inference enginee.

  • Ask anything you would normally do in the terminal.

  • Continue the conversation naturally or type exit to quit.


Run the assistant using Docker

docker run --name <Container's name> \
   -v linux_assistant_volume:/app/data \
   -v "$(pwd)":/app/workspace alifthi/linux-assistant 

Contributing

Contributions and feedback are welcome! Feel free to:

  • Open issues for bugs or feature requests
  • Submit pull requests to improve prompts, handling, or documentation
  • Suggest new use cases or integrations

License

Distributed under the MIT License. See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linux_assistant-0.1.1.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linux_assistant-0.1.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file linux_assistant-0.1.1.tar.gz.

File metadata

  • Download URL: linux_assistant-0.1.1.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for linux_assistant-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9c63eda2b594ed0c5a0104fd05d28ff50c63ff07b9ac4437c0c6f57d7fdb3ae3
MD5 4d86987a1a51265d8eeb2b501d9c5c61
BLAKE2b-256 7984e966efc62e7a93d22ab8fab69025c9b2c5ca304f01dbd03ce099d2d9f575

See more details on using hashes here.

File details

Details for the file linux_assistant-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for linux_assistant-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 679b52f2c4671b2e1598f055ed7a2cad7a2fa85f3c15b6f9f3ce3c54d99f6ef7
MD5 111546151c18afb962f4c11371f28056
BLAKE2b-256 6b1563f55328c32b55faad3da39605182a6a5f6d233f542c6dfc656d41020603

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page