# Sidecar

> widar marks AI output for the EU AI Act and California's AI Transparency Act: an invisible watermark and a signed C2PA credential on text, images, audio and video, in one API, by Bynn Intelligence.

Documentation index: https://widar.com/llms.txt

The examples in these docs use invented companies, such as Lumen Labs B.V., and invented values: none is a real check, mark, signature or certificate.

Section: Mark and sign. URL: https://widar.com/docs/mark/sidecar

The sidecar marks and signs images, audio, video and text on your own servers. Its local API answers as the cloud API does; widar receives only the digest to sign and the finished manifest.

Updated December 3, 2026

## Create an enrolment token

A one-time token enrols the sidecar with one system. It expires after 24 hours or its first use.

```bash
widar enrolment-tokens create sys_4kT9qWm2RbXe --purpose install
```

## Run the sidecar

A container beside your generation service. Its image comes with a widar workspace: [widar's sales team](https://widar.com/contact) provides it. On first start it enrols and receives its plugin key, which it keeps in its own volume.

Docker:

```bash
docker run -d --name widar-sidecar \
  -p 127.0.0.1:8790:8790 \
  -v widar-sidecar:/var/lib/widar \
  -e WIDAR_ENROLMENT_TOKEN=enr_a4dWhi0YOs9H93ZzWj2hX4k5pg8BcAsR \
  "$WIDAR_SIDECAR_IMAGE"
```

Compose:

```yaml
services:
  widar-sidecar:
    image: ${WIDAR_SIDECAR_IMAGE}
    ports: ["127.0.0.1:8790:8790"]
    volumes: ["widar-sidecar:/var/lib/widar"]
    environment:
      WIDAR_ENROLMENT_TOKEN: ${WIDAR_ENROLMENT_TOKEN}
volumes:
  widar-sidecar: {}
```

## Mark through it

Call the sidecar exactly as you would call the cloud API. Moving between the two is a change of address.

```bash
curl -X POST "http://127.0.0.1:8790/v1/markings?system_id=sys_4kT9qWm2RbXe" \
  -H "Content-Type: image/png" \
  --data-binary @output.png \
  -D headers.txt -o marked.png
```

## Who signs

Signing with the sidecar

| Signer | Where the key is | What the sidecar sends widar |
| --- | --- | --- |
| widar's remote signer, the default | widar's HSM-backed key store in the EU | The digest to sign. It receives the signature, the timestamp, the certificate's OCSP response and the chain. |
| Your own key | Your HSM, by PKCS#11 | Nothing to sign. It asks widar's timestamp authority for the timestamp over its signature. |

Either way the sidecar adds the credential to the file and then sends the finished manifest, which holds no content, so a stripped credential can be recovered from the mark. A policy with recovery off sends nothing and keeps nothing.

## When widar cannot be reached

The sidecar never releases a file unsigned unless the policy says fail open. It queues signing for up to 5 minutes, then fails as the policy says, and reports the failure when it reconnects.

## Local API

The sidecar's endpoints

| Call | What it does |
| --- | --- |
| `POST /v1/markings` | Marks, signs and timestamps a file, as the [cloud API](https://widar.com/docs/marking#mark-an-output) does. |
| `POST /v1/verifications` | Checks a file for your systems' marks, as the [API](https://widar.com/docs/verifications) does. |
| `GET /health` | Whether it is enrolled, its version, the latest version and when it last reported. |
