docs
CLI

Sessions

List live and historical sessions for your org from the CLI

A session is uRun's core primitive — a live, bidirectional connection between a browser client and a function running on GPUs (see the session model). urun session list shows the sessions your org has created, live and historical.

List sessions

urun session list
APP            FUNCTION         STATE       CREATED
krea-realtime  krea_runtime     closed      2026-06-15 09:01:12
hello-h100     hello            connected   2026-06-15 09:14:55

Two separate facts about ordering, so they never seem to contradict:

  • Fetch order is newest-first--limit N returns the N most recent sessions.
  • Print order is newest-last — within that page the table is printed oldest→newest, so the most recent run is the last line and the command stays friendly to tail.

Add --json for raw output (newest-first, unmodified).

Filter and limit

urun session list --limit 25
urun session list --state connected
FlagDefaultEffect
--limit N100Max sessions to fetch (newest-first)
--state STATE(all)Filter to one backend state
--jsonoffRaw JSON instead of a table

Backend states

--state filters on the backend session state:

StateMeaning
allocatedA session slot has been allocated, not yet connected
connectedThe client is connected and streaming
closedThe session ended cleanly
failedThe session failed during allocation or transport
cancelledThe session was cancelled

These are the backend session states reported by the control plane. They are distinct from the client-facing lifecycle phases the browser SDK surfaces — the full nine are idle, queued, unavailable, provisioning, connecting, live, error, ended, and expired — see the session lifecycle. For deep per-session inspection (events, control docs, streams) use the console's Sessions surface.

Example: tail the latest failures

urun session list --state failed --limit 10

Next

On this page