mulerun session manages AI task sessions on the MuleRun platform — the
same sessions you would otherwise drive from the web UI, but scriptable.
This page is a quick overview. Detailed per-subcommand pages are coming
soon.
At a glance
-f:
Common subcommands
Streaming
Long-running prompts stream their output to stdout as the agent works. Status messages go to stderr; pressCtrl+C to cancel cleanly (the CLI
sends an explicit session/cancel over the WebSocket).
For machine consumption use -o json or -o jsonl.
Tips
session runis the fastest way from zero to a streaming response.- Once a session exists, prefer
session prompt(positional text) for shell-friendly one-liners andsession chat(--prompt) when you also need to attach files. - Combine with
mulerun pageto publish the output of a session as a deployed page.