> ## Documentation Index
> Fetch the complete documentation index at: https://docs.beacon.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# beacon endpoint enforcement

> Install Beacon's enterprise edition and turn on policy enforcement for the coding agents on a machine

## Overview

`beacon endpoint enforcement enable` turns on [guardrails](https://docs.beacon.sh/cloud/guardrails.md): it installs
Beacon's signed enterprise edition, if the platform this machine is connected to offers it, and
then sets up enforcement for the coding agents on the machine. The open-source build carries no
enforcement of its own. It only fetches, checks and hands over to the enterprise edition.

```bash theme={null}
beacon endpoint enforcement enable
```

It runs on macOS on Apple Silicon, Linux on x86-64 and Arm, and Windows on x64, on a machine
connected to Beacon Cloud with [`beacon endpoint connect`](https://docs.beacon.sh/cli/endpoint-connect).

## User mode or system mode

How you run it depends on how Beacon was installed:

| Install | Run it | Where the enterprise edition goes |
| - | - | - |
| User mode (the default, and Homebrew), connected with `beacon endpoint connect` | Without `sudo`; on Windows, from a PowerShell that is not elevated | Only its `beacon` binary, kept in `~/.beacon/endpoint/enterprise` (`%USERPROFILE%\.beacon\endpoint\enterprise` on Windows). Enforcement is on for you. |
| System mode (the package, MDM or `--system`), connected with `beacon endpoint connect --system` | With `sudo`; on Windows, from an elevated PowerShell | Installed over the public package, in `/opt/beacon` or `%ProgramFiles%\Beacon`. Enforcement is on for the machine. |

Run the other way, `enable` stops and prints the command to run instead. On a machine connected
in system mode, nobody may also run a user-mode Beacon; `enable` checks for one and says how to
stop it.

## What it checks

`enable` installs nothing it cannot verify:

* **macOS:** the package must match its checksum, be signed by Beacon's Apple Developer team and
  pass Gatekeeper. In user mode only the `beacon` binary is taken out of the package; its
  installer never runs.
* **Linux and Windows:** the package must be listed in a `checksums.txt` signed by Beacon's
  pinned release key (see [Release signing](https://docs.beacon.sh/platforms/linux.md#release-signing)). Linux checks it
  with `gpgv` or `sqv`; Windows checks it in the CLI itself.
* **Every platform:** the installed binary must report the expected version and the enterprise
  edition. A system install that fails is rolled back to the public package of the version that
  was installed.

## After it is on

The enterprise edition adds `status`, `update` and `disable`. Run them the same way you ran
`enable` (with or without `sudo`):

```bash theme={null}
beacon endpoint enforcement status
beacon endpoint enforcement update
beacon endpoint enforcement disable
```

In user mode, running `enable` again also updates the enterprise edition. Agent sessions that
were already open don't pick up enforcement; start a new one.

## Flags

| Flag | Description |
| - | - |
| `--dashboard-url <url>` | Ask this platform for the enterprise edition instead of the one the machine connected to. |

## Related

> [card] [Guardrails](https://docs.beacon.sh/cloud/guardrails.md)
>
> Write the policies enforcement applies.

> [card] [beacon endpoint connect](https://docs.beacon.sh/cli/endpoint-connect.md)
>
> Connect the machine to Beacon Cloud first.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.