Projects and tokens

Runs live in projects. A token writes to one project.

Anonymous projects

POST https://app.modgrad.com/api/v1/projects makes a project with no account, named anon-<16 hex> (or anon-<name>-<16 hex> if you send {"name": "..."}). It is unlisted: only people with the board link find it, and they can all watch it.

An unclaimed project is deleted after 30 days without new data. Its token expires 30 days after it was made (expires_unix), however often you write. To keep logging past that, claim the project and make a new token.

The SSH pipe gives each SSH key its own project. It belongs to the key and is kept.

Tokens

token prefix can do
project token obsp_… create and write any run in its project; read the project when it is private
run token obsr_… write one run; returned once, when a run is created with POST /api/v1/runs

Send either as Authorization: Bearer <token>; wandb sends WANDB_API_KEY for you. Anonymous project tokens and tokens from ssh ssh.modgrad.com token expire 30 days after issue.

Signed in, you can make labelled tokens with an optional expiry on the account page (or POST /api/v1/me/tokens), and revoke them. A new token is shown once.

Signing in

Sign in at app.modgrad.com with:

  • a passkey;
  • an SSH key: run ssh ssh.modgrad.com login and open the link (valid 10 minutes);
  • a zafu key (sign a challenge with an ed25519 key).

One account can hold several. Adding one while signed in attaches it to your account; a credential that belongs to another account is refused.

Claiming a project

Claiming currently works only from the account page of the browser tab that started the board with Start tracking, before its token expires. Sign in, go back to that tab, reload, open the account page and press claim. Closing the tab loses the token.

For a project started with curl or wandb, keep the claim URL from the reply. Its claim token lasts as long as the project; opening the URL does not claim it yet.

A claimed project is yours, private, and never deleted for inactivity. Old tokens keep their 30-day expiry, so make a new token.

An SSH key’s project needs no claim: sign in with the key and it is yours.

Private and public

You can switch each project you own between:

  • Private: only you, signed in, or a holder of one of its tokens can read it.
  • Public: anyone can read it. It is listed on your public profile if you set a handle.

Projects you create while signed in start private. Names are 3 to 40 characters of a-z, 0-9 and -.

Your account

The account page shows your credentials, projects and their size, sessions, tokens, and storage use against your limit. You can remove a credential (not the last one), end sessions, and delete the account with all its data.