Skip to content

Command Palette

Search for a command to run...

BLOG / AI AGENTSAdvanced

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.

Bhavin Mistry October 7, 2026 10 min readLast reviewed

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
Sharing your login versus giving the agent its own identity

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:

  1. Step 1: A unique identity per agent

    Named for its job ("procurement-agent-emea"), with a human owner

  2. Step 2: Scoped permissions

    Read invoices and create draft POs, not "finance admin"

  3. Step 3: Short-lived tokens

    Issued on demand, expiring in minutes or hours

  4. Step 4: Separate audit attribution

    Logs say "procurement-agent did X, approved by Y"

  5. Step 5: Independent revocation

    Switch it off without affecting anyone else

Five properties of an agent identity

How the 2026 agents handle identity and secrets

Agent identitySecretsIsolation
OpenAI DotsSpecialist Dots get their own identities, credentials and tools; Agent 365 integration in progressSensitive actions such as password changes need the userOwn cloud computer per Dot
Meta MuseActs for the user through connected appsNever sees passwords or payment methods; Link for payments; 1Password support comingPer-user Secure VM plus Sentinel
xAI Grok BotBots act through the account's sessionsPasswords, 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.

Sources

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.

  1. Read · ChapterAgent Loops
  2. Practise · Debug challengeThe Agent That Wouldn't Stop
  3. Use a free toolAI ROI Calculator
  4. Follow a roadmapAgentic AI Engineer roadmap
All articles on AI agents in production
#AI agent identity#non-human identity#least privilege#AI agent security#credentials#OAuth

Discuss this article

Got a question, a counter-example or a correction? Bring it to the community.

Join the discussion

Email updates

Enjoyed this? Get the next guide by email.

One email when something substantial is published. No digests, no daily drip. Unsubscribe in one click.

We will email you a confirmation link first, then send an occasional email when a substantial guide is published. Unsubscribe in one click. Stored on our own servers, never sold or shared. See the privacy policy.

Prefer a feed reader? Follow by RSS.