Skip to content

Logs

Output is stored per run (each command executed in an RSI Box), split into stdout and stderr streams.

Open a Box from RSI Boxes to view its Activity and Executions cards:

  • Activity shows CPU and per-GPU utilization/VRAM charts alongside the Lifecycle waterfall. Pause animation pauses the running lifecycle indicator without affecting the box or log collection. See usage history for sampling gap behavior.
  • Executions pairs the execution waterfall with the selected run’s Logs below, sharing the resource charts’ time scale. When a box has no runs yet, a single empty state replaces both.

Navigating runs and output:

  • Time range: Choose Since start, Startup, 1 hour, 24 hours, or Selected run. Startup focuses on lifecycle and executions; resource charts appear in the other ranges. The date and UTC offset appear above the charts.
  • Selecting runs: Search by command or run ID, filter by status, and click a command or duration bar to open its output. Runs are ordered oldest first; the first is selected initially, and new runs do not override your selection. Choosing an execution draws a faint dashed reference line at its start time across the charts (selecting a lifecycle phase hides it).
  • Timestamps and reasons: Hover any lifecycle bar, execution bar, or output segment for exact timestamps (millisecond timestamps are also in each bar’s accessible label). A reason icon beside a lifecycle phase explains waiting or failure when available.
  • Viewing logs: The full command appears above its output. Switch between stdout and stderr (newly selected failed runs open stderr by default). Live runs keep streaming; scroll up to read earlier lines without jumping to the bottom, and re-enable Auto-scroll to follow the tail. Use Wrap lines to toggle wrapping and Copy to copy the displayed output. For large logs, the viewer keeps the newest 400,000 characters and shows a truncation notice.

rsi box exec SANDBOX_ID -- COMMAND waits for completion and prints both streams. To inspect an earlier run in the selected project:

rsi run ls
rsi run logs RUN_ID --follow

Pass a run ID from rsi run ls. In Python, exec returns an exec ID for exec_output rather than a run ID. Advance both stdout and stderr via their next_since cursors before checking output_complete—see the Python SDK example for the complete loop.

List a box’s runs, newest first:

curl -s https://rsibox.ai/v1/boxes/SANDBOX_ID/runs -H "Authorization: Bearer $RSIBOX_API_KEY"

Read a run’s output:

curl -s "https://rsibox.ai/v1/boxes/SANDBOX_ID/runs/RUN_ID/logs?stream=stdout&since=0" \
-H "Authorization: Bearer $RSIBOX_API_KEY"

The response returns ordered segments and a next_since cursor.

To stream a running command, repeat the log request with:

  • since set to the previous next_since so you only fetch new output;
  • wait_s=20 so the server holds the request open for up to 20 seconds waiting for new lines.

Stop once run.state is no longer running and no new segments arrive.

since=0
while true; do
page=$(curl -s "https://rsibox.ai/v1/boxes/$SB/runs/$RUN/logs?since=$since&wait_s=20" \
-H "Authorization: Bearer $RSIBOX_API_KEY")
echo "$page" | jq -j '.segments[].data'
since=$(echo "$page" | jq '.next_since')
[ "$(echo "$page" | jq -r '.run.state')" = "running" ] || break
done