---
title: "How Alpacon works"
description: "See how Alpacon connects servers, grants time-bound access to people and automation, and records work. Start with this model before choosing a setup guide."
---

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

# How Alpacon works

<span id="introduction" />
<span id="architecture" />

# How Alpacon works

<span id="what-is-alpacon" />
<span id="overview" />

Alpacon gives people, pipelines, and AI agents a way to work on servers with access that is requested, decided, time-bound, and recorded. A request can be approved by a person or allowed by a workspace rule.

The console groups work into **ACCESS**, **EXECUTION**, and **AUDIT**. This page explains how those parts fit together.

<span id="architecture-overview" />
<span id="outbound-only-agents" />
<span id="registering-a-server" />
<span id="defense-in-depth" />
<span id="availability" />

## How servers connect

Alpamon makes an outbound connection from each registered server to Alpacon. Your team can reach a server without opening an inbound SSH port to the internet. The server still needs outbound HTTPS access to its workspace; a firewall or proxy may need an allowlist. See [Configure network access](/use/servers/configure-network/) for the destinations and [Supported platforms](/reference/platforms/) before installing the agent.

Every connection uses TLS, and the outbound-only agent works behind NAT.

If the connection drops, the agent reconnects. The server itself keeps running through a platform interruption. New access and decisions may wait until service returns; [Platform security and availability](/learn/security/platform/) and [status.alpacax.com](https://status.alpacax.com) explain what you can expect.

<span id="how-access-works" />
<span id="access-is-requested-not-standing" />
<span id="security-principles" />
<span id="zero-trust" />

## No standing access: the work session

A [work session](/use/work-sessions/) is a time-limited, approved grant of access to one or more servers. Instead of connecting whenever you want, you:

1. **Request** a session that says which servers you need, what you'll do (terminal, file transfer, commands, and so on), and for how long.
2. An approver **approves** it. Your workspace's access rules name the approvers, and by default they are the workspace's Superusers (a Superuser's own sessions are approved automatically).
3. You **use** the approved tools until the session **expires** or you end it.

This keeps access scoped to the task and the time window. See [Request a session](/use/work-sessions/create/) to try it, and [How access is decided](/learn/how-access-is-decided/) for the rules behind each outcome.

<span id="how-you-connect" />
<span id="connect-as-yourself" />
<span id="identity-and-access-management-iam" />
<span id="one-place-for-identities" />
<span id="passwordless-system-accounts" />

## The account you connect as

By default, a session runs as your own account. On Linux and macOS, your Alpacon identity is your identity on the server, so file ownership and sudo resolve to **you**.

When the work needs another account, pick it under **Connect as** when you request the session: `root`, when your workspace allows direct root login, or an account found on the servers, such as a shared or service account. On Linux and macOS, the session then runs as that account. On every operating system, the audit trail records both you and the account you connected as, and the form tells you when an account can't be used.

On **Windows**, the selected account is an audit label only: commands run as SYSTEM, so access is governed by your Alpacon roles rather than by the account shown. See [Windows servers](/reference/platforms/windows/#permissions-and-identity-on-windows).

Access is managed centrally through [IAM](/use/iam/) users and groups, so changing or removing someone's access happens in one place. See [Account selection](/use/work-sessions/account-selection/) for the details.

<span id="stronger-sign-in" />

## MFA at the moments that matter

Alpacon asks for multi-factor authentication when it needs to confirm a person is present, not on every command. One verification covers your sessions for a set time window, and sensitive actions like connecting as an account other than your own or running privileged commands can require a fresh step-up.

This is why `sudo` in a terminal can prompt for verification the first time and then run uninterrupted for a while. See [sudo with MFA](/use/work-sessions/terminal/sudo-with-mfa/) and your [security settings](/use/settings/security/).

<span id="audit" />
<span id="what-you-get" />
<span id="what-each-entry-captures" />

## Session records and review

Work sessions bring commands, file transfers, sudo grants, and terminal recordings into a timeline. After a session ends, Alpacon can add an **AI risk analysis** that summarizes recorded activity and flags notable actions. [What Alpacon checks](/learn/security/what-alpacon-checks/) describes the limits of those checks.

The audit trail captures five fields: who, when, where, what, and why.

That means audit isn't a separate system you have to stitch together by hand. See [Audit](/use/audit/) and [After a session](/use/audit/sessions/review/).

## Where you'll find these

The sidebar groups everything into three stages:

- **ACCESS**: where work starts: [Work sessions](/use/work-sessions/), [Servers](/use/servers/), and [IAM](/use/iam/).
- **EXECUTION**: where requests are decided and running sessions are watched: [Pending approvals](/use/approvals/) for requests awaiting a decision, and [Live activity](/use/live-activity/) to watch active sessions.
- **AUDIT**: where you review after the fact: [Session history](/use/audit/sessions/) replay, plus Events and Governance.

A single session flows through all three: you request it (ACCESS), an approver decides it and it can be watched while it runs (EXECUTION), and it's recorded and analyzed for later review (AUDIT).

<span id="for-people-and-for-automation" />
<span id="-people" />
<span id="-automation-and-ai-agents" />
<span id="if-youre-coming-from-ssh" />
<span id="automation-and-integrations" />
<span id="cli-example" />
<span id="rest-api-example" />
<span id="built-for-people-and-agents" />

## People and automation

Engineers can open Websh in a browser, share a session for troubleshooting, and move files with WebFTP. They do not need to distribute SSH keys to each server. The [quickstart](/learn/quickstart/) takes one person from a workspace invitation to a first server connection.

Automation uses scoped credentials for the work it needs. GitHub Actions has published Alpacon actions; other CI tools can use the CLI or REST API. AI agents can connect through MCP. Each path has its own setup guide: [GitHub Actions](/learn/tutorials/github-actions-setup/), [REST API](/integrate/rest-api/), and [MCP](/integrate/mcp/). The [CLI tutorial](/learn/tutorials/cli/) runs a first command inside a work session. See [Tokens](/reference/tokens/) for credential types and [Governed access for AI agents](/learn/key-concepts/ai-agents/) for the agent model.

Your Alpacon identity remains visible in the record even when you connect as another server account. Workspace roles, groups, and server assignments determine which servers you can request; a work session determines when and how you can use them. [Key concepts](/learn/key-concepts/) explains these terms, and [Authentication and access](/learn/security/authentication/) covers sign-in and MFA options.

<span id="who-uses-alpacon" />
<span id="-software-engineers" />
<span id="-devops-engineers" />
<span id="️-security-teams" />
<span id="-it-managers" />

## What each team can do

- **Engineers** can use Websh's interactive terminal with vim, colors, and special keys, share a live session for troubleshooting, and drag files through WebFTP. A session can cover more than one server for a maintenance task.
- **Operations teams** can register servers, monitor their connection status, receive connection alerts, and use groups to organize access. The [registration guide](/use/servers/register/) starts with one server; [server management](/use/servers/manage/) covers ongoing work.
- **Security teams** can review who requested access, when and where a session ran, what tools were used, and the recorded activity. The [session history](/use/audit/sessions/) and [security guides](/learn/security/) explain the available evidence and its limits.
- **Workspace administrators** can invite teammates and change their access through IAM. [Set up your workspace](/learn/admin-setup/) walks through the initial steps.

If you are replacing direct SSH access, compare the tasks and network requirements in [Migrating from SSH](/use/servers/migrate-from-ssh/). For help, see the [FAQ](/learn/faq/) or email support@alpacax.com.

<span id="getting-started-in-3-steps" />
<span id="step-1-register-a-server" />
<span id="step-2-request-a-work-session" />
<span id="step-3-work" />
<span id="questions" />

## Next steps

- [Request a session](/use/work-sessions/create/)
- [Work sessions overview](/use/work-sessions/)
- [AI agents](/learn/key-concepts/ai-agents/)
- [Account selection](/use/work-sessions/account-selection/)
- [Audit overview](/use/audit/)

Source: https://docs.alpacax.com/learn/how-it-works/
