Key takeaways
- Requests name a secret as {{secret:NAME}}. The node fills it in, and the app and agent never see the value.
- Outbound calls go only to HTTPS prefixes declared in the signed release and approved by the app's organization.
- Agents use scoped API keys. Risky methods can require a fresh human passkey confirmation that an API key can't produce.
Why are agent credentials hard to secure?
An agent needs real credentials: an email API, a CRM token, a model provider key. In most stacks those sit in an environment variable or a vault the agent's process can read. Anything that can read them can leak them, whether through a prompt injection, a log line or an over-eager tool call.
The fix isn't a better hiding place. It's making sure the agent never holds the credential at all.
How can an agent use a key it never sees?
On Calimero Network, the agent's backend logic runs as an app inside attested nodes. When it calls an outside service, it names the secret as{{secret:NAME}} in a header or the body. The node fills in the value from the operator's secrets for this app only, and only into a request to a host that secret is bound to.
- Any copy of the secret in the response is replaced with
[redacted]before the app sees it. - So a method can't write the secret into state, where it would be replicated.
- The signed release declares which secrets it uses and which hosts each may go to, so whoever deploys it sees exactly what it asks for.
How do you stop an agent calling the wrong service?
Every outbound request has to pass several gates:
- The operator enables outbound and lists the allowed hosts.
- The URL must fall under a prefix declared in the app's signed manifest.
- That prefix must be approved by the app's organization owner or admins.
- The node enforces the rest: HTTPS on port 443 to public addresses only, one request per call, no redirects followed, and size and 10-second time limits.
NotApproved. Multi-step work runs as actions under the same gates.
How do humans stay in the loop?
The agent itself signs in with an API key scoped to specific apps and methods, optionally read-only, with a lifetime you choose. For anything that moves money or deletes data, mark the method#[app::confirm]. It then needs a fresh passkey confirmation from a person. An API key can carry that confirmation but can never create one.
Every call returns a receipt signed by an attested key, so you can later prove what the agent did and which code did it.
What does this not solve?
Calimero Network controls what an agent can reach and what it can see. It doesn't make the model's decisions correct. Keep approved prefixes narrow, keep API key scopes tight, and put confirm methods on anything irreversible.
Frequently asked questions
Can a prompt injection make the agent leak its API key?
Not the key itself. The app never holds the secret: the node fills it into approved requests and redacts it from responses, so there is no value in state for the agent to reveal.
Can the agent call any URL?
No. Outbound requests must match an HTTPS prefix declared in the signed release and approved by the app's organization, and the operator's host allowlist.
How do I require human approval for an agent action?
Mark the method #[app::confirm]. It then needs a fresh passkey assertion from a person, which an API key cannot produce.
