Skip to content

agent.yaml reference

One agent.yaml describes an agent. agent-platform init writes one for you; agent-platform validate checks one without deploying. Values can be overridden at deploy time with --set, e.g. agent-platform deploy --set env.LOG_LEVEL=debug.

name: my-agent # required, unique in your workspace
version: "1.0.0" # required
runtime: node20 # informational
cloud: aws # aws | gcp | azure | onprem
region: us-east-1
strategy: containers # containers (always on) | serverless (scale to zero; not on-prem)
source:
type: local # local | git | docker
path: . # for local
# repo: https://github.com/acme/agent.git branch: main (for git)
# image: my-agent:latest (for docker)
# dockerfile: Dockerfile (optional)
resources:
memory: 512Mi # e.g. 256Mi, 1Gi
cpu: 0.25
timeout: 30s # optional
minInstances: 0 # optional
maxInstances: 10 # optional
permissions: # abstract permissions → least-privilege cloud IAM
- write-logs
- read-secret
secrets: [OPENAI_API_KEY] # names only — values are set separately
env: # plain, non-secret variables
LOG_LEVEL: info
networking:
public: true
port: 8080 # optional
healthPath: /health # optional; checked after deploy and every minute
cors: { origins: ["https://example.com"] }
customDomain: agent.example.com # optional
monitoring: # optional
enabled: true
alerts:
errorRate: "1%"
latencyP99: "500ms"
webhookUrl: https://hooks.slack.com/services/...
cloudOptions: {} # cloud-specific — see below
Field Required Notes
name yes Lowercase letters, numbers and dashes. Names starting with agent-platform are reserved.
version yes Your own version label.
kind no Omit for your own code; assistant (Assistants) or mcp-server (MCP).
cloud, region yes Where it runs.
strategy yes containers or serverless. See How it works.
source yes for code Where the code comes from. Not needed for assistants.
resources no Memory, CPU, timeout and instance limits.
permissions yes List, may be empty ([]).
secrets yes List of names, may be empty. A deploy stops if a listed secret has no value. See Secrets.
env no Plain environment variables. Don’t put keys here.
networking no Public access, port, health path, CORS, custom domain.
monitoring no Alerts. See Observability.
llm no Route model calls through the LLM gateway.
connections no Agents this one calls. See Agent-to-agent.
safety no Guardrails. See Safety.
cloudOptions depends Per-cloud settings, below.
Permission Grants
read-database, write-database Database access
read-storage, write-storage Object storage access
invoke-api Calling other cloud APIs/functions
send-email Sending email
publish-queue, consume-queue Message queues
read-secret Reading secrets
write-logs Writing logs

Each maps to least-privilege, cloud-native IAM — never a wildcard action on a wildcard resource.

Cloud · strategy Options
AWS · containers clusterName (required), serviceName, taskDefinition, launchType, networkMode (public default, or vpc with subnetIds + securityGroupIds)
AWS · serverless functionName, timeoutSeconds (max 900, default 60), maxConcurrency
Azure · both resourceGroup (required), environmentName (required), minReplicas, maxReplicas, registryName (globally unique, 5–50 alphanumerics)
Google Cloud · both gcpProjectId, artifactRegistryRepo, minInstances, maxInstances, concurrency, vpcConnector, customDomain
On-prem · containers sshHost (required), sshUser (required), sshKeyPath, composeProjectName

agent-platform deploy --template <name> starts from a built-in template: simple-ecs, simple-lambda or simple-cloudrun. The dashboard’s Templates page lists them too.