Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on Windows
AIOS: AI Agent Operating System
Saved setup from just now
Will it work on Windows?
winget install Git.Git) or WSL2 (wsl --install).Heads-upIt also needs Redis and 6 settings in .env (6 secret).
Then run powershell -ExecutionPolicy Bypass -File .\setup.ps1. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: winget install Git.Git
git clone https://github.com/agiresearch/AIOS.git cd AIOS
Python 3.10
winget install Python.Python.3.10
Fill in secrets: OPENAI_API_KEY, GEMINI_API_KEY, ANTHROPIC_API_KEY, GROQ_API_KEY, HF_AUTH_TOKENS, NOVITA_API_KEY
Copy-Item .env.example .env
Needs: Redis (no compose file — install locally or run via Docker)
python -m venv .venv .venv\Scripts\Activate.ps1 pip install -r requirements.txt
The steps run shell scripts (.sh). Use Git Bash (winget install Git.Git) or WSL2 (wsl --install).
Before launching AIOS, it is required to set up configurations. AIOS provides two ways of setting up configurations, one is to set up by directly modifying the configuration file, another is to set up interactively.
You need API keys for services like OpenAI, Anthropic, Groq and HuggingFace. The simplest way to configure them is to edit the aios/config/config.yaml.
[!TIP] It is important to mention that, we strongly recommend using the
aios/config/config.yamlfile to set up your API keys. This method is straightforward and helps avoid potential sychronization issues with environment variables.
A simple example to set up your API keys in aios/config/config.yaml is shown below:
api_keys:
openai: "your-openai-key"
gemini: "your-gemini-key"
groq: "your-groq-key"
anthropic: "your-anthropic-key"
huggingface:
auth_token: "your-huggingface-token-for-authorized-models"
cache_dir: "your-cache-dir-for-saving-models"
novita: "your-novita-api-key"
To obtain these API keys:
You can configure which LLM models to use in the same aios/config/config.yaml file. Here's an example configuration:
llms:
models:
# Ollama Models
- name: "qwen2.5:7b"
backend: "ollama"
hostname: "http://localhost:11434" # Make sure to run ollama server
# vLLM Models
- name: "meta-llama/Llama-3.1-8B-Instruct"
backend: "vllm"
hostname: "http://localhost:8091/v1" # Make sure to run vllm server
Using Ollama Models:
ollama serve
ollama pull qwen2.5:7b # example model
[!TIP] Ollama supports both CPU-only and GPU environments. For more details about ollama usage, visit ollama documentation
Using vLLM Models:
vllm serve meta-llama/Llama-3.1-8B-Instruct --port 8091
[!NOTE] vLLM currently only supports Linux and GPU-enabled environments. If you don't have a compatible environment, please choose other backend options. To enable the tool calling feature of vllm, refer to https://docs.vllm.ai/en/latest/features/tool_calling.html
Using HuggingFace Models: You can configure HuggingFace models with specific GPU memory allocation:
- name: "meta-llama/Llama-3.1-8B-Instruct"
backend: "huggingface"
max_gpu_memory: {0: "24GB", 1: "24GB"} # GPU memory allocation
eval_device: "cuda:0" # Device for model evaluation
Alternatively, you can set up aios configurations interactively by using the following command.
aios env list: Show current environment variables, or show available API keys if no variables are setaios env set: Show current environment variables, or show available API keys if no variables are setaios refresh: Refresh AIOS configuration.
Reloads the configuration from aios/config/config.yaml.
Reinitializes all components without restarting the server.
The server must be running.When no environment variables are set, the following API keys will be shown:
DEEPSEEK_API_KEY: Deepseek API key for accessing Deepseek servicesOPENAI_API_KEY: OpenAI API key for accessing OpenAI servicesGEMINI_API_KEY: Google Gemini API key for accessing Google's Gemini servicesGROQ_API_KEY: Groq API key for accessing Groq servicesHF_AUTH_TOKEN: HuggingFace authentication token for accessing modelsHF_HOME: Optional path to store HuggingFace modelsNOVITA_API_KEY: Novita AI API key for accessing Novita AI servicesAfter you setup your keys or environment parameters, then you can follow the instructions below to start.
Run:
bash runtime/launch_kernel.sh
Or if you need to explicity set the Python version by running python3.10, python3.11, python3, etc. run the command below:
python3.x -m uvicorn runtime.launch:app --host 0.0.0.0 --port 8000 # replace the port with your own port
You also need to set up the host and port in the configuration of Cerebrum (AIOS SDK) to make sure it is consistent with the configurations of AIOS.
You can also force the kernel to run in the background with:
python3.x -m uvicorn runtime.la
…
No reports for Windows yet.
GitManual AI Agent reads the 7 key files and writes a step-by-step guide for Windows. Once written, it's saved for everyone.