← Back to Skills Marketplace
ivangdavila

LM Studio

by Iván · GitHub ↗ · v1.0.0 · MIT-0
linuxdarwinwin32 ⚠ suspicious
354
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install lm-studio
Description
Run and integrate LM Studio with local model lifecycle control, OpenAI-compatible APIs, embeddings, and MCP-aware workflows.
README (SKILL.md)

When to Use

User wants to run local models with LM Studio, connect an app to its local server, or debug weak local inference behavior.

Use this for server readiness, model loading, OpenAI-compatible API integration, embeddings, MCP setup, and local-first operating decisions.

Architecture

Memory lives in ~/lm-studio/. If ~/lm-studio/ does not exist, run setup.md. See memory-template.md for structure.

~/lm-studio/
├── memory.md         # Activation, preferred port, known-good defaults
├── server-notes.md   # Reachability checks and server mode notes
├── model-profiles.md # Verified models by workload
└── incidents.md      # Repeated failures and confirmed fixes

Quick Reference

Topic File
Setup behavior and activation boundaries setup.md
Memory schema and status states memory-template.md
Server startup and smoke tests server-workflows.md
Download, load, unload, and swap models model-lifecycle.md
OpenAI-compatible request patterns api-recipes.md
MCP connection patterns and guardrails mcp-playbooks.md
Symptom-based debugging troubleshooting.md

Requirements

  • LM Studio or llmster is already installed on the machine.
  • curl and jq are available for smoke tests and response inspection.
  • lms is optional but preferred for repeatable server and model operations.
  • Keep requests local by default; only add remote MCP servers or network exposure when the user explicitly asks.

Core Rules

1. Prove the server is reachable before changing client code

  • Use server-workflows.md to confirm the actual port, endpoint reachability, and model visibility.
  • "LM Studio is open" is not enough. Require one real request to succeed before touching integration code.

2. Separate downloaded, listed, loaded, and active models

  • Use model-lifecycle.md for discovery, loading, unloading, and verification.
  • Never assume a downloaded filename, API model id, CLI identifier, and active runtime instance are the same thing.

3. Prefer OpenAI-compatible endpoints for app integration

  • Start from api-recipes.md and change only the base URL and model identifier before rewriting an existing client.
  • Verify each workload separately: responses, chat/completions, embeddings, or completions.

4. Match model size and context to machine limits

  • Treat slow first token, OOM, and context overflow as runtime-fit problems first, not prompt problems first.
  • Reduce model size, quantization burden, or context length before escalating complexity.

5. Validate after every runtime change

  • After loading a new model, changing context length, or altering server settings, run one end-to-end smoke test.
  • Record the known-good combination in memory so the agent can reuse it instead of rediscovering it.

6. Treat MCP as a separate risk layer

  • Use mcp-playbooks.md to connect servers, but debug model serving and MCP behavior independently.
  • Never install untrusted MCP servers or silently route local data to remote endpoints.

7. Escalate beyond local when the task exceeds the local setup

  • LM Studio is strong for privacy-sensitive work, offline execution, extraction, and controlled agent loops.
  • For unsupported capabilities or repeated quality failures, say so explicitly and recommend a stronger remote path.

Common Traps

  • Assuming port 1234 without checking reachability -> integrations fail even though the app looks healthy.
  • Treating GET /v1/models as proof a model is ready -> Just-In-Time listings can appear before a usable runtime is confirmed.
  • Reusing cloud model names in local requests -> the client is fine, but the local model identifier is wrong.
  • Forcing JSON, tools, or vision on an unverified local model -> failures get blamed on prompts instead of capability mismatch.
  • Leaving large models loaded while debugging another issue -> RAM or VRAM pressure hides the real cause.
  • Installing random MCP servers -> privacy and system access boundaries disappear quickly.

Security & Privacy

Data that leaves your machine:

  • None by default for local localhost server calls.
  • Optional model downloads or MCP servers follow the user's explicit configuration, not this skill's default path.

Data that stays local:

  • Prompt content sent to the LM Studio server running on the same machine.
  • Notes stored in ~/lm-studio/ if the user wants persistent context.

This skill does NOT:

  • Assume remote access is safe by default.
  • Store secrets in skill memory files.
  • Install MCP servers or open network access without explicit user intent.

Related Skills

