---
title: "Environments"
description: "Learn what a project's dev and prd environments are, which keys reach each, and how the dev test inbox holds email to addresses at .test."
url: "https://agentpost.tools/docs/platform/concepts/environments"
kind: concept
---

# Environments

An environment is one of a [project](/docs/platform/concepts/projects.md)’s two separate sets of data. Every project has both from the start:

-   **`dev`** is for building and tests. Its keys say `test`.
-   **`prd`** is for your product’s real customers. Its keys say `live`.

Each environment has its own data in every service. A key or user token that says `test` reaches only `dev`, and one that says `live` reaches only `prd`, so nothing made in `dev` appears in `prd`. Build and test in `dev`, then issue `prd` keys when the product goes live, as [Create a project and issue a key](/docs/platform/guides/keys.md) shows.

## Test inbox

Email that `dev` sends to an address at `.test` waits in the project’s test inbox for an hour instead of being sent, so tests and agents sign principals in with made-up addresses and no mailbox. `.test` is a domain reserved for testing. [Projects](/docs/platform/concepts/projects.md#email) explains what happens to email outside the test inbox.

Only the project’s `dev` secret key, `sk_test_…`, reads the inbox, with one call: [Read the test inbox](/docs/platform/reference/test-inbox.md#read-the-test-inbox). A `sk_live_…` key answers [`forbidden`](/docs/errors.md#forbidden) there. Each message holds its fields in `data`, such as `code` for a sign-in code.

## Where to act on it

-   [Create a project and issue a key](/docs/platform/guides/keys.md) issues a key for each environment.
-   [Read the test inbox](/docs/platform/reference/test-inbox.md#read-the-test-inbox) reads the `dev` email held for `.test` addresses.
