Refract Guides · Local alternative to hosted frontier models

LM Studio Local Server Targets in Refract

LM Studio exposes a local OpenAI-compatible server, which makes it a fast desktop target for offline Refract scans and pack development.

Target string

LM Studio speaks the OpenAI protocol: put the model identifier LM Studio shows after openai_compat: and the server URL in --base-url.

openai_compat:openai/gpt-oss-120b --base-url http://localhost:1234/v1

Start the server

lms get openai/gpt-oss-120b
lms load openai/gpt-oss-120b
lms server start --port 1234   # the local server needs no API key

Run a scan

refract scan --target openai_compat:openai/gpt-oss-120b --base-url http://localhost:1234/v1 --pack ./packs/jailbreak-encoding.jsonl --db ./runs.sqlite --sarif refract-lmstudio.sarif

Keep secrets out of evidence

LM Studio is local and keyless in the default configuration. Refract records only prompts, responses, and verdicts, never your model files.

Verify and gate

refract gate --scan scan-a1b2c3d4 --db ./runs.sqlite --max-fn 0 --max-fp-rate 0.05 --min-mcc 0.70