chat -p to send one prompt, print the reply, and exit. It never opens the TUI, runs under plain Node, and works without a TTY, so it fits scripts, pipes, and CI.
One-shot prompts
-p no value:
--agent takes an id, slug, or name. It is optional when your account has exactly one agent.
JSON output
Add--json for structured output you can parse:
messageId. Re-fetch that reply later with skydive messages get.
Continuing a conversation
Each-p call starts a new conversation by default. To keep context across calls, pass the conversation id back in:
--json output.
Auth for non-interactive use
Print mode never opens an interactive sign-in. In CI or scripts, authenticate ahead of time:- Run
skydive auth login --webonce on the machine, or - Set the
SKYDIVE_SESSION_TOKENenvironment variable.
Sharing your machine for a run
With-p, the --share-machine flag grants the target agent access to this machine for that run, so it can execute local commands as part of the task:
Global flags
Everyskydive command accepts:
--quiet pairs well with command substitution: