---
title: "AI agents"
description: "How Alpacon governs AI agent access. Agents connect through MCP, act in scoped time-bound sessions, and sensitive actions are approved, with activity recorded."
---

> Full documentation index: https://docs.alpacax.com/llms.txt

# Governed access for AI agents

AI agents now operate real infrastructure—deploying, debugging, running commands. The question is no longer *whether* to give an agent access, but how to keep that access under your control.

Alpacon's answer is the same model it uses for people: **let AI operate your infrastructure under your control.** Most access tools gate *who* gets in. Alpacon governs *what gets executed*—by a person, a CI pipeline, or an AI agent—through the same time-bound, approved, and recorded governance model. Interactive callers act through a [work session](/use/work-sessions/); token-authenticated automation is governed by scoped server allowlists rather than interactive sessions.

## Why agents need more than a key

Handing an AI agent an SSH key or a long-lived token gives it standing, unbounded access. That's the same risk as any static credential, but now in the hands of a non-deterministic actor. If the agent is misled or jailbroken, there is nothing to contain the blast radius.

Alpacon removes standing access for agents the same way it does for people: the agent connects as a governed identity, and every action is scoped, approved where it matters, and recorded.

## Agents are governed identities

An AI agent doesn't get its own backdoor. It acts through an Alpacon identity—either a person it works on behalf of, or an [application](/use/iam/applications/) for automation—so it inherits the same identity, role-based access, and audit trail as a human user.

Agents connect through **MCP (Model Context Protocol)**:

- **Hosted**: point your MCP client at `https://mcp.alpacon.io/mcp` and sign in with OAuth in your browser.
- **Local**: run the Alpacon MCP server yourself (`uvx alpacon-mcp`).

Either way, no SSH keys or VPN credentials are handed to the AI. It works with Claude, Cursor, VS Code, and other MCP-compatible tools.

For setup instructions and the full list of available tools, see the [MCP reference](/reference/mcp/) and [Getting started with MCP](/integrate/mcp/).

## Scope control: the work session

When an agent connects interactively—through MCP with browser sign-in—it opens a **work session**, just like a person does, before it can run a command, transfer a file, or open a terminal. The session declares:

- **Intent**: why the work is happening (for example, "fix nginx 502 on prod-web-1")
- **Scope**: which operations are allowed—web terminal, file transfer, command execution, port forwarding, or privilege elevation
- **Servers**: the specific machines it can touch
- **Expiry**: when access ends automatically

The scope is a hard ceiling. An action outside the session's scope is refused—even privilege elevation, and even for an otherwise-privileged identity. A misled or jailbroken agent cannot exceed what its session was opened for, because there is no standing privilege to fall back on.

Service-token callers—non-interactive automation authenticated with an application token—don't open an interactive session; their access is governed by token scoping and scoped server allowlists instead.

See [Work sessions](/use/work-sessions/) for the full model.

## Real-time control for sensitive actions

Routine work runs within the session's scope. Sensitive actions are gated while they happen:

- **Privilege elevation (sudo)** above low risk, and other high-risk actions, are held for a human approver; a critical one is refused, unless a person approves the command it is written in. The agent waits for the decision—approved or rejected—before the action runs.
- **An agent can't impersonate a person.** Steps that require a human's multi-factor verification can't be satisfied by an agent, so they escalate to a real person instead of quietly proceeding. See [sudo with MFA](/use/work-sessions/terminal/sudo-with-mfa/).
- Every command and transfer is recorded as it runs.

Approval requests reach the right people through the workspace and notifications, so a human stays in the loop for the actions that matter. See [Approvals](/use/approvals/).

Each command an agent sends is also judged before it runs. A command the AI isn't confident about, or one that strays from the session's purpose, waits for a person. See [Session protection](/learn/security/session-protection/) for every check and what happens when Alpacon AI is unavailable.

## One timeline for people and agents

Because people, pipelines, and agents all run through the same work-session model, their activity lands on a single recorded timeline. After a session ends, Alpacon adds an AI risk analysis of what took place.

So when someone asks "what happened on prod-web-1 in the last 24 hours?", the answer is one timeline that mixes human commands, agent actions, and CI runs—not separate, partial logs to stitch together. See [Audit](/use/audit/).

## Next steps

- [How Alpacon works](/learn/how-it-works/) - The work-session model for every actor
- [Zero trust](/learn/key-concepts/zero-trust/) - Why Alpacon removes standing access
- [Applications](/use/iam/applications/) - Identities for automation and AI agents
- [Work sessions](/use/work-sessions/) - Request, scope, and approve access
- [MCP reference](/reference/mcp/) - Setup, tools, prompts, and resources for AI agents

Source: https://docs.alpacax.com/learn/key-concepts/ai-agents/
