Based on LangGraph, this tool is backend agnostic and allows you to control OS functionality using natural language.
Current functionality includes:
- Human in the Loop
- Ability to check system information
- Run Python scripts
- Execute Bash commands
Currently, only Linux is supported.
-
Clone the repository:
git clone https://github.com/micvitc/langforge-os.git
-
Install dependencies:
This project can use any OpenAI-compatible endpoint. We recommend using Ollama.
- Install Ollama and download a model with tool-calling functionality.
- Install at least Python 3.12.
Using Poetry:
poetry install
Or using
requirements.txt
:pip install -r requirements.txt
-
Start the application:
python main.py
It will ask you for a model name, base URL, and API key initially. In case you are using Ollama, this should be the config:
model_name: <model_name> base_url: http://localhost:11434/v1 api_key: ollama
You can check the available models using:
ollama serve
The model name and other details can be changed later in
config.yaml
.