OpenJev · One-command GPU deployment
OpenJev is Loop AI’s open decision model for browser and desktop agents. You give it a state, a question and a set of options, and it returns a probability for each option. Loop AI’s documented way to serve it is the main openjev/openjev model on vLLM with the helper/shim.py decision API in front, using fixed calibration settings.
This guide follows Loop AI’s documented vLLM + decision-shim setup on one H100, with Badgr handling provisioning, startup checks, and teardown. The shim is the only public port and it requires a bearer key. vLLM stays on 127.0.0.1. We are not affiliated with Loop AI.
Install the Badgr CLI (version 1.2.16 or newer), sign in, and launch OpenJev. You do not need to set up vLLM, download weights, write scripts, or choose a GPU.
npm install -g badgr-cli
badgr login
badgr serve openjev/openjev
Badgr automatically provisions an H100, starts Loop AI’s official decision API, generates an access key and checks a real inference response before reporting ready. In our tests, startup took about 8–12 minutes. GPU usage is billed while the deployment is running; the default spend cap is $3.
OpenJev decision API: vLLM v0.29.0-cu129 + helper/shim.py on H100, behind an endpoint key.
...
✓ Endpoint ready
Endpoint: https://aibadgr.com/s/<deployment-id>
API key: bge_... (run badgr key <deployment-id> to see it again)
Decision request:
curl -s https://aibadgr.com/s/<deployment-id>/v1/systemone \
-H "Authorization: Bearer bge_..." -H "Content-Type: application/json" \
-d '{"model":"openjev","state":"...","questions":{...}}'Copy the printed endpoint URL, key and example request. The example shows how to ask OpenJev to choose between options; you can paste it straight into your terminal. The endpoint is already verified by Badgr.
Want to check later? Run badgr status. To retrieve your key, use badgr key <deployment-id>.
badgr down <deployment-id> badgr status # Nothing running.
Stopping releases the GPU and ends ongoing GPU charges. In one verified test, deployment through teardown cost about $0.35; your actual cost can vary.
openjev/openjev is Loop AI’s decision model for agents. Its /v1/systemone interface takes a state, questions and candidate choices, then returns typed decisions with probabilities. This example uses the main vLLM model, not the separately published GGUF variant.
For reproducibility, this is the verified startup script behind the one-command deployment; you do not need to save or run it yourself. It installs the pinned client versions from the model card, downloads the model, checks shim.py against the file we reviewed, starts vLLM on 127.0.0.1, then starts the shim on port 3000 with the key Badgr hands the container as BADGR_ENDPOINT_API_KEY.
L=/tmp/startup.log
: > $L
stage() { echo "$(date -u +%H:%M:%S) STAGE $1" >> $L; }
cat > /tmp/logsrv.py <<'PY'
import os, http.server
K = os.environ.get("BADGR_ENDPOINT_API_KEY", "")
class H(http.server.BaseHTTPRequestHandler):
def log_message(self, *a): pass
def do_GET(self):
if self.headers.get("Authorization", "") != "Bearer " + K:
self.send_response(401); self.end_headers(); return
if self.path.startswith("/log"):
d = open("/tmp/startup.log", "rb").read()[-30000:]
self.send_response(200); self.send_header("Content-Type", "text/plain"); self.end_headers(); self.wfile.write(d); return
self.send_response(503); self.end_headers()
http.server.ThreadingHTTPServer(("0.0.0.0", 3000), H).serve_forever()
PY
python3 /tmp/logsrv.py &
LOGPID=$!
stage "entrypoint ok: $(python3 --version 2>&1) $(nvidia-smi --query-gpu=name,memory.total --format=csv,noheader 2>&1 | head -1)"
stage "disk: $(df -h /workspace 2>&1 | tail -1)"
pip install -q "openai==3.16.2" "httpx==0.28.1" transformers huggingface_hub >> $L 2>&1; stage "pip exit=$?"
mkdir -p /workspace; cd /workspace
stage "model download start"
( while true; do sleep 30; echo "$(date -u +%H:%M:%S) PROGRESS download_mb=$(du -sm /workspace/openjev 2>/dev/null | cut -f1)" >> $L; done ) &
DLPID=$!
hf download openjev/openjev --local-dir /workspace/openjev >> $L 2>&1; stage "download exit=$?"
kill $DLPID 2>/dev/null
stage "model dir: $(du -sm /workspace/openjev | cut -f1) MB, $(ls /workspace/openjev | wc -l) files"
echo "81a22f1b1b8912a465059207ef9f60b7c6c16b4de6372305d867efbe38a1987a openjev/helper/shim.py" | sha256sum -c - >> $L 2>&1; stage "shim sha exit=$?"
stage "vllm start (model-card flags, fp8)"
vllm serve ./openjev --host 127.0.0.1 --served-model-name qwen --port 8000 --enable-prefix-caching --max-model-len 16384 --gpu-memory-utilization 0.90 --limit-mm-per-prompt '{"image":1}' --trust-remote-code --max-num-seqs 256 --max-logprobs 64 --gdn-prefill-backend triton --quantization fp8 >> $L 2>&1 &
VPID=$!
( while kill -0 $VPID 2>/dev/null; do sleep 30; echo "$(date -u +%H:%M:%S) PROGRESS gpu_mem=$(nvidia-smi --query-gpu=memory.used --format=csv,noheader 2>&1 | head -1)" >> $L; done ) &
ok=0
while kill -0 $VPID 2>/dev/null; do
curl -sf http://127.0.0.1:8000/v1/models >/dev/null && { ok=1; break; }
sleep 5
done
if [ $ok = 1 ]; then stage "vllm ready"; else stage "vllm DIED exit=$(wait $VPID; echo $?)"; sleep 1500; exit 1; fi
kill $LOGPID; sleep 1
stage "shim start"
VLLM=http://127.0.0.1:8000/v1 TOKENIZER=./openjev READOUT_T=0.85 READOUT_NOUL_T=1.829074 READOUT_NOUL_BIAS=0 READOUT_TARGETED=1 READOUT_INSTR_STYLE=pyrepr SHIM_STAGGER=1 SHIM_TOKEN="${BADGR_ENDPOINT_API_KEY:?no key}" python3 openjev/helper/shim.py --host 0.0.0.0 --port 3000The verified OpenJev profile exposes key-protected startup logs while the model loads.
curl -s $ENDPOINT_URL/log -H "Authorization: Bearer $KEY" # 03:14:52 PROGRESS gpu_mem=4 MiB # 03:15:22 PROGRESS gpu_mem=13133 MiB (weights loading) # 03:16:22 PROGRESS gpu_mem=31489 MiB (torch.compile) # (EngineCore) Capturing CUDA graphs (PIECEWISE): ...
Use the endpoint URL and key the command printed (badgr status and badgr key <deployment-id> show them again). Without the key, every route is refused:
curl -s -o /dev/null -w '%{http_code}\n' $ENDPOINT_URL/v1/version
# 401
curl -s -o /dev/null -w '%{http_code}\n' $ENDPOINT_URL/v1/version -H "Authorization: Bearer nope"
# 401With the key, the version route reports the exact calibration the shim is running:
curl -s $ENDPOINT_URL/v1/version -H "Authorization: Bearer $KEY"
# {"model_dir": "openjev", "T": 0.85, "noul_t": 1.829074, "noul_bias": 0.0,
# "flags": {"targeted": true, "instr_style": "pyrepr", "stagger": true, ...},
# "shim_sha256": "81a22f1b1b8912a465059207ef9f60b7c6c16b4de6372305d867efbe38a1987a"}curl -s $ENDPOINT_URL/v1/systemone \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{
"model": "openjev",
"state": "Customer says they were charged twice.",
"questions": {
"route": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {"billing": null, "shipping": null, "technical": null}
}
}
}'Real response from our run (1.6 s):
{
"id": "shim-1791775542384",
"answers": {
"route": {
"type": "choice",
"choice": "billing",
"probabilities": {"billing": 0.9997, "shipping": 0.0001, "technical": 0.0001},
"confidence": 0.9996
}
},
"usage": {"input_tokens": 60, "output_tokens": 0}
}The reply carries a typed route decision: choice selects among named alternatives and reports probabilities for each; confidence summarizes confidence in the selected option. The shim also supports noul for binary yes/no-style decisions. Two more checks from the same run: “My package says delivered but nothing arrived at my door” routed to shipping (0.9995, confidence 0.9992), and “The app crashes every time I open the settings page” routed to technical (0.9998, confidence 0.9997). A yes/no question (type: noul) about whether to refund the double charge returned 0.9291. These are smoke tests of a few hand-written cases, not an accuracy measurement; see the model card for Loop AI’s benchmarks.
Set ENDPOINT_URL and KEY using your deployment output. This example uses only Python’s standard library:
import json, os, urllib.request
url = os.environ["ENDPOINT_URL"].rstrip("/") + "/v1/systemone"
key = os.environ["KEY"]
payload = {
"model": "openjev",
"state": "Customer says they were charged twice.",
"questions": {
"route": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {"billing": None, "shipping": None, "technical": None},
}
},
}
req = urllib.request.Request(
url,
data=json.dumps(payload).encode("utf-8"),
headers={
"Authorization": "Bearer " + key,
"Content-Type": "application/json",
},
method="POST",
)
with urllib.request.urlopen(req, timeout=60) as response:
print(json.dumps(json.load(response), indent=2))Run this after the endpoint is ready. Use application-managed secrets rather than hard-coding the bearer key in source code.