AGENT INFRASTRUCTURE

How to authenticate an always-on AI agent without sharing an admin login.

A practical framework for AI agent identity, delegated access, scoped credentials, revocation, approvals, and reliable background CRM work.

A bounded central gateway connects to individually separated service nodes.
Connected tools. Deliberate access. Concept illustration.

Always-on describes operation, not unlimited authority

A background agent may prepare account briefs, detect unresolved commitments, or draft tasks while nobody is at the keyboard. It still needs a named owner, a defined job, and boundaries on what it may read and change.

“Always-on” should mean that the operating system can resume permitted work reliably. It should not mean that a model has permanent administrator access, that approval is no longer required, or that access survives a person leaving the company without review.

Choose the identity model deliberately

Some workflows act on behalf of a person through a delegated grant. Others use a dedicated workload identity for a business-owned service. The correct choice depends on the system’s supported authorization model and who owns the work. Do not use a shared human administrator account as a substitute for deciding.

Document the responsible organization, allowed tools, record visibility, credential owner, and revocation process. When a person sponsors a delegated connection, define what happens when their membership or role changes. When a service owns the work, define who may administer it and how that authority is reviewed.

Identify the agent, authorize its resource and action, apply review requirements, and record an observable result.
Identify the agent, authorize its resource and action, apply review requirements, and record an observable result.

Separate authentication, authorization, and approval

Authentication establishes the caller’s identity. Authorization determines which resources and operations that caller may use. Approval is a further business control over a proposed action. A successful login establishes neither unrestricted data access nor permission to send a message.

For a renewal workflow, an agent might read approved account records and draft a task. Changing a commercial commitment or communicating externally may require separate authority and human review. Enforce those distinctions in the service handling the operation, not only in the agent’s prompt.

  • Identity: which person or service is making this request?
  • Resource: which organization and records are in scope?
  • Operation: is this a read, a draft, a write, or an external action?
  • Review: does the specific action require approval?
  • Evidence: can an operator inspect the request and its outcome?

Use a supported credential lifecycle

Where OAuth refresh tokens are used, follow the authorization server’s documented lifecycle and current OAuth security guidance. RFC 9700 calls for replay protections for public-client refresh tokens, using sender-constraining or rotation. Protect stored credentials and plan for revocation.

Where a platform supports service credentials, use the supported workload mechanism with bounded permissions and an operational rotation process. The right mechanism varies by provider and client type. Never infer that keeping an ordinary browser session alive is the supported design for unattended access.

Source: IETF RFC 9700: OAuth 2.0 security best current practice ↗

Keep credentials tied to their intended resource

OAuth resource indicators provide a way for a client to identify the protected resource it is requesting access to. This matters when an agent works across several services: a credential intended for one service should not become an informal universal pass.

For protected remote MCP services, use the authorization flow supported by the server and client. Review transport, resource, and consent requirements instead of assuming that any token accepted somewhere can be forwarded everywhere.

Source: IETF RFC 8707: OAuth resource indicators ↗

Source: MCP authorization specification ↗

Test revocation and recovery before trusting the agent overnight

Run the workflow, revoke its grant or credential, and verify that the next protected operation is denied. Then restore access through the supported process and check that the agent resumes from a safe checkpoint. If a role changes, test the resulting permissions rather than relying on the old session.

Also interrupt the workflow after a write. The operator should be able to determine whether the action happened and whether retrying is safe. Use durable task state, bounded retries, and duplicate-prevention mechanisms appropriate to the operation. These are reliability design choices, not properties a language model supplies.

An agent is operationally ready when its owner can explain what it can do, stop it, inspect what it did, and recover from an interrupted run. Passing a login screen is only the beginning.

A Deepwater example

Deepwater treats agents as identifiable participants with scoped access and configured approval controls rather than assuming they should share a human administrator’s authority. The exact connection method, supported tools, and operating rules need confirmation for your deployment. The same tests of revocation, denied access, and interrupted work should be part of acceptance.

A LITTLE MORE CONTEXT

Common questions

Should an always-on agent have its own account?

It needs an explicit identity or delegated grant supported by the platform. A dedicated service identity can be appropriate for business-owned work; a delegated user grant fits work performed on a person’s behalf. Avoid shared administrator logins.

Does always-on require a permanent access token?

No. Unattended operation can use a supported renewal or workload-credential process. The design should support bounded permissions, revocation, and appropriate credential protection.

What should happen when the agent’s access is revoked?

Subsequent protected operations should be denied, the operator should see a clear access failure, and the agent should stop or pause affected work. Resumption should follow a supported reauthorization process.

Make the next connection.

Discuss your Deepwater rollout ↗Deepwater is in private beta. Access, implementation, and commercial terms are agreed for your rollout.