Skip to main content

Environment Setup

ProAI supports multiple isolated environments for your project lifecycle.

Default Environments​

EnvironmentPurposeAccess
developmentLocal development and testingFull access
stagingPre-production validationTeam access
productionLive workloadsRestricted access

Configuring Environments​

# proai.yml
environments:
development:
runtime: local
debug: true
log_level: debug

staging:
runtime: kubernetes
cluster: staging-cluster
replicas: 2
log_level: info

production:
runtime: kubernetes
cluster: prod-cluster
replicas: 5
log_level: warn
alerting:
enabled: true
channels: [slack, pagerduty]
`

## Switching Environments

`ash
proai env use staging
proai env list
`

## Deploying to an Environment

`ash
proai deploy --env staging
proai deploy --env production --approve
`

:::warning
Production deployments require explicit approval. Use --approve flag only after thorough testing.
:::

## See Also

- [Configuration](/docs/getting-started/configuration) — Full configuration reference
- [Projects & Repos](/docs/projects/overview) — Version control integration