agent_file paths under a trusted root — the server’s working directory by default.
Quick Start
1
Start the server next to your YAML
agent_file under /srv/praisonai/agents is accepted.2
Or set an explicit root
How It Works
Configuration
What returns 400
- Absolute paths outside the root, e.g.
/etc/passwd - Relative escapes, e.g.
../outside.yaml - Symlinks inside the root that point outside it
Requests without
agent_file (for example inline agent_yaml or a recipe_name) are not affected.Best Practices
Use a dedicated agents directory
Use a dedicated agents directory
Keep YAML files in one folder and point
PRAISONAI_JOBS_AGENT_ROOT at it, rather than widening the root to /.Start the server from a known directory
Start the server from a known directory
The default root is the working directory at request time, so launch the server from your agents folder (or set the env var) in systemd units and containers.
Related
Async Jobs
Submit and manage long-running jobs
Headless YAML Runs
Run YAML agents without a UI
Protected Paths
Block tools from sensitive files
Security Environment Variables
All security-related env vars

