Skip to content
AGH RuntimeConfiguration

Configuration Overview

Decide which AGH file, overlay, or environment variable should change when you need to configure one machine, one workspace, one agent, or one skill.

Audience
Operators running durable agent work
Focus
Configuration guidance shaped for scanability, day-two clarity, and operator context.

Configuration is where AGH stops being generic and starts matching one machine, one workspace, one team default, or one agent role. The key to using this section well is choosing the right surface for the change you actually want.

Hand-drawn Configuration poster showing AGH config surfaces including global and workspace config.toml, AGENT.md, SKILL.md, mcp.json, env vars, and precedence with the octopus mascot.

Start with the decision table

If you want to change...Primary surfaceReach for this when...
Machine-wide defaults~/.agh/config.tomlThe daemon, default provider, permissions mode, HTTP bind address, automation defaults, or marketplace trust should change for every workspace on one machine.
One workspace<workspace>/.agh/config.tomlA repository needs different defaults, limits, or permissions than the rest of the machine.
One agentAGENT.mdA specific agent needs a different prompt, provider, permission mode, or MCP attachment.
One agent's advertised capabilitiescapability catalog next to AGENT.mdOther peers need outcome-oriented discovery metadata about what that agent can do.
One skillSKILL.mdYou are defining reusable instructions, optional MCP metadata, or skill-owned hooks.
MCP server configurationmcp.jsonMCP declarations are easier to manage as JSON sidecars than inline frontmatter.
Encrypted AGH-managed secretsVaultStore write-only vault:<namespace>/... values and inspect redacted metadata through CLI, HTTP, UDS, web, or session-scoped views.
Provider credentialsprovider settings, credential_slots, or environment variablesBind API-key providers to env: or encrypted vault:providers/<provider>/<slot> refs without exposing raw secrets in diagnostics.
Filesystem locations and precedencefile-locations referenceYou need to know where AGH looks for agents, skills, sessions, memory, or overlays.

Read in this order

  1. config.toml
  2. Vault
  3. File Locations
  4. AGENT.md
  5. Agent Capabilities
  6. SKILL.md
  7. mcp.json
  8. Environment Variables

That order mirrors how operators usually troubleshoot AGH: global defaults first, path resolution second, then file-format specifics and agent sidecars.

CLI Inspection and Mutation

Use agh config path before editing to confirm the selected global or workspace overlay. Prefer agh config set <path> <value> for supported scalar and list settings because it writes through the same validated persistence path as the settings API. Use agh config validate or its agh config check alias after hand edits.

Inspection commands are redacted by default. agh config show, agh config list, and agh config get <path> replace MCP and environment map values with [redacted] so copied diagnostics do not leak runtime credentials.

On this page