Skip to navigation

Configure your blueprint

Declare your agent's image, models, data, and inputs in astropods.yml
View as Markdown

astropods.yml sits at the root of your project and tells Astropods what your agent needs. The CLI reads it when you run the agent locally, push a blueprint, and deploy. This page walks through each section with a working example. The Blueprint Spec lists every key.

Start from a minimal file

ast create writes an astropods.yml for you. The smallest valid file names the spec version, the agent, and how to build its image:

astropods.yml
spec: blueprint/v1
name: my-agent
agent:
build:
context: .
dockerfile: Dockerfile

agent takes exactly one of build (build from your Dockerfile) or image (a pre-built image reference). Everything else in the file is optional.

Choose how users reach the agent

agent.interfaces says whether the agent chats through Astropods messaging, serves its own web UI, or both:

astropods.yml
agent:
build:
context: .
dockerfile: Dockerfile
interfaces:
frontend: true
messaging: true

Without interfaces, the agent gets messaging only. A frontend must serve HTTP on port 80 when deployed. Put interfaces under agent, because the platform ignores it at the top level. See Types of agents.

Add models

Each entry under models gives the agent access to a model. The entry name is yours. provider: gateway routes calls through the AI Gateway, so you need no provider key:

astropods.yml
models:
default:
provider: gateway
models: [claude-sonnet-4-6]

The models list is the menu the deployer picks from. The agent reads the pick from MODEL_DEFAULT, and calls the gateway at ASTRO_GATEWAY_URL with ASTRO_GATEWAY_API_KEY.

To call a provider with your own key, name the provider instead. The platform injects the key as ANTHROPIC_API_KEY, and asks for it at deploy time:

astropods.yml
models:
anthropic:
provider: anthropic

See Bring your own key.

Add knowledge stores

Each entry under knowledge gives the agent a database. A built-in provider such as postgres, qdrant, redis, mysql, or neo4j runs as a managed container with durable storage:

astropods.yml
knowledge:
db:
provider: postgres

The platform creates the database user and injects POSTGRES_HOST, POSTGRES_PORT, POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DB. Read all five in your code. See Knowledge stores and Using knowledge stores.

Add integrations

Each entry under integrations is a service the agent calls, such as an API or an MCP server. A built-in provider injects its credential:

astropods.yml
integrations:
github:
provider: github

This entry injects GITHUB_TOKEN. Integrations also show as icons on the blueprint’s Agent Card.

Ask for values at deploy time

An input is a value the deployer supplies, such as an API key or a region. The input’s name becomes the environment variable:

astropods.yml
agent:
build:
context: .
dockerfile: Dockerfile
inputs:
- name: SUPPORT_EMAIL
datatype: string
description: Address the agent sends escalations to
- name: ZENDESK_API_KEY
datatype: string
secret: true

agent.inputs reach the agent container only. Top-level inputs reach every container. Mark credentials secret: true, so the platform stores them securely and never logs them.

Locally, set inputs with ast project configure. At deploy time, pass them with --var, and reference a stored secret with @:

ast blueprint deploy my-agent --var ZENDESK_API_KEY=@ZENDESK_API_KEY

Run jobs on a trigger

Each entry under ingestion is a container that runs on a trigger, such as loading documents into a knowledge store:

astropods.yml
ingestion:
sync:
container:
build:
context: .
dockerfile: ingestion/sync/Dockerfile
trigger:
type: schedule

The trigger type is schedule, startup, manual, or webhook. A schedule job takes its cron expression at deploy time. See Run an ingestion job.

Give the agent a sandbox

sandbox gives the agent a machine to run code on. toolchain is required, and the rest installs what the code needs:

astropods.yml
sandbox:
toolchain: auto
python:
version: "3.12"
packages: [pandas]

See Remote Sandbox and Run code in a sandbox.

Validate the file

Check the file before you push:

ast spec validate

The command checks YAML syntax, the schema, and the spec’s rules, and exits 0 on success. ast blueprint push runs the same checks.

Next steps