Skip to contents

Launches the LM Studio local server via the CLI, allowing you to interact with loaded models via HTTP API calls.

Usage

lms_server_start(port = NULL, cors = FALSE)

Arguments

port

Integer. Port to run the server on. If not provided, LM Studio uses the last used port.

cors

Logical. Enable CORS support for web application development. Defaults to FALSE.

Value

Invisibly returns the system exit code (0 for success).

Examples

if (FALSE) { # \dontrun{
# Start server on the default port
lms_server_start()

# Start server on a custom port with CORS enabled
lms_server_start(port = 8080, cors = TRUE)
} # }