Skip to main content
Runs and builds consume credits. Both credit commands are read-only.

Check the balance

Without --workspace, this reports your active workspace. Credits are held per workspace, so a team that runs a lot draws down its own balance rather than a shared pool.

See where they went

The ledger lists entries newest first, showing what consumed credits and when. Reach for it when a balance drops faster than expected. The usual causes are a schedule firing more often than intended, or an agent retrying a failing step.

Keeping consumption predictable

Check what’s scheduled.
trigger list shows each trigger with its mode and version; schedule show shows the routine’s cron expression. A */5 * * * * schedule left over from testing is the most common surprise. Prefer Simulation while iterating. A Simulation exercises the agent without side effects outside JoyStream, and it’s the right mode while you’re still shaping a spec. Look for retry loops.
A MUST_HAPPEN step that fails retries with backoff before giving up. A step failing on every run is doing that work repeatedly. Clear schedules you no longer need.

When a workspace runs out

A workspace is out of credits once its balance reaches a small reserve. From then on, jstm agent run and jstm agent build fail with HTTP 402, and the web app disables the Run button. Every surface shows the same message:
Check which workspace is affected with jstm credits balance --workspace <handle>; credits are not pooled, so a sibling workspace may still have a balance.

Scripting

See also