Skip to content

Secrets ​

Last updated Nov 26, 2026 View as Markdown

A logical secret is a name for where a secret value lives, such as a 1Password item or a command that prints a token. You register it once, then assign it by name to the agent, target, or MCP server that gets the value:

terminal
sh
# register: where the value lives
pandra config secret set github-token --command "gh auth token"
# assign: which agent gets it
pandra config set --agent github.com/acme/reviewer env.GITHUB_TOKEN --secret github-token
text
ran `gh auth token` (40 characters); registered secret github-token
set agents."github.com/acme/reviewer".env.GITHUB_TOKEN = { secret = "github-token" }

The configuration file holds where the value is, never the value:

toml
[secrets.github-token]
command = "gh auth token"

[agents."github.com/acme/reviewer"]
env.GITHUB_TOKEN = { secret = "github-token" }

On another machine, such as in CI, only the source changes; the assignments stay. A registered secret reaches a run only where you assigned it.

Security

An agent also runs as you: it inherits your shell's environment variables, credentials included, and can read your files, so keep a credential you want to hide from an agent out of the environment variables you run it with.

  • Secret stores: register, list, and remove secrets, and what 1Password, Bitwarden, the OS keychain, AWS Secrets Manager, environment variables, files, and commands each need.
  • Giving secrets to agents: assign a secret to a target's credential, an agent's environment variable, or an MCP server's input, see how each value reaches the harness, and supply values in CI and containers.

Released under the Apache License 2.0