Skip to main content
Deploy agents to Google Cloud Run using praisonai deploy run --type cloud --provider gcp.

Quick Start - CLI

1

Install PraisonAI

2

Set Environment Variables

3

Initialize GCP Config

4

Check Readiness

5

Deploy to GCP

Expected Output:
6

Verify

Quick Start - SDK

1

Create Deploy Script

2

Run

agents.yaml with GCP Config

GCP Cloud Config Options

Check Deployment Status

Destroy Deployment

Troubleshooting

These commands are for manual deployment only. Use praisonai deploy for automated deployment.
Never pass secrets via --set-env-vars — they appear in ps, shell history, and CI logs. Use --env-vars-file with chmod 0600. The praisonai deploy run command does this automatically (since PR #1744).

Security: How praisonai deploy Handles Secrets

The praisonai deploy run command automatically handles secrets securely:
  • Creates temp YAML via tempfile.mkstemp() with mode 0600 (owner read/write only)
  • Passes secrets via --env-vars-file instead of command line arguments
  • Removes temp file in finally block, even if deployment fails
  • No secrets appear in ps, shell history, or CI logs
Validation Commands: