Expand description
AWS credentials for container agents, brokered per use. Spec: docs/specs/SPEC_CONTAINER_AGENT_AWS_CREDENTIALS_2026_10_31.md.
A container agent’s SDK runs agentmux-bashwrap aws-credentials --profile <grant> (a credential_process), which
asks POST /api/v1/aws/credentials (server::app_api::aws_credentials) with the container’s token. srv checks the
host’s grants (policy), reuses or mints a session on the host (sessions, mint) and answers with the
credentials or a sentence (request). Nothing is written into the container.
Modules§
- container
- What a container agent is given so its AWS SDK and CLI find the broker (spec §4): a config file with one
credential_processprofile per grant, mounted read-only, and up to four environment variables. The file is the same for every agent (who may have which grant is srv’s decision on each request, not the file’s), so there is one folder, not one per agent: no agent name is ever a folder name. - mint
- Getting credentials on the host for a grant (spec §7). srv never runs a shell: a recipe is an argument vector, a placeholder is substituted whole into one argument, and the program’s output is parsed and dropped.
- policy
- The AWS grants a host shares with its container agents (
~/.agentmux/aws-grants.json). Spec: docs/specs/SPEC_CONTAINER_AGENT_AWS_CREDENTIALS_2026_10_31.md §6. - record
- What the grants file said when someone last allowed it: the record that makes a change to the file visible and keeps a new or wider grant from working until it is acknowledged.
- request
- One request for credentials, from the checks to the answer (spec §5), with the agent already identified. Everything that can be decided without an HTTP server or a real process is decided here, so it is tested without either.
- sessions
- The sessions srv has minted for container agents, and how often it may mint (spec §8).
- tools
- The host’s private CLIs (
secrets,deploy) for a container agent that has AWS grants.