Skip to main content
whileai is two things that share one import, and it helps to know which one you are using.

What the platform adds

  • Hosted models. A situation writer and a judge you did not have to stand up, on your key, with a daily allowance on the trial tier. Leave agent= off simulate() and the hosted Qwen answers; leave judge= off grade() and hosted Phi-4 grades.
  • Storage. data.push("name") stores a run as a dataset with its holdout split, provenance and the analyzer report. Datasets are what training reads.
  • Training and serving. wai.train(dataset, method="sft" | "dpo" | "grpo" | "rm") runs on hosted GPUs; wai.serve("name", run) puts the adapter behind an OpenAI-compatible endpoint you can hand to local_model.
  • Tracking. Agents, behaviors, runs and verdicts as objects the terminal verbs read: whileai agents, whileai verdict <id>, whileai promote <id> <version>.
Everything the platform stores can be pulled back as JSONL, and every number it reports is computed by the same library code you can run locally.

Where to go

Sign in and keys

Where the key goes and how the SDK finds it.

Command line

login, status, init-evals, and the platform verbs.

Datasets, training, serving

push, train, serve, cut, publish, in the order a run happens.

Platform API

Every platform call with its signature.
Last modified on September 19, 2026