pool exec to send a single prompt and exit when the task is complete. Use this for scripts, CI pipelines, and one-off tasks where you don’t need a back-and-forth.
For interactive work, use Interactive mode instead.
This documentation describes Poolside Agent CLI v1.0.6. Check your version with
pool --version. To update, exit any active session and run pool update from your terminal. See pool CLI releases on GitHub for release history.Basic usage
If you usepool exec in a non-interactive environment, set POOLSIDE_API_KEY before the command:
- to read from standard input when combining with other flags:
Pass MCP server input variables
If an MCP server needs input from environment variables, startpool exec with those variables set:
Run in a specific directory
By default,pool exec uses your current directory. Use -d to point it somewhere else:
Continue from a previous run
Resume from the last run:pool history logs.
Output format
By default,pool exec prints Markdown. Use -o json for newline-delimited JSON:
reasoning: Raw model reasoningthought: Agent message texttoolCall: Tool invocations and argumentstoolCallResult: Tool resultsoauth_url: Browser authentication required
Run in automated mode
Use--unsafe-auto-allow when you want pool exec to run without approval prompts:
settings.yaml locations, see Tool permissions.
Override sandbox usage
Use--sandbox required to require a configured sandbox for the run:
--sandbox disabled only when you want to run without a configured sandbox.