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?

相关推荐
IT_陈寒9 分钟前
React的useEffect把我坑惨了,这些闭包陷阱真要命
前端·人工智能·后端
财经资讯数据_灵砚智能9 分钟前
基于全球经济类多源新闻的NLP情感分析与数据可视化(夜间-次晨)2026年5月1日
大数据·人工智能·python·信息可视化·自然语言处理
Flandern111114 分钟前
# 学习AI Agent中了解到的几个概念
人工智能·学习
叶小鸡15 分钟前
Java 篇-项目实战-天机学堂(从0到1)-day10
windows·microsoft
2601_9583205715 分钟前
【零基础新手入门 】OpenClaw 2.6.6 对接阿里云百炼配置教程(包含安装包)
人工智能·阿里云·云计算·open claw·小龙虾·open claw安装·open claw一键安装
java1234_小锋16 分钟前
Spring AI 2.0 开发Java Agent智能体 - Spring AI项目调用本地Ollama模型
java·人工智能·spring·spring ai2.0
深海鱼在掘金17 分钟前
深入浅出 LangChain —— 第六章:记忆与状态管理
人工智能·langchain·agent
qq_2837200520 分钟前
Python+LangChain 调用大模型全方案深度实战:原生调用、统一接口、流式输出、异步、自定义模型全解析
人工智能·langchain·agent·rag
葫三生20 分钟前
三生原理文章被AtomGit‌开源社区收录的意义探析?
人工智能·深度学习·神经网络·算法·搜索引擎·开源·transformer
冬奇Lab24 分钟前
一天一个开源项目(第90篇):cmux - 为 AI Agent 时代设计的原生终端复用器
人工智能·开源·资讯