Install with clawhub install \x3Cslug> if user confirms:

  • models — Choose models by workload, context budget, and quality tradeoffs.
  • api — Shape request payloads, retries, parsing, and integration debugging.
  • self-host — Operate local infrastructure with practical reliability and security habits.
  • open-router — Escalate from local-first execution to routed cloud models when capability gaps matter.
  • docker — Package helper services or MCP servers consistently on the local machine.

Feedback

  • If useful: clawhub star lm-studio
  • Stay updated: clawhub sync
Usage Guidance
This skill appears to do what it claims (manage and test a local LM Studio runtime), but you should be aware it will read and write files under ~/lm-studio/ and run local commands (curl, optionally lms/llmster). Before installing: 1) Confirm you're comfortable with the skill creating ~/lm-studio/ files (memory.md, server-notes, etc.). 2) Note the registry metadata does not declare the config path even though SKILL.md references it — treat that as a metadata inconsistency. 3) Only enable MCP/remote servers if you explicitly trust the remote endpoint; the skill warns against adding untrusted MCP servers. 4) Because it's instruction-only, there is no bundled code to audit beyond the markdown — if you want tighter safety, run the agent with user-invocation-only or test inside an isolated account/container. 5) Verify the provenance (owner slug/homepage) and ensure any required CLI tools (lms) are from trusted sources. If you want, I can extract the exact file write/read operations this skill will perform so you can review them line-by-line before installing.
Capability Analysis
Type: OpenClaw Skill Name: lm-studio Version: 1.0.0 The LM Studio skill bundle is a well-structured set of instructions and templates designed to help an agent manage local LLM runtimes. It includes proactive security guidance, such as explicitly forbidding the storage of secrets in memory files (memory-template.md) and warning against the installation of untrusted MCP servers (mcp-playbooks.md). The code snippets and shell commands (curl, lms) are standard for interacting with local OpenAI-compatible APIs and the LM Studio CLI, with no evidence of data exfiltration, malicious execution, or obfuscation.
Capability Assessment
Purpose & Capability
The name and description match the instructions: this is an instruction-only skill for operating LM Studio and integrating local OpenAI-compatible endpoints. Required binaries (curl, jq) are appropriate. However, the SKILL.md frontmatter declares a configPaths entry (~/lm-studio/) while the registry metadata reported no required config paths — that mismatch is an inconsistency (likely sloppy metadata) worth flagging because the skill expects to read/write a directory in the user's home.
Instruction Scope
The runtime instructions stay within the stated purpose: reachability checks, model lifecycle (using lms if present), API recipes against http://localhost:1234, and templates for ~/lm-studio/memory.md. The skill explicitly instructs the agent to create and update files under ~/lm-studio/. It does not request secrets or external endpoints by default and repeatedly warns to keep MCP/remote servers off unless the user asks.
Install Mechanism
No install spec and no code files: instruction-only. This is low risk from an install perspective because nothing is downloaded or written by an installer. The agent will run local commands (curl, lms) but the skill doesn't pull external artifacts itself.
Credentials
The skill declares no required environment variables or credentials and the instructions avoid asking for secrets. It does reference optional local tools (lms, llmster) but these are reasonable for the described tasks and do not imply unrelated credential access.
Persistence & Privilege
Although always:false (not force-included) and autonomous invocation is the platform default (not a standalone red flag), the skill instructs creating and maintaining persistent files under ~/lm-studio/. The registry metadata did not declare required config paths even though the SKILL.md does — that discrepancy affects expectations about what will be written to disk. Consider whether you want an agent that can autonomously write persistent notes and known-good configurations in your home directory.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install lm-studio
  3. After installation, invoke the skill by name or use /lm-studio
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release with local server workflows, model lifecycle checks, API recipes, MCP guidance, and troubleshooting for LM Studio.
Metadata
Slug lm-studio
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is LM Studio?

Run and integrate LM Studio with local model lifecycle control, OpenAI-compatible APIs, embeddings, and MCP-aware workflows. It is an AI Agent Skill for Claude Code / OpenClaw, with 354 downloads so far.

How do I install LM Studio?

Run "/install lm-studio" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is LM Studio free?

Yes, LM Studio is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does LM Studio support?

LM Studio is cross-platform and runs anywhere OpenClaw / Claude Code is available (linux, darwin, win32).

Who created LM Studio?

It is built and maintained by Iván (@ivangdavila); the current version is v1.0.0.

💬 Comments