---
title: "Configuration"
description: "agent-qa configuration overview: the project config, tests, suites, hooks, variables, secrets, remotes, plugins and credentials, and how settings cascade."
canonical_url: "https://vostride.com/docs/agent-qa/configuration"
md_url: "https://vostride.com/docs/agent-qa/configuration.md"
last_updated: "2026-11-07T15:25:39+05:30"
---

> [Documentation index](https://vostride.com/docs.md) · [Site index](https://vostride.com/llms.txt)
> Follow the Markdown links to read individual pages; the indexes list the available documentation.

# Configuration

> agent-qa configuration overview: the project config, tests, suites, hooks, variables, secrets, remotes, plugins and credentials, and how settings cascade.

agent-qa is configured with plain files. The ones you commit describe the project, including where tests run; the local ones hold secrets.

| File | What it holds | Commit it |
| --- | --- | --- |
| [`agent-qa.config.yaml`](https://vostride.com/docs/agent-qa/configuration/global-config.md) | Targets, devices, remotes, plugins, models, settings and services. | Yes |
| [Test files](https://vostride.com/docs/agent-qa/configuration/test.md), `tests/**/*.yaml` | One journey each. | Yes |
| [Suite files](https://vostride.com/docs/agent-qa/configuration/suite.md), `suites/**/*.suite.yaml` | Tests that run together. | Yes |
| [`hooks.yaml`](https://vostride.com/docs/agent-qa/configuration/hook.md) | Scripts tests can run. | Yes |
| [`agent-qa-knowledge/policies/`](https://vostride.com/docs/agent-qa/memory/policies.md) | Your QA rules. | Yes |
| [`.env`](https://vostride.com/docs/agent-qa/configuration/env-secrets.md) | Variables for tests. | No |
| [`.env.secrets.local`](https://vostride.com/docs/agent-qa/configuration/env-secrets.md) | Secrets for tests, remotes and plugins, masked everywhere. | No |
| [`~/.agent-qa/auth.json`](https://vostride.com/docs/agent-qa/configuration/models.md) | Model credentials, outside the project. | No |

Devices, remotes and plugins are described in `agent-qa.config.yaml`, so every machine and CI job reads the same description; only their credentials stay in the secrets file. `agent-qa.local.yaml` is no longer read. See [v0.2.x to v0.3.x](https://vostride.com/docs/agent-qa/migrate/v0-2-to-v0-3.md).

## How settings combine
Settings under `use` cascade. A suite overrides the project, a test overrides its suite, and command-line flags override everything:

```text
agent-qa.config.yaml  →  suite use  →  test use  →  CLI flags
```

A few environment variables override the config file and lose to flags: `AGENT_QA_HEADLESS`, `AGENT_QA_LOG_LEVEL`, `AGENT_QA_DASHBOARD_PORT`, `AGENT_QA_MCP_PORT` and `AGENT_QA_CACHE_DIR`. No flag or environment variable moves a test to a remote; the files decide where tests run.

To see where each setting of a test came from:

```bash
npx agent-qa run tests/checkout.yaml --dry-run --config-debug
```

## Rules every file follows
- **Unknown keys are errors** in the config, test and suite files. A typo fails validation instead of being ignored. `hooks.yaml` ignores keys it does not know.
- **Paths are relative to the config file** and must stay inside its folder.
- **Durations** use a number and a unit: `30s`, `5m`, `1h`, `7d`.
- **Sizes** use a number and a unit: `256k`, `1m`, `5mb`.
- **IDs** are a prefix and ten lowercase words joined by hyphens: `t_` for tests, `s_` for suites, `h_` for hooks.

## Check your configuration
| Command | Checks |
| --- | --- |
| `agent-qa validate` | The config and every test and suite, against their schemas, including each plugin's options and settings. |
| `agent-qa doctor` | The whole setup: Node.js, files, credentials, the model, browsers, devices, remotes, plugins and the knowledge store. |
| `agent-qa config show` | The values in your config file, with secrets masked. |
| `agent-qa plugins list` | Each plugins entry and whether it is installed at the right version. |
| `agent-qa devices` | Where each device runs, and what this machine has. |

A key that agent-qa removed fails validation with a message that says what replaced it. See [removed keys](https://vostride.com/docs/agent-qa/configuration/global-config.md#removed-keys). A config from agent-qa v0.1 fails with a message that lists the upgrade steps; see [v0.1.x to v0.2.x](https://vostride.com/docs/agent-qa/migrate/v0-1-to-v0-2.md).

## Documentation navigation

- [All documentation](https://vostride.com/docs.md)
- Parent: [What is agent-qa](https://vostride.com/docs/agent-qa.md)
- Previous: [Recorded test evidence](https://vostride.com/docs/agent-qa/guides/recorded-evidence.md)
- Next: [agent-qa.config.yaml](https://vostride.com/docs/agent-qa/configuration/global-config.md)
