pool secrets. Poolside stores local secrets in your OS keychain.
The agent never sees the raw secret value in its context window. Poolside redacts the value from tool output.
How secrets work
1
Store a secret
You store a secret with a name, description, and value.
2
Agent discovers secrets
The agent can find available secret names and descriptions, but never the secret values.
3
Agent references a secret
When the agent needs to use a secret, it creates a reference to the stored secret in the tool argument. You do not need to type the reference or expose the raw value.
4
Runtime resolves the value
Poolside replaces the reference with the actual secret value before the tool executes.
5
Output is redacted
After execution, Poolside scans tool output and replaces the secret value with
⟦SECRET_REDACTED⟧ before the agent sees the output.Manage local secrets
Usepool secrets to manage local secrets in your OS keychain:
add command prompts for the secret value interactively with masked input.
Local secrets have these constraints:
- Name: 6 to 256 characters. Letters, digits, underscores, periods, slashes, and hyphens only.
- Value: 4 to 2,560 bytes.
Use secrets in agent sessions
During an interactivepool session, the agent automatically uses secrets interpolation when it needs to pass a secret in a tool argument. To have the agent use a specific secret, mention the secret by name in your prompt.
For example, the agent might use the following syntax to call the GitHub API. The exact syntax can change between versions:
GitHub API example
Secret approval
When an agent references a secret for the first time, Poolside checks whether to allow it:- Settings allow list: If the secret name matches an entry in
secrets.allowfrom yoursettings.yaml, Poolside auto-approves it. - Session history: If you already approved the secret in this session, Poolside auto-approves it.
- User prompt: Otherwise, Poolside asks you to approve or deny the secret.
Auto-approve secrets
Add secret names to thesecrets.allow list in your settings.yaml to skip approval prompts:
settings.yaml keys, see Settings file reference.
Settings file locations
For more information about settings file locations and precedence, see Permissions.
Redaction
When an agent uses a secret during a tool run, Poolside scans tool output for sensitive values and replaces matches with⟦SECRET_REDACTED⟧ before the agent sees the output. Pattern-based redaction can also apply to text you send to the agent. You can add user redaction patterns or control fallback default patterns in settings.yaml.