lms_server_status: Check the status of the LM Studio server

View source: R/serve.R

lms_server_statusR Documentation

Check the status of the LM Studio server

Description

Displays the current status of the LM Studio local server via the CLI, including whether it is running and its configuration.

Usage

lms_server_status(
  json = FALSE,
  verbose = FALSE,
  quiet = FALSE,
  log_level = NULL
)

Arguments

json

TRUE or FALSE. Output the status in machine-readable JSON format. Any other value, NULL and NA included, aborts before the lms CLI runs.

verbose

TRUE or FALSE. Enable detailed logging output. Any other value, NULL and NA included, aborts before the lms CLI runs.

quiet

TRUE or FALSE. TRUE passes --quiet to the lms CLI, which suppresses all logging output. The rlmstudio.quiet option does not change it. Any other value, NULL and NA included, aborts before the lms CLI runs.

log_level

Character. The level of logging to use (e.g., "info", "debug").

Details

You can only use one logging control flag at a time (verbose, quiet, or log_level).

Value

By default, returns a character vector containing the raw CLI output. If json = TRUE and the jsonlite package is available, it returns a parsed list or data.frame of the status configuration.

See Also

LM Studio CLI Server Status Documentation

Examples

## Not run: 
lms_server_start(port = 1234)

# Get basic status string
lms_server_status()

# Get status as a parsed JSON data frame
lms_server_status(json = TRUE)

## End(Not run)

rlmstudio documentation built on Dec. 1, 2026, 9:07 a.m.