Install OpenLM AI module management on Windows

1️⃣ Install Python

  • OpenLM is Python-based. Make sure you have Python 3.9+ installed.

  • Check installation:

    python --version
    pip --version

  • If missing, install from python.org.

  • Optional: Add Python to PATH during installation.


2️⃣ Install OpenLM Module Manager

Open a Windows Command Prompt or PowerShell:

复制代码
pip install openlm

This installs the CLI and API server tools.


3️⃣ Initialize OpenLM Repository

Create the module storage folder:

复制代码
openlm init
  • This will create folders like:

    C:\Users<User>.openlm
    modules
    configs
    logs\

  • All AI modules you register will be stored here.


4️⃣ Register / Add AI Modules

Suppose you have an AI module or script (e.g., weather-agent):

复制代码
openlm add-module --name weather-agent --type agent --path "D:\project\weather-agent" --gpu 0
  • --name → module ID

  • --type → agent / model / tool

  • --path → folder with code or checkpoint

  • --gpu → GPU index if available

You can repeat this for all your AI modules.


5️⃣ List Registered Modules

复制代码
openlm list

Example output:

复制代码
ID      Name            Type       Status
1       weather-agent   agent      ready
2       code-reviewer   model      ready

6️⃣ Start the Module Server

Open a terminal in Windows 11:

复制代码
openlm serve
  • Starts a local REST API server , typically at http://localhost:8000.

  • Each module is exposed via endpoints like /run?module=weather-agent.


7️⃣ Use a Module via Python

Example: call a module to check last 7 days' weather:

复制代码
import requests

resp = requests.post("http://localhost:8000/run", json={
    "module": "weather-agent",
    "input": "Check last 7 days rain in New York"
})

print(resp.json())
  • Works for agents, models, and tools

  • Responses are JSON objects with module output.


8️⃣ Update or Remove Modules

复制代码
openlm update-module --name weather-agent --path "D:\project\weather-agent-new"
openlm remove-module --name old-module
  • Keeps your modules versioned and organized.

9️⃣ Notes for Windows Users

  • GPU usage: Make sure CUDA drivers are installed and PyTorch detects the GPU.

  • Firewall: Allow Python/Server through firewall if you want remote access.

  • Paths : Use double quotes "D:\folder\path" in CMD / PowerShell.

  • PowerShell vs CMD: Both work; PowerShell allows better scripting.


If you want, I can also make a diagram showing OpenLM on Windows + OpenClaw + GPU + modules, so you can see visually how everything interacts.

Do you want me to do that?

相关推荐
Agent手记7 分钟前
成本数据多系统自动采集与分析实操指南:基于2026大模型Agent的超自动化实践
运维·人工智能·microsoft·ai·自动化
陈天伟教授12 分钟前
图解人工智能(34)深度学习面临的挑战
人工智能·深度学习·神经网络·cnn
拉卡拉开放平台14 分钟前
支付系统在文旅场景的进阶之路:聚合收单、分账与自动化对账
大数据·人工智能·自动化
jovi_AI电报30 分钟前
ChatGPT 对话太多,之前聊的好东西找不到了
人工智能·chatgpt
老鱼说AI30 分钟前
统计学习方法第一章讲解:统计与监督学习概率
人工智能·学习·学习方法
山川绿水33 分钟前
Bugku——原神祈愿
人工智能·网络安全·claude
gjhave35 分钟前
jetson上trtexec模型转换
人工智能·机器学习
互联网推荐官36 分钟前
2026上海GEO优化服务商综合实力深度评测
大数据·人工智能·技术分享·geo·上海
Dfreedom.42 分钟前
算子融合:从硬件本质到性能飞跃的深度学习优化艺术
人工智能·深度学习·gpu·gpu加速·模型加速·算子融合·模型计算
QYR_111 小时前
4.3% 年复合增速:2026全球救生衣灯市场格局与海事合规发展报告
大数据·人工智能