Updated on November 2, 2026
Enrollment-on-first-use (EOFU) is a way to bring a new AI agent into a system without setting up its identity ahead of time. Instead of an admin pre-registering every agent before it runs, the agent enrolls itself the moment it tries to connect. That first connection becomes the moment of trust. From then on, the system recognizes the agent using the credential it received during that first contact.
This pattern borrows from an older security idea called trust on first use (TOFU). You may know TOFU from SSH, where your computer accepts a server’s host key the first time it connects, then flags any change to that key later. Enrollment-on-first-use applies the same logic to AI agents. You skip manual setup, and you accept some risk in exchange for speed.
For you, an IT admin managing a growing number of AI agents, this matters because agents don’t behave like human employees or even like typical service accounts. They spin up fast, they can outnumber your human workforce within weeks, and they often need access the moment they’re created. Enrollment-on-first-use gives you a way to onboard them without a person clicking “approve” for every single one.
Technical Architecture and Core Logic
An enrollment-on-first-use system has a few core parts working together. First, you need an enrollment endpoint. This is the service an agent contacts when it starts up for the first time. Second, you need a bootstrap credential. This is a short-lived token, secret, or key that proves the agent has permission to enroll at all. Third, you need an identity store, sometimes called an agentic registry, where the agent’s identity record lives once it’s created.
When an agent presents its bootstrap credential for the first time, the enrollment endpoint checks it against policy. If the credential is valid, the system treats this as proof enough to create a permanent identity for the agent. That identity then gets tied to a longer-lived credential, such as a certificate or API key, which the agent uses for every future request.
The core logic depends on treating that first contact as trustworthy. This works because AI agents, unlike humans, are first-class identity primitives with their own lifecycle. Your agents shouldn’t be lumped in with generic resources or leftover service accounts. Each one needs its own identity, its own credential, and its own audit trail from the moment it enrolls.
Mechanism and Workflow
The enrollment-on-first-use workflow follows a repeatable sequence. An agent is deployed with a bootstrap token embedded at build time or injected by an orchestration tool. When the agent starts, it sends that token to the enrollment service. The service validates the token’s signature, checks whether it has expired, and confirms it hasn’t already been used.
Once validation passes, the system moves through these steps:
- Identity creation: the enrollment service creates a new record in the identity store, capturing the agent’s name, purpose, and any metadata tied to it.
- Credential issuance: the service issues a longer-lived credential, replacing the temporary bootstrap token.
- Policy binding: the new identity gets tied to a role or permission set, often scoped through just-in-time access for agents so it only gets the access it needs when it needs it.
- Registration: the agentic registry logs the enrollment event for future reference.
After this first exchange, the agent uses its new credential for every future request. The system no longer treats the agent as unknown. It checks the credential against the identity record created during enrollment, rather than repeating the enrollment process each time.
Use Cases
Enrollment-on-first-use fits situations where agents get created faster than a human team can manually register them. You’ll see it in autoscaling environments, where an agent provisioning system spins up dozens or hundreds of short-lived agents to handle a workload spike. Manually enrolling each one isn’t realistic, so the agents enroll themselves on their first run.
It also shows up in edge and distributed deployments, where agents run on devices or in environments that aren’t always connected to a central admin console. Enrollment-on-first-use lets these agents join the system the moment they come online, rather than waiting for a batch process.
CI/CD pipelines are another common fit. A pipeline might spin up a temporary agent to run a task, then tear it down minutes later. Enrollment-on-first-use gives that agent an identity for its short life without requiring pre-registration for something that only exists briefly.
Limitations
Enrollment-on-first-use trades some security for speed, and you should go in with your eyes open about the trade-off. The biggest risk is the enrollment window itself. If an attacker gets hold of a valid bootstrap token before your legitimate agent uses it, the attacker’s agent enrolls instead, and the system has no way to tell the difference. This mirrors a known weakness in TOFU-based systems: whoever shows up first gets trusted.
Scaling also introduces friction. Enrollment-on-first-use works well when bootstrap tokens are tightly controlled and short-lived. If your team reuses tokens or lets them stay valid too long, you widen the window for abuse. Revocation gets harder too. Once an agent has enrolled and picked up a long-lived credential, you need a clear process to revoke that credential if the agent turns out to be compromised or malicious.
Finally, enrollment-on-first-use doesn’t replace attestation. It tells you an agent successfully completed enrollment, not that the agent is behaving the way you expect. You still need ongoing monitoring, credential rotation, and scoped permissions to catch problems after enrollment.
JumpCloud treats AI agents as a distinct identity type alongside humans and devices, giving you visibility into how and when each agent enrolls.
Key Terms Appendix
- Trust on first use (TOFU): a security pattern where a system accepts a credential or key the first time it appears, then treats any later mismatch as suspicious.
- Bootstrap credential: a short-lived token or secret an agent uses to prove it has permission to enroll before it receives a permanent identity.
- Identity primitive: a distinct entity type, such as a human, device, or agent, that a system tracks and secures on its own terms.
- Credential rotation: the practice of replacing an active credential with a new one on a schedule, reducing the risk of a stolen credential staying valid indefinitely.
- Attestation: a process where a system verifies an agent’s identity or state through evidence, rather than trusting it based on a single past event.