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?

相关推荐
AI日报派送佬3 小时前
2026年10月14日AI行业日报|Gemini 4 Argon正式发布;小模型跨设备传播风险引发安全热议
网络·人工智能·openai·谷歌·deepseek·anthropic·ai日报
镜象科技4 小时前
职业院校AI心理健康解决方案怎么选?三个特殊场景与三类路线
人工智能
Leo.yuan4 小时前
企业Data Agent架构选型:帆软Dora基于NL2BI的现有BI体系复用方案
大数据·人工智能
朱涛的自习室5 小时前
70 美金的 Beyond Compare,我让 Gemini 4 和 DeepSeek 造个开源免费版(Day 2)
android·前端·人工智能
米小虾5 小时前
上下文:Agent 的眼睛里到底装着什么
人工智能·agent
米小虾5 小时前
Agent = 大脑 + 眼睛 + 手脚:一篇看懂现代 AI Agent 的骨架
人工智能
小小测试开发5 小时前
安全评测得分 0.9556 掉到 0.3257,只改了 top_k 和 prompt_style 之外的题面比例
人工智能·安全·prompt
遇印记5 小时前
传输层,网络层
运维·服务器·网络·windows·学习
slacker-kian5 小时前
[实践]-用LLM对文本结构化:把多段文本描述变成规范的 JSON 知识库
人工智能·llm·prompt·结构化·pydantic·one-shot 提示