AI Agent Identity: Why Every Agent Needs Its Own Credentials (Not Your Password)
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. In 2026, OpenAI's specialist Dots get their own identities, Meta's Muse never sees passwords, and xAI's Grok Bot keeps secrets with the human but shares one VM across all of an account's bots.
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
| Agent identity | Secrets | Isolation | |
|---|---|---|---|
| OpenAI Dots | Specialist Dots get their own identities, credentials and tools; Agent 365 integration in progress | Sensitive actions such as password changes need the user | Own cloud computer per Dot |
| Meta Muse | Acts for the user through connected apps | Never sees passwords or payment methods; Link for payments; 1Password support coming | Per-user Secure VM plus Sentinel |
| xAI Grok Bot | Bots act through the account's sessions | Passwords, passkeys, 2FA and payments stay with the human; "secure secret request" | One shared VM per account; no boundary between bots |
The Grok Bot row is the one to think about. Because sessions and command-line credentials persist across all bots on an account, per-bot permission is not a security boundary. Treat the whole roster as one identity.
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 OpenAI Dots have their own identities? OpenAI's specialist Dots for businesses are provisioned with their own identities, credentials and tools for a specific role, and OpenAI says it is integrating with Microsoft's Agent 365 security controls.
Is it safe to give Grok Bot my logins? Be cautious. xAI's documentation says all bots on an account share one VM, so any login one bot uses is available to every bot on the account.
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
- OpenAI launches Dots (TechCrunch): specialist Dots and Agent 365
- Introducing Muse (Meta): credential separation
- Grok Bot: xAI's AI teammates get their own computer (Digital Applied): shared VM and secret handling
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, Pricing and the Sentinel Safety ModelMeta'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.
- Review an AI Agent's Approval Policy in 10 Minutes with an AI SkillPaste your agent's tool list into a free AI skill and get a risk-tiered approval review, ranked findings and tests, with a real example run and install steps.
Discuss this article
Got a question, a counter-example or a correction? Bring it to the community.
Prefer a feed reader? Follow by RSS.