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?

相关推荐
Ztopcloud极拓云视角40 分钟前
ChatGPT超级应用改版技术解析:Codex集成架构与多模型路由实战
人工智能·chatgpt·架构
秋97 小时前
从 Python 后端工程师转型 AI Engineer(AI 工程化)的完整补课清单(2026实战版)
开发语言·人工智能·python
啦啦啦_99997 小时前
5. 迁移学习
人工智能·机器学习·迁移学习
A.说学逗唱的Coke7 小时前
【AI·Coding】TDD × SDD × AI Coding:从“测试驱动“到“规范驱动“的智能协作实践
人工智能·驱动开发·tdd
云烟成雨TD7 小时前
Spring AI Alibaba 1.x 系列【78】沙箱(Sandbox)
java·人工智能·spring
tq10868 小时前
基于SLIP的防幻觉的指南
人工智能
甲维斯8 小时前
Kimi版超级玛丽效果“惊人”,配额不足5厘米!
前端·人工智能
console.log('npc')9 小时前
AI前端工程与生成式UI学习路线
前端·人工智能·ui
许彰午9 小时前
30_Java Stream流操作全解
java·windows·python
秋99 小时前
3年经验Python后端转AI Engineer:3个月实战转型计划(2026版)
开发语言·人工智能·python