AI agent identity: why each agent needs its own credentials
Always-on agents need their own identities and scoped credentials, not your password. How Dots, Muse and Grok Bot handle secrets, and a pattern to copy.
Topics:AI agents in production
The fastest way to set up an AI agent is to log it in as you. It is also the fastest way to make every action it takes indistinguishable from yours, to hand a manipulated agent your full privileges, and to make "turn it off" mean "reset my own password". The alternative is older than AI: give the worker its own identity.
TL;DR
An always-on AI agent should have its own identity, separate from any person, with scoped, short-lived credentials for only the systems its job needs. It should never hold a human's password. Secrets should stay in a broker the agent calls, not in its prompt, memory or browser. This keeps the blast radius small: if the agent is manipulated by a prompt injection or simply makes a mistake, the damage is limited to its narrow role, every action is attributable to it, and revoking it does not lock out a person. The 2026 always-on agents handle this differently; see Dots, Muse, Grok Bot and Gemini Spark compared.
Step 1 of 5
Agent asks
The agent calls a named tool such as crm.update_contact with the contact and fields. It never holds a password, API key or session cookie.
The agent only ever sees tool names and results. The tool server holds the policy and the token.
Why "just log in as me" fails
Agent uses your account
- Every action looks like you, so audit logs cannot tell your decisions from the agent's
- The agent has all your access, including systems its job never needs
- To stop the agent you reset your own password
- A prompt injection gets your full privileges
Agent has its own identity
- Logs say which agent did what, and who approved it
- Permissions are scoped to the agent's job
- You revoke the agent without affecting anyone else
- A manipulated agent can only do what its narrow role allows
An agent is a new kind of worker. Give it the identity of one.
What non-human identity for agents means
A non-human identity (NHI) is an account in your identity provider that represents software rather than a person. For agents it should have:
Step 1: A unique identity per agent
Named for its job ("procurement-agent-emea"), with a human owner
Step 2: Scoped permissions
Read invoices and create draft POs, not "finance admin"
Step 3: Short-lived tokens
Issued on demand, expiring in minutes or hours
Step 4: Separate audit attribution
Logs say "procurement-agent did X, approved by Y"
Step 5: Independent revocation
Switch it off without affecting anyone else
How the 2026 agents handle identity and secrets
The always-on agents launched in 2026 differ in how they separate identities, secrets and runtimes. The main thing to check in any product is whether it shares one computer across all of an account's agents. If it does, per-agent permission is not a security boundary, so treat the whole roster as one identity. The product facts live in one place: see Dots, Muse, Grok Bot and Gemini Spark compared, and the individual guides for OpenAI Dots, Meta Muse and Grok Bot.
The pattern to copy: a secret broker
Do not put credentials where the model can see them. Put a broker between the agent and your systems:
agent ──"call crm.update_contact(id, fields)"──▶ MCP tool server
│
checks agent identity + scope
│
fetches short-lived token from vault
│
▼
CRM API
The agent only ever sees tool names and results. The MCP server holds the policy, gets a token scoped to that one call, and logs the action under the agent's identity. This is also where per-tool rate limits and spend limits belong. If you are new to MCP, read What is MCP?.
Checklist
- One identity per agent, with a named human owner
- Permissions scoped to the agent's job, reviewed quarterly
- Tokens short-lived and issued per task or per call
- No human passwords, API keys or session cookies in prompts, memory or files the agent can read
- Secrets fetched by tool servers from a vault, never by the model
- Every action logged under the agent's identity, with any approver named
- One-click revocation tested before launch
- Browser sessions for computer use live in an isolated profile per agent
Frequently asked questions
Should an AI agent use my password? No. Give the agent its own identity with scoped, short-lived credentials. Using your password gives it all your access, makes audit logs ambiguous and forces you to reset your own account to stop it.
What is a non-human identity? An account in your identity system that represents software, such as an AI agent or service, rather than a person. It has its own permissions, credentials and audit trail.
How do I give an AI agent least-privilege access? Create a separate identity per agent, grant only the permissions its job needs, issue short-lived tokens through a secret broker or MCP tool server, and log every action under that identity.
Do the always-on agents have their own identities? It depends on the product. We keep the current details in one place: Dots, Muse, Grok Bot and Gemini Spark compared.
What is a secret broker? A component between the agent and your systems, such as an MCP tool server with a vault behind it. The agent only sees tool names and results; the broker checks the agent's identity and scope, fetches a short-lived token for that one call and logs the action.
Why must tokens be short-lived? A short-lived token limits what a stolen or misused credential can do and for how long, and forces access to be re-checked against the agent's current scope.
Why does a shared VM break per-agent permissions? Sessions and command-line credentials persist across everything on the VM, so any credential one agent can reach, every agent on it can reach. Treat the whole roster as a single identity.
Related
Sources
- Product sources are listed in Dots, Muse, Grok Bot and Gemini Spark compared and in the individual product guides linked above.
AI agents
Your next step
Reading is the start. Turn it into skill: read the chapter, practise on something real, check the numbers, then follow a path.
More on AI agents in production
- Prompt injection, explained: attacks and defences that holdHow prompt injection works and which defences hold: direct and indirect attacks, why filters fail, least privilege, approvals and red-team tests.
- Meta Muse AI agent explained: how it works and SentinelMeta's Muse runs in a per-user Secure VM while a separate Sentinel agent approves every action. How it works, pricing, and how to copy the guard-agent pattern.
- MCP server security checklist for the 2026-07-28 specA practical MCP security checklist drawn from the official security best practices: confused deputy, token passthrough, SSRF, local servers and scopes.
Discuss this article
Got a question, a counter-example or a correction? Bring it to the community.
Prefer a feed reader? Follow by RSS.