OpenJev · One-command GPU deployment

Deploy OpenJev in One Command with Badgr

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.

Licence. The OpenJev weights are CC BY-NC 4.0: free for research and other non-commercial use, with attribution. For a commercial licence, Loop AI directs you to support@loopai.com. Get that in writing before you offer this as a production or paid service. The helper/ and serve/ files are Apache 2.0.

Deploy in three steps

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.

  1. Install
    npm install -g badgr-cli
  2. Log in
    badgr login
  3. Deploy
    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.

When it is ready

  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>.

Stop the GPU when you finish

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.

Advanced details: model settings, logs and underlying script

About the model

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.

  • Model and runtime: openjev/openjev, vLLM 0.29.0, FP8 weight loading, helper/shim.py.
  • Compute tested: NVIDIA H100 80 GB; model download approximately 52 GB; approximately 28 GiB of weight memory during load.
  • Inference setup: 16,384-token maximum model length, 256 maximum sequences, FP8 quantization, Triton GDN prefill, maximum 64 log probabilities and prefix caching.
  • Decision calibration: READOUT_T=0.85, READOUT_NOUL_T=1.829074, READOUT_NOUL_BIAS=0, READOUT_TARGETED=1, READOUT_INSTR_STYLE=pyrepr and SHIM_STAGGER=1.
  • Source: Official model card and recommended usage. This guide demonstrates deployment; it does not independently benchmark model accuracy.

Implementation details (optional)

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.

Show the full verified startup script
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 3000

Startup logs

The 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): ...
Examples and API reference: requests, authentication, Python

Check authentication

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"
# 401

With 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"}

Send a decision request

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.

Call the decision API from Python

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.

Before using OpenJev commercially

  • The shim uses HTTP internally and checks a bearer token without built-in rate limiting. The endpoint URL uses HTTPS, but do not treat this basic token check as a complete production security system. Review TLS termination, network exposure, rate limiting, access controls and monitoring before relying on it beyond testing.
  • The vLLM port (8000) is bound to 127.0.0.1 inside the container and is never published. Keep it that way: it has no authentication.
  • The endpoint key is printed at launch and can be retrieved with badgr key <deployment-id>. The CLI may retain a local owner-readable copy; protect that machine and do not commit credentials to a repository. Use your application's secret manager for production clients.
  • We verified multiple deployments on H100 80 GB GPUs, including live decision requests, authentication rejection and teardown. Other GPU types and larger context lengths have not been verified.

Next steps

  • Point your agent’s decision step at /v1/systemone on your endpoint and compare the probabilities with your current prompts.
  • For a cheaper, smaller build, see the GGUF guide.
  • Obtain written commercial-use permission from Loop AI before offering hosted paid use; a working technical deployment does not change the weights’ CC BY-NC licence.