Refract Guides · Self-hosted alternative to hosted frontier models

vLLM OpenAI-Compatible Server Targets

A vLLM server exposes the OpenAI protocol, so Refract can benchmark a self-hosted model with concurrency and budget controls while keeping prompts local.

Target string

vLLM speaks the OpenAI protocol: put the served model name after openai_compat: and the server URL in --base-url.

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

Start the server

vllm serve openai/gpt-oss-120b --served-model-name gpt-oss-120b

Run a scan

refract scan --target openai_compat:gpt-oss-120b --base-url http://localhost:8000/v1 --battery baseline --concurrency 8 --db ./runs.sqlite --sarif refract-vllm.sarif

Keep secrets out of evidence

A local vLLM server needs no API key. If OPENAI_API_KEY is set, Refract sends it as a bearer token and never records the value.

Verify and gate

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

Refract Power Analysis for Sample Size

How to plan Refract sample sizes with refract power before spending API budget, targeting a Wilson margin around the expected leak or false-positive rate.

Related

Silent Breach Detection with Refract

How Refract detects AI silent breaches, canary leaks that a guardrail misses, using synthetic high-entropy canaries, benign controls, and SARIF 2.1.0 CI gating.