Set up Jev (TypeSafe AI)

Capture the decisions your code asks of Jev, TypeSafe AI's decision model, through a relay on your computer.

Jev is TypeSafe AI's decision model: your code sends it a state and typed questions, and it answers each with a probability for every option. Worsley captures those calls through a relay on your computer, whatever language your code is in.

Decision-model sessions aren't shown in Worsley yet. They're measured by DY (Decision Yield), not ROIP, so they're captured and kept safely in your account now and will appear when DY arrives. Until then they don't show in History and aren't scored.

Sign in to the Worsley CLI

Do this once on each computer where you run your code that calls Jev.

  1. 1Install the Worsley CLI. It runs on macOS, Windows and Linux and needs Node.js 22.23.4 or later (on a Mac, brew install node works too). On macOS or Linux, run:
curl -fsSL https://www.worsley.ai/install.sh | sh

On Windows, in PowerShell:

irm https://www.worsley.ai/install.ps1 | iex

The installer checks the download against its published checksum, puts the CLI in your home folder (~/.worsley, or %LOCALAPPDATA%\Worsley on Windows) and adds it to your PATH. Open a new terminal window afterward so the worsley command is found. Run the same command again any time to update.

  1. 1Sign in. The command below prints a link and a short code, then waits.
worsley login
  1. 1Open the link. Log in to Worsley if asked, check that the code on the page matches the one in your terminal and that it names this computer, then select Connect. If you last logged in more than 10 minutes ago, Worsley asks you to log in again first. Opened the page without the code? Type it in.
  2. 2Back in the terminal, Worsley confirms Signed in as your email. The sign-in is kept in your system's credential store (macOS Keychain, Windows Credential Manager or Secret Service on Linux), never in a plain file. The code expires after 10 minutes; run worsley login again if it does.

Start the Worsley relay

your code talks to its model over an API, so instead of reading files, Worsley sits between the two as a small relay on your own computer. Requests and replies pass through unchanged, streaming included, and Worsley keeps a copy of each exchange.

  1. 1Start the relay, and leave it running in its own terminal window while you work. Press Ctrl+C to stop it.
worsley proxy --upstream jev

It listens on 127.0.0.1:11435, on this computer only. Port taken? Add --port <number>, and use that port in the next step.

Point your code at the relay

  1. 1Where your code or the TypeSafe SDK sets Jev's address (the base URL, https://api.typesafe.ai), use the relay's address instead. Keep your TypeSafe API key as it is.
http://127.0.0.1:11435

Calling the API directly? Send the same request to the relay:

curl http://127.0.0.1:11435/v1/systemone \
  -H "Authorization: Bearer $TYPESAFE_API_KEY" -H "Content-Type: application/json" \
  -d '{"model": "jev-latest", "state": "…", "questions": {…}}'
  1. 1Use your code as you normally do. Each exchange is uploaded a few seconds after it finishes and appears in Worsley shortly after.

Your API key goes straight through the relay to the provider over HTTPS. Worsley never records or logs it.

Check that it's working

  • Each call your code makes shows in the relay's window as Recorded a decision from Jev, with how many answers it had and the input tokens.
  • Run worsley status. Nothing should be left waiting to upload a few seconds after a call.

What's captured

  • The state you sent, as text, or as JSON when you sent structured data.
  • Every question: its id, its type (yes/no, choice or score), its instructions, and its options or score levels.
  • Every answer, with all its numbers: the option chosen, the score, or the probability of yes; the probability of every option or level; and the model's own confidence, exactly as the model returned them.
  • The model you asked for (such as jev-latest or clef-flash) and the exact model that answered.
  • Tokens and timing: input and output tokens, as the model reports them, and how long each call took.
  • Images: how many you sent and their type (PNG, JPEG, WebP). Never the images themselves.
  • Not captured: your API key, the images, and calls that fail. Secrets in the state (keys, tokens, passwords) are removed on your computer before anything is uploaded, and the questions and answers are encrypted like the rest of your conversations.

A session is a run of calls to one model: it ends after 30 minutes without a call, or after 500 calls, and the next call starts a new one.

If a session doesn't appear

  • Browser: check that the Worsley icon isn't showing Not Connected, Reconnect or No Site Access, and reload the tool's tab. More in Extension isn't capturing.
  • Terminal: check that worsley watch or worsley proxy was running while you worked, and run worsley status. If it says the sign-in was revoked or expired, run worsley login again.
  • Still missing after a few minutes? Contact support and tell us which tool and which browser or terminal you used.

Still need help?

Our team will get back to you.

Contact support