Documentation
lms server start
Reference
The lms server start
command launches the LM Studio local server, allowing you to interact with loaded models via HTTP API calls.
--port (optional) : number
Port to run the server on. If not provided, uses the last used port
--cors (optional) : flag
Enable CORS support for web application development. When not set, CORS is disabled
Start the server with default settings:
lms server start
Run the server on a specific port:
lms server start --port 3000
For usage with web applications or some VS Code extensions, you may need to enable CORS support:
lms server start --cors
Note that enabling CORS may expose your server to security risks, so use it only when necessary.
See lms server status
for more information on checking the status of the server.