> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.astropods.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.astropods.com/_mcp/server.

# Configure your blueprint

`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](/astropods-package-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`**

```yaml title="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`**

```yaml title="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](/interfaces).

## 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](/ai-gateway), so you need no provider key:

**`astropods.yml`**

```yaml title="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`**

```yaml title="astropods.yml"
models:
  anthropic:
    provider: anthropic
```

See [Bring your own key](/own-provider-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`**

```yaml title="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](/knowledge-stores) and [Using knowledge stores](/knowledge-store-agent).

## 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`**

```yaml title="astropods.yml"
integrations:
  github:
    provider: github
```

This entry injects `GITHUB_TOKEN`. Integrations also show as icons on the blueprint's [Agent Card](/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`**

```yaml title="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](/secrets) with `@`:

```bash
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`**

```yaml title="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](/run-locally#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`**

```yaml title="astropods.yml"
sandbox:
  toolchain: auto
  python:
    version: "3.12"
    packages: [pandas]
```

See [Remote Sandbox](/remote-sandbox) and [Run code in a sandbox](/run-code-in-a-sandbox).

## Validate the file

Check the file before you push:

```bash
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

* [Run your agent locally](/run-locally): start the agent and its dependencies on your machine
* [Publish a blueprint](/blueprints): push the project to the registry
* [Blueprint Spec](/astropods-package-spec): every key, with types and validation rules
* [Agent Card](/agent-card): control how the blueprint looks in the catalog