How ixi-enki/lmstudio-docs works
1. Repository purpose
- This is a documentation-only repository for LM Studio. Its output is served at lmstudio.ai/docs.
- There is no application runtime here; the repo’s main “product” is a structured content tree plus metadata used by the docs site generator.
2. Primary architectural boundary: content vs. presentation
- The repo stores Markdown/MDX articles and section metadata, while the rendering system is external to this tree.
- The docs platform reads the filesystem structure to build navigation, section pages, and article pages.
3. How the docs site is organized
- Top-level numbered folders define major doc areas and their order: 0_app, 1_developer, 1_python, 2_typescript, 3_cli, 4_integrations, 5_lmlink.
- Each section has index.md/index.mdx landing pages and meta.json files for section metadata.
- 0_app/0_root is a special root-level landing/content area for the public docs home.
4. Content routing and navigation rules
- The README defines the repo conventions: folders under the docs tree become sections, files become articles, nested folders become subsections.
- index.md is treated as the landing page for a section path.
- Underscore-prefixed files/folders are ignored, which is used for partials or hidden content.
- Article ordering is controlled through frontmatter index values; section ordering is controlled by folder naming prefixes.
5. End-user product documentation area
- 0_app covers the LM Studio application from a user perspective.
- It is subdivided into onboarding/basics, MCP, model YAML, presets, advanced topics, and UI customization.
- This area likely mirrors the in-app workflows: getting started, model download/load, chat, RAG, settings, and interface preferences.
6. Developer-facing API documentation area
- 1_developer documents the local server and exposed APIs.
- Key subsystems here are the core server, REST API, OpenAI-compatible API, and Anthropic-compatible API.
- This suggests the main runtime boundary of the product is a local LM Studio server that can be accessed via multiple API surfaces.
7. SDK/client integration documentation
- 1_python and 2_typescript are parallel SDK-style docs, each covering setup, LLM prediction, agents, embeddings, tokenization, model management, and API reference.
- The TypeScript docs additionally include a plugin system: tools providers, prompt preprocessors, generators, custom configuration, and plugin publishing.
- These folders imply the documentation is split by client language, but both target the same underlying LM Studio service model.
8. CLI subsystem documentation
- 3_cli documents command-line workflows for local models, server lifecycle, daemon management, device linking, runtime settings, and publishing/development.
- This is a distinct operational boundary from the HTTP APIs: it covers local control, background services, and model lifecycle operations.
9. Integration ecosystem
- 4_integrations documents external tool integrations such as MCP remote clients and named third-party tools/workflows like Claude Code, Codex, Hermes, OpenClaw, and LM Link.
- This area shows LM Studio as a local model provider inside larger agent/tool ecosystems, not just as a standalone app.
10. Device linking subsystem
- 5_lmlink is dedicated to LM Link, with device onboarding and preferred-device management.
- This appears to be a synchronization or multi-device coordination layer separate from the core model-serving surface.
11. Shared configuration and operational guidance
- _configuration contains centralized docs for loading models, inference behavior, and LM runtimes.
- This is likely the canonical place for lower-level behavior that cuts across app, CLI, and API docs.
12. Reusable assets and examples
- _assets holds supporting files such as the NVIDIA Spark playbook with shell, JS, and Python example runners.
- This suggests the docs include executable or semi-executable examples, not just prose.
13. Authoring conventions and content model
- Frontmatter is used for titles, descriptions, section ordering, and sidebar labels.
- The README documents custom markdown components like language-tab code snippets, horizontal stack layouts, and parameter tables, which means the rendering pipeline supports richer documentation patterns than plain Markdown.
14. Operational/maintenance layer
- .github/workflows/cla.yml indicates automated contribution gating, but it does not affect the docs architecture itself.
- CONTRIBUTING.md and the template file reinforce that this repo is maintained as a structured docs source with editorial conventions rather than a codebase with build logic.
Main entry points: 0_root/index.mdx App home · 1_developer/index.mdx Developer home · 3_cli/index.mdx CLI home · README.md README
Components 34
Source & rules
Repository conventions and maintenance layer
- README · Explains folder-to-section routing, ordering, and markdown conventions
README.md - Contributing · Contribution and maintenance guidance
CONTRIBUTING.md - Root meta · Repository-level metadata for the docs build
meta.json
App docs
End-user documentation for LM Studio
- App home · Public docs home and landing content for the LM Studio app
0_app/0_root/index.mdx - Basics · Getting started, chat, downloads, RAG, and troubleshooting
0_app/1_basics/index.mdx - MCP · Deep links and MCP-related user docs
0_app/2_mcp/index.mdx - Model YAML · Model packaging and publish docs
0_app/3_modelyaml/index.md - Presets · Import, publish, pull, and push preset workflows
0_app/3_presets/index.md - Advanced · Context, branching, errors, vision, prompt templates, and decoding
0_app/5_advanced/per-model.mdx - UI · Language, mode, and theme customization
0_app/6_user-interface/languages.mdx
Developer docs
Local server and API documentation
- Developer home · Entry point for developer-facing documentation
1_developer/index.mdx - Core server · Server lifecycle, auth, headless mode, MCP, LM Link, and eviction behavior
1_developer/0_core/0_server/index.md - REST API · Endpoints, streaming, chat, load, download, and stateful chat operations
1_developer/2_rest/index.mdx - OpenAI API · OpenAI-compatible chat, responses, embeddings, models, and tools
1_developer/3_openai-compat/index.mdx - Anthropic API · Anthropic-compatible messages interface
1_developer/4_anthropic-compat/index.mdx
SDKs
Language-specific client documentation
- Python home · Python SDK documentation entry point
1_python/index.md - Predict · LLM prediction, chat, completion, images, parameters, and structured output
1_python/1_llm-prediction/_index.md - Agent · Agent actions and tools
1_python/2_agent/_index.md - Models · Download, list, load, and inspect model info
1_python/5_manage-models/loading.mdx - TS home · TypeScript SDK documentation entry point
2_typescript/index.md - Predict · LLM prediction, chat, completion, images, parameters, and structured response
2_typescript/2_llm-prediction/_index.md - Plugins · Tools providers, prompt preprocessors, generators, config, and publishing
2_typescript/3_plugins/index.md - Models · Download, list, load, and model info workflows
2_typescript/6_manage-models/loading.md
Operations
CLI and device-linking workflows
- CLI home · Command-line documentation entry point
3_cli/index.mdx - Local models · Model listing, loading, chat, import, and process status
3_cli/0_local-models/ls.md - Serve · Server start, status, stop, and logs
3_cli/1_serve/server-start.mdx - Daemon · Daemon up, down, status, and update
3_cli/2_daemon/daemon-up.md - Link · Enable, disable, status, and preferred-device controls
3_cli/3_link/link-enable.mdx - Publish · Develop, clone, login, push, and publish flows
3_cli/5_develop-and-publish/dev.md - LM Link · Device linking documentation entry point
5_lmlink/index.md - Link basics · Add device, preferred device, and FAQ docs
5_lmlink/1_basics/index.md
Integrations
External tool and agent ecosystem docs
- Integrations · External tool and agent integration entry point
4_integrations/index.md - MCP remote · Remote MCP client integration docs and examples
4_integrations/1_mcp-remote/index.md - Tooling · Claude Code, Codex, Hermes, OpenClaw, and LM Link docs
4_integrations/claude-code.mdx
Connections 37
- README → App home: defines structure · Repository conventions map numbered folders to docs sections
- README → Developer home: defines structure · The README explains how developer docs are routed and ordered
- README → Python home: defines structure · The README defines how Python docs are organized
- README → TS home: defines structure · The README defines how TypeScript docs are organized
- README → CLI home: defines structure · The README defines how CLI docs are organized
- App home → Basics: routes to · App landing content branches into core user workflows
- App home → MCP: routes to · App docs include MCP-related guidance
- App home → Model YAML: routes to · App docs cover model YAML publishing
- App home → Presets: routes to · App docs cover preset management
- App home → Advanced: routes to · Advanced app behavior is documented as a separate branch
- App home → UI: routes to · UI customization is a distinct app subsection
- Developer home → Core server: organizes · Developer docs center on the local server runtime
- Developer home → REST API: organizes · REST API documentation hangs off the developer section
- Developer home → OpenAI API: organizes · OpenAI compatibility is a major API surface
- Developer home → Anthropic API: organizes · Anthropic compatibility is documented alongside other APIs
- Core server → REST API: exposes · The core server underpins the REST surface
- Core server → OpenAI API: exposes · The same server serves an OpenAI-compatible surface
- Core server → Anthropic API: exposes · The server also supports Anthropic-compatible access
- Python home → Predict: organizes · Python docs start with prediction workflows
- Python home → Agent: organizes · Python docs include agent abstractions
- Python home → Models: organizes · Python docs include model management
- TS home → Predict: organizes · TypeScript docs start with prediction workflows
- TS home → Plugins: organizes · TypeScript docs add a plugin system
- TS home → Models: organizes · TypeScript docs include model management
- Plugins → Core server: extends · Plugins augment the same local model-serving platform
- CLI home → Local models: organizes · CLI docs cover local model lifecycle
- CLI home → Serve: organizes · CLI docs cover server control
- CLI home → Daemon: organizes · CLI docs cover background daemon control
- CLI home → Link: organizes · CLI docs cover device linking
- CLI home → Publish: organizes · CLI docs also cover development and publishing workflows
- Link → LM Link: overlaps · CLI link commands correspond to LM Link device coordination
- Integrations → MCP remote: organizes · Integration docs include remote MCP clients
- Integrations → Tooling: organizes · Integration docs cover external agent tools and workflows
- Tooling → OpenAI API: uses · Third-party workflows typically consume the OpenAI-compatible surface
- LM Link → Link basics: organizes · LM Link docs focus on onboarding and preferred-device setup
- Developer home → LM Link: references · Developer docs include LM Link as part of the server ecosystem
- Root meta → README: supports · Repository metadata and conventions work together to drive the docs build