lmstudio-ai / lms

👾 LM Studio CLI
https://lms.dev
MIT License
1.69k stars 138 forks source link

Interface with remote server #75

Open christianazinn opened 2 months ago

christianazinn commented 2 months ago

It would be nice to be able to use the command line to access the server on a remote machine, as is doable with the TypeScript SDK. Methods that currently use file-based communication (e.g. server start, server stop) will not really be implementable, but everything else should be by simply pointing the base URL of the LMStudioClient to a remote machine.

We should support --port, --hostname options for individual commands, and allow the user to permanently set these options (e.g. for configurations where a client machine expects to always access a particular server). I suggest we add commands e.g. lms server setremote [hostname] [port] and lms server setlocal to revert to using the local server (names subject to change).