The AI agent lifecycle is how an organisation starts, changes and retires each agent's identity and access.
This guide is for anyone who adds AI agents at work, or looks after who has access to what. You do not need to code. It uses the joiner, mover, leaver idea you may know from staff, and applies it to agents.
In short
- AI agents are non-human identities. Each one needs its own identity, an owner and limited access.
- Onboarding means approving the agent, giving it an identity and only the access its job needs.
- When its job changes, review its access. When it is no longer needed, remove its access and credentials.
- Agents left running after their job ends are a real risk, because nobody watches them.
What you will learn
- Explain why agents need a lifecycle, just like staff.
- List the steps for starting, changing and retiring an agent.
- Spot signs of a forgotten or orphaned agent.
- Run a simple check of the agents you already have.
- Starting up (onboarding)
- approving a new agent and giving it an identity and access.
- Changing role (mover)
- when an agent's job grows, shrinks or moves to a new team.
- Retiring (offboarding)
- removing an agent's access and credentials when it is no longer needed.
What is the AI agent lifecycle?
Think of a new member of staff. They get a badge, a manager and access to the systems they need. When they change team, their access changes. When they leave, the badge is handed back.
AI agents need the same care. An agent is software that acts for people, using its own access. That makes it a non-human identity, with an identity and rights of its own.
Security standards already ask for this kind of care for every account. They ask organisations to name an account manager, require approval to create accounts, and remove accounts that are no longer needed [2].
Where the comparison stops working: staff have an HR record that tells IT when they leave. Agents often do not. Someone has to decide, and record, when an agent's job is over.
For the general idea across all software identities, see NHI Lifecycle Management for Beginners. This page focuses on AI agents.
Why does it matter?
Agents are easy to start and easy to forget. A forgotten agent may still hold keys to important systems. A leading security community ranks poor offboarding first among risks to software identities [1].
If you set up AI agents
What could happen: a trial agent is never switched off and keeps its access for months.
Check this: give every agent an owner and an end or review date when you create it.
If you manage a team
What could happen: the person who built an agent leaves, and nobody else knows it exists.
Check this: make agents part of your leaver checklist.
If you are new to identity work
What could happen: an agent is switched off, but its key still works.
Check this: confirm that retiring an agent also cancels its credentials.
What does it look like?
Here is a made-up record for one AI agent in an agent register. It shows the facts each agent should have.
Example only. All values are made up.
Agent record: EXAMPLE-invoice-agent Owner: FAKE-person (Finance) (1) Purpose: match invoices to orders (2) Identity: agent-0000 (own, not shared) (3) Access: read invoices, read orders (4) Review date: 0000-00-00 (5) Status: active
- A named person who answers for the agent.
- Why the agent exists. When the purpose ends, the agent should too.
- In a real file, this line would contain the agent's own identity in your systems, not a shared account.
- Only the access its job needs.
- When someone must check that it is still needed.
Why this is risky: without an owner or review date, nobody will notice when this agent is no longer needed.
The safer way: keep a record like this for every agent, and review it on a schedule [1][2].
How does it work?
- Ask and approve. Someone asks for a new agent. A named person says yes [2].
- Give it its own identity. It gets its own identity, an owner and only the access its job needs.
- Watch and review. Someone watches what it does and checks its access on a schedule [2].
- Handle changes (mover). If its job or owner changes, update its access and hand it to the new owner [1].
- Retire it (leaver). When the job ends, remove its access and cancel its keys [1].

OWASP describes how software identities get left behind. Services are retired but their identities stay active, or the owner leaves and nobody takes over [1].
OWASP's advice includes reviewing identities linked to people who leave, handing them to new owners, and changing any credentials the leaver could see. It also suggests linking HR systems to identity tools, and regular checks [1].
The US National Cybersecurity Center of Excellence has a project on how existing identity standards apply to software and AI agents [3]. Practice in this area is still developing.
A worked example
This story is made up to show the idea.
Kaia Dube leads IT at a mid-sized charity. Over the past year, staff have set up several AI agents to help with grants, rotas and donor emails.
Kaia decides to make a simple agent register. She asks each team to list its agents, who owns them and what they can reach.
She finds seven agents. Two were trials from last spring. One belongs to a developer who left in the summer. It still holds a key to the donor database.
Kaia treats the leaver's agent first. She checks whether anyone still uses it. Nobody does, so she turns it off and cancels its key. She also changes a password the developer could see.
Next she retires the two trial agents in the same way. For the four agents still in use, she names an owner and sets a review date.
Finally, she adds two lines to the charity's processes. New agents need her approval and a register entry. The leaver checklist now asks "Do you own any agents?"
Kaia learned that agents are easy to create and easy to forget. Treating them like staff gave each one a clear start, owner and end.
Myths and mistakes
| What people think | What is true |
|---|---|
| Switching an agent off is the same as retiring it. | Its keys and tokens may still work. Cancel its credentials and remove its access too [1]. |
| An agent belongs to whoever built it. | When that person leaves, its ownership must be handed over, or the agent is orphaned [1]. |
| Only IT needs to know when an agent is no longer needed. | Standards ask that account managers are told when an account is no longer required, so it can be removed [2]. |
| Our staff leaver process already covers agents. | Agents have no HR record. Add a step that asks leavers about agents they own. |
| Once set up, an agent's access never needs a check. | Accounts should be reviewed on a schedule and their use monitored [2]. |
What can I do this week?
- Ask each team to list the AI agents it uses.
- Write down an owner and a purpose for each one.
- Switch off any agent nobody uses, and cancel its keys.
- Set a review date for every agent that stays.
- Add "Do you own any AI agents?" to your leaver checklist.
Checklist
- Every agent has its own identity, not a shared account.
- Every agent has a named owner and a written purpose.
- New agents need approval before they get access.
- Each agent has only the access its job needs.
- Agent access is reviewed on a schedule.
- When an owner leaves, their agents get a new owner or are retired.
- Retiring an agent cancels all its keys and tokens.
Common questions
Why treat AI agents like staff?
Because they act with their own access, much like a member of staff. The joiner, mover, leaver idea is a familiar way to make sure access starts, changes and ends at the right time. It just needs a few extra steps for agents.
What is an orphaned agent?
It is an agent with no owner. This often happens when its creator leaves. OWASP warns that software identities left without an owner stay active and can be misused [1]. Nobody notices odd behaviour, and nobody retires it.
What should happen to an agent's data when it is retired?
Ask the owner what the agent stored, such as memory, logs or files. Keep what your records rules need, and delete the rest. Keep the logs of what it did, so you can look back if needed.
How is this different from NHI lifecycle management?
It is the same idea, applied to AI agents. Agents add new questions, such as who they act for and what tools they can call. Our NHI lifecycle guide covers service accounts, keys and other software identities too.
Where next?
Ready for the detail? Read the practitioner guide: AI Agent Lifecycle Management Guide. It covers each stage of the agent lifecycle and its controls in depth.
Also useful:
- NHI Lifecycle Management for Beginners
- Joiner, Mover, Leaver for Beginners
- AI Agent Identity for Beginners
- OWASP NHI Top 10 NHI1 Improper Offboarding Guide
Related NHI Mgmt Group resources: NHI Ownership for Beginners, AI Agents for Beginners and AI Agent Audit Trails for Beginners.
Key terms
- Agent onboarding
- Registering a new AI agent: giving it its own identity, a named owner and only the access its task needs.
- Agent offboarding
- Retiring an AI agent: removing its access, cancelling its credentials and updating the records.
- Joiner-mover-leaver lifecycle
- The access changes that should happen when an identity is created, changes role or leaves.
- Orphaned NHI
- A non-human identity that stays active without a clear owner, purpose or plan to retire it.
- Improper offboarding
- Failing to switch off or remove software identities and their keys when they are no longer needed.
- Non-human identity (NHI)
- A digital identity used by software, such as a service account, API key, bot or AI agent, not by a person.
Sources and further reading
- OWASP Non-Human Identities Top 10, "NHI1:2025 Improper Offboarding". https://owasp.org/www-project-non-human-identities-top-10/2025/1-improper-offboarding/ (accessed 1 Dec 2026).
- NIST, SP 800-53 Rev. 5, "Security and Privacy Controls for Information Systems and Organizations", control AC-2 Account Management. https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final (accessed 1 Dec 2026).
- NIST National Cybersecurity Center of Excellence, "Software and AI Agent Identity and Authorization" project. https://www.nccoe.nist.gov/projects/software-and-ai-agent-identity-and-authorization (accessed 1 Dec 2026).