Docs
Customize

Environment files

The test agent boots your app in a real browser. Most apps need environment variables to start — database URLs, API base URLs, feature flags. Environment files let you supply them once, encrypted, and CodeBeast writes them into the repository before the app boots.

Environment files live in Settings → Environment. Only admins can see and manage them.

Add an environment file Admin only

  1. Go to Settings → Environment and add a new file.

  2. Fill in the form:

    FieldWhat it does
    NameA label for the file, for example api-dev.
    Apply toAll repositories, or only the ones you select.
    PathWhere to write the file, relative to the repository root. Defaults to .env, for example apps/api/.env.
    Key / ValueOne row per variable. Click Add another for more rows.
    SecretOn by default. Locked keys are masked in agent transcripts.
  3. To bring in an existing file, click Import .env, or paste a .env block into a row and it's parsed into keys and values automatically.

  4. Save.

Limits

Each environment file can be up to 64 KB.

Tip

When you create a task for a repository with no environment file, the Add new task dialog shows a tip reminding you to add one.

How files are delivered

  • Files are written to the task's machine only for the test stage, just before the app is booted. Builders and reviewers don't receive them.
  • When several files map to the same repository and path, they merge key by key, and the repo-specific file wins over an all-repos file.

Security

  • Values are encrypted at rest and never shown again after you save. To change a value, delete the file and add it again.
  • Values marked Secret are redacted on the way out, so they never reach a model and are masked in agent transcripts.
Use non-production values

The test agent runs your app in a sandbox and clicks through it. Point it at development or staging services, and use test accounts, not production credentials.

Allow CodeBeast through your firewall

If your app talks to services that only accept known IP addresses, such as a staging database, Settings → Environment lists the egress IPs that task machines connect from, with a Copy button. Add them to your allowlist. The page also has advice on TLS for internal services.

Troubleshooting

SymptomWhat to check
Browser test says "not verified — the app was not up"A variable the app needs at boot is missing or wrong. Check the PR comment's service table, then add or fix the file. See When the app doesn't start.
App boots but can't reach a serviceThe service may block unknown IPs. Allowlist the egress IPs above.
Wrong value usedSeveral files map to the repo, and the repo-specific file wins key by key. Check Apply to on each.