Skip to main content

Deploy authentik Agent on Windows

authentik: 2025.12.0+

What it can do​

Supported Windows versions

The authentik Agent is currently only tested on Windows 11 and Windows Server 2025. Other versions may work but are untested.

Windows Credential Provider​

Windows Credential Provider (WCP) is a component of the authentik Agent that allows logging in to Windows workstations using authentik credentials.

It currently only supports local login; RDP login is not supported.

warning
  • When WCP is enabled, the password of the Windows user account that's used to log in is set to a random string.
  • WCP can cause issues with user encrypted directories.
  • Support with Active Directory has not been confirmed yet.
  • Offline login is currently not supported.

Credential provider service account​

When you install WCP, the installer creates a local user account named ak-wcp-browser, and the authentik login window on the Windows login screen runs as this account. The account has the Log on as a service right and is denied interactive, network, and Remote Desktop logons. WCP sets a random password for the account and rotates it. Uninstalling the authentik Agent removes the account.

warning

Don't delete or disable ak-wcp-browser. A Group Policy or security baseline that sets Log on as a service replaces the list of accounts with that right, and can remove ak-wcp-browser from it. Without the right, the authentik login window doesn't open. Add ak-wcp-browser to the policy.

Prerequisites​

  • You must configure your authentik deployment to support the authentik Agent.
  • The device needs the Microsoft Edge WebView2 Runtime. Windows 11 includes it. If it's missing, for example on Windows Server or a custom image, the installer downloads it from Microsoft, and the installation fails if the download fails. On devices without internet access, install the WebView2 Runtime first.

Create an enrollment token​

If you already have an enrollment token, skip to the next section.

  1. Log in to authentik as an administrator and open the authentik Admin interface.
  2. Navigate to Endpoint Devices > Connectors.
  3. Click on the authentik Agent connector that you created when configuring your authentik deployment to support the authentik agent.
  4. Under Enrollment Tokens, click New Enrollment Token, and configure the following settings:
    • Token name: Provide a descriptive name for the token.
    • Device group (optional): Select a device access group to add the device to after enrollment.
    • Expiring (optional): Set whether the enrollment token expires.
  5. Click Create.
  6. (Optional) Click the Copy icon in the Actions column. You need this value to join the device to an authentik domain.

Install the authentik Agent on Windows​

Automated deployment is recommended

It's recommended to deploy the Agent via MDM or automation tools instead of manually configuring it.

  1. Log in to authentik as an administrator and open the authentik Admin interface.

  2. Navigate to Endpoint Devices > Connectors.

  3. Click on the authentik Agent connector that you created when configuring your authentik deployment to support the authentik agent.

  4. Under Setup, click Windows to download the authentik Agent installer.

  5. After the download completes, install the MSI file.

  6. During installation, select the features to install:

    • (Optional) Credential provider: log in to the Windows device with authentik credentials. Refer to Windows Credential Provider.
    • Include CLI in PATH: selected by default. Keep it selected to run ak in a terminal and to use the MCP server.
  7. Confirm that the authentik Agent is installed by opening a PowerShell or Terminal window and entering the following command: ak version

    The output starts with authentik Agent CLI: <version_number>.

Join the device to an authentik domain​

Joining the device to an authentik domain is what enrolls it with your authentik deployment and issues it a device token. This step is required for device compliance features and for local device login.

  1. Open a Terminal session as Administrator and run the following command:
"C:\Program Files\Authentik Security Inc\sysd\ak-sysd.exe" domains join <deployment_name> --authentik-url https://authentik.company
  • deployment_name identifies the authentik deployment on the device.
  • https://authentik.company is the fully qualified domain name of the authentik deployment.
  1. Enter your enrollment token when prompted.
  2. After you enter the token, authentik enrolls the device. The device appears on the Devices page after it checks in.

Enable SSH client authentication and CLI application authentication​

To enable initiating SSH connections and CLI application authentication, the device must be connected to an authentik deployment. To do so, follow these steps:

  1. Open a Terminal session and run the following command:
ak config setup --authentik-url https://authentik.company
  1. Your default browser opens the authentik login page. After you authenticate, the authentik Agent is configured.

Alternatively, open the authentik Agent app and click Add profile.

Check version of installed components​

You can check the version of all installed authentik components by running the following command:

ak version

View logs​

All components of the authentik Agent output logs to the "authentik" log in the Windows Event Viewer.

Report issues​

Please report issues and bugs via the authentik Platform GitHub repository.