Environments
environments maps an environment key to an environment. Environment keys use lowercase letters, digits and -, up to 64 characters. A key cannot start with a letter followed by -.
Hydra turns auto-image on for every environment a GitOps commit writes, and the auto-image builds set the image.
Environment keys
| Key | Type | Default | Description |
|---|---|---|---|
name | string | the environment key | Sets the environment's display name. |
root_path | string | /environments/<key> | Names the document folder that holds the environment's MCP config and skills. |
mounts | list of mount | none | Lists what the environment's runs check out. |
secrets | list of string | none | Lists the names of the organization secrets that the environment's runs receive. Each name must exist as an organization secret. |
A config file names secrets and never holds their values.
environments:
web:
name: Web
mounts:
- type: bundle
target: web
source: { kind: repo, repo_name: acme/web }
- type: documents
target: documents
path_prefix: /designs/
secrets: [API_TOKEN]
Mount keys
Settings layers merge mounts by target.
| Key | Type | Default | Description |
|---|---|---|---|
type | bundle or documents | required | Sets the mount type. |
target | string | required | Sets the mount's relative path in the run's working directory. |
source | bundle source | required for bundle | Names the repository to check out. |
path_prefix | string | none | A documents mount with this key syncs only documents whose path starts with it. Without it, the mount syncs the whole tree. |
Bundle source keys
| Key | Type | Default | Description |
|---|---|---|---|
kind | repo or remote_url | required | Sets the source kind. |
repo_name | string | required for repo | Names a repository the organization has connected, such as acme/web. |
url | string | required for remote_url | Sets the git URL. |
rev | string | see description | Sets the revision to check out. For repo, the default is the repository's default_branch, then main. For remote_url, the default is main. |
service_repo_name | string | none | For remote_url, this key makes the run count as referencing that connected repository. |
Environment documents
| Path | Contents |
|---|---|
<root_path>/instructions.md | Instructions for the environment's runs. A run finds them in its WORKSPACE.md file, under "Environment instructions". |
<root_path>/mcp-config.json | The environment's MCP config. It wins a conflict with the agent's copy. |
<root_path>/skills/ | The environment's skills. They win a conflict with the agent's skills. |