Skip to main content
piloop secret set stores a key. Each agent that starts after it gets the key in its environment, under the secret’s name:
On a terminal, piloop secret set EXA_API_KEY asks for the value and does not show it. No command shows a value. piloop secret rm EXA_API_KEY deletes it. The command goes through the daemon, so start it first.
  • Without --campaign, a secret is the home’s, for every campaign. A campaign’s secret wins over the home’s of the same name.
  • An agent gets only the secrets that its job names: the variables of its role’s MCP servers, and the secrets in its harness’s env.
  • A token with act access sets a campaign’s secrets, and admin access also the home’s. An agent sets the secrets of its own campaign only.
An agent can read the keys in its environment. The home’s database holds the values in plain text: piloop sql cannot read them, but a copy of the database file can.

Model access

[plugins.harness.<name>] env gives the agents of a harness more variables, each a value or a secret. To send Claude Code through a model gateway:
The other keys of the built-in harness stay. Without env, an agent uses the login of the machine that runs it. Codex reads no base URL from its environment. Give it a model provider in config, which piloop passes to Codex as -c flags:
Codex sends the value of the variable that env_key names as its bearer token.