In a container

Note: Docker must be installed and running. Install the full praisonai package for the deploy command.

Package the agent

A container holds Python, PraisonAI, and agents.yaml together. Any machine with Docker can run it the same way.

init writes the Docker settings into agents.yaml. run builds the image and starts it.

Example

pip install praisonai
praisonai deploy init --file agents.yaml --type docker
praisonai deploy run --file agents.yaml --type docker

Check it, then stop it

The container listens on port 8005. Check /health, then remove the container when you are done.

Example

curl http://localhost:8005/health
praisonai deploy destroy --file agents.yaml

Example explained

  • deploy run — Builds the image and starts the container.
  • deploy destroy — Stops and removes what deploy run started.

Reference: documentation