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

# Troubleshooting

> Fix common Shadow AI problems, traffic not intercepted, browser QUIC/HTTP-3 bypass, cert-pinned apps, engine unreachable, and how to collect support logs.

Most issues come down to one of a handful of causes. Start with `pgshadow doctor`,
then work down this list. The `pgshadow` tool lives inside the app and isn't on
your `PATH` on macOS or Windows; see
[Command line](https://docs.promptguard.co/shadow-ai/desktop-agent.md#command-line) for where it is.

## Traffic isn't being intercepted

If prompts pass through with no verdicts showing up, the agent isn't seeing the
traffic. Check, in order:

**1. Confirm the app is running and the agent is healthy**

The agent checks AI traffic only while the PromptGuard Shadow app is
running (unless your organization set `headless: true`), so open it first.

```bash theme={"system"}
pgshadow doctor
```

This checks the proxy, the route, certificate trust, each AI host through
the proxy, the engine and the enrollment, and prints a fix for each failure.
`pgshadow status` is the quick read-only version: certificate trust, which
network services route to the agent, and whether the proxy is up.

**2. Confirm the route is in place**

Turning protection off and back on in the app re-applies the route and the
certificate trust, that's the quickest fix on every platform. To check by
hand:

> [tab] macOS
>
> On macOS 13 and later the route is PromptGuard's **network extension**,
> and there is no proxy setting. The first time, macOS asks you to allow
> it in System Settings; the app shows a button that opens the right
> page, and until you allow it nothing is checked. In a terminal,
> `systemextensionsctl list` should show `co.promptguard.shadow.netext`
> as `[activated enabled]`. The app must be in **Applications** for macOS
> to run it. Only the person at the screen is checked through the
> extension; on a Mac shared by several signed-in people, other sessions
> go direct. If macOS won't run the extension (or on macOS 12), the app
> falls back to an automatic proxy on each network service: check
> **System Settings → Network →** your service **→ Details… → Proxies**.
> Not every tool is routed by the extension yet; see
> [Known limitations](https://docs.promptguard.co/shadow-ai/known-limitations.md#hosts-the-macos-network-extension-does-not-route).

> [tab] Windows
>
> The proxy is a per-user automatic configuration script. Check
> **Settings → Network & internet → Proxy** (or **Internet Options →
> Connections → LAN settings**) for the setup script.

> [tab] Linux
>
> The agent sets the automatic proxy on GNOME (`gsettings`) and KDE
> Plasma. On other desktops it isn't applied, point your browser at the
> PAC URL that `pgshadow ports` prints. With the `.deb` or `.rpm`, the
> steering service also routes tools that ignore the proxy:
> `systemctl status promptguard-shadow-steering` should show it running,
> and it needs systemd-resolved 252 or later.

**3. Confirm the CA is trusted**

If TLS interception fails, the browser or app will error or fall back.

> [tab] macOS
>
> Make sure the **PromptGuard Shadow CA** is present and trusted in your
> login keychain in **Keychain Access**.

> [tab] Windows
>
> The CA is trusted for the **current user** (not machine-wide). Open
> `certmgr.msc` → **Trusted Root Certification Authorities → Certificates**
> and look for the agent's CA.

> [tab] Linux
>
> Browser trust (Chrome/Chromium) uses the shared NSS database at
> `~/.pki/nssdb`, which requires `libnss3-tools` (`certutil`) to be
> installed. System-wide trust (`update-ca-certificates`) is only applied
> when the agent runs as root.

Re-running the app's **Turn on protection** flow re-trusts the certificate
on all platforms.

## Gemini traffic in Chrome slips past

Chrome and some Google properties (including Gemini) prefer **QUIC / HTTP-3**,
which runs over UDP. Where the route is the system proxy (Windows, a Linux
AppImage, a Mac without the network extension), QUIC goes around it, so that
traffic is never inspected. The macOS network extension and the Linux steering
service refuse QUIC to AI hosts, so they aren't affected.

**Fix:** install the [browser extension](https://docs.promptguard.co/shadow-ai/browser-extension.md), which
checks the prompt on the page, and disable QUIC by browser policy (for Chrome,
the `QuicAllowed=false` enterprise policy). With QUIC off, the browser falls
back to HTTPS over the proxy and inspection resumes.

## A specific app stops working, or is never inspected

Some native desktop apps **pin their own certificate** and reject the agent's CA
outright. While that app's AI tool is monitored, its requests fail;
`pgshadow doctor` names the host and the tool. Switch that tool off in the app's
**AI tools** and the app works again, uninspected. Inspecting it is **out of
scope by design**: this is not a misconfiguration. See
[Known Limitations](https://docs.promptguard.co/shadow-ai/known-limitations.md#certificate-pinned-apps).

If an app is never inspected and doesn't fail, check
[Supported AI tools](https://docs.promptguard.co/shadow-ai/supported-tools.md) for whether its platform's
route reaches it.

## The engine is unreachable

The agent calls a remote `/guard` engine for each verdict. If it can't reach the
engine, it **fails open by default**: the request is allowed through rather than
blocking the employee's work. A refused connection fails open at once; an engine
that accepts the connection and then stalls is given **30 seconds**.

* A short spike of allowed-without-verdict events during a network blip is
  expected, not a bug. Each one is counted: the device's row on the Shadow AI
  page says how many prompts went out without a verdict today and why, and ten
  or more on one device raise a `device_fail_open` alert to your webhooks.
* If it's persistent, check connectivity to the engine (`pgshadow doctor`) and, for self-hosted deployments, that the engine instance
  is healthy. See [Deployment Modes](https://docs.promptguard.co/shadow-ai/deployment-modes.md).

> [!NOTE]
>
> Fail-open is the **default**, so availability of AI tools is preserved during an
> outage. If your environment requires the opposite, set `on_engine_unreachable`
> to `hold`: a prompt to a monitored AI tool that the engine couldn't be asked
> about is then not sent at all, and the person is told the engine was unreachable
> rather than anything about their prompt. The activity log records it as a
> **Hold**: its own kind of event, not a block. See
> [If the engine cannot be reached](https://docs.promptguard.co/shadow-ai/privacy-data-handling.md#if-the-engine-cannot-be-reached).

## A policy change hasn't taken effect

A saved change applies to the next scan. A device keeps reusing a verdict it
already received for an **identical** request for up to 60 seconds, so
re-sending the exact prompt you just tested can return the old answer for a
minute. Wait a minute, or change a word. See
[When a policy change takes effect](https://docs.promptguard.co/security/policy-changes.md).

## SmartScreen warns on the Windows installer

On first run SmartScreen may show *"Windows protected your PC"*:

1. Click **More info**.
2. Click **Run anyway**.

**Why you see this.** Windows installers are code-signed by PG TECH LTD
(SSL.com OV certificate) from the first release after our certificate is
issued. Earlier releases are not signed, and SmartScreen shows *Unknown
publisher* for them on every fresh install. A signed release names PG TECH LTD,
and may still show the screen until SmartScreen has seen enough downloads of
it. Each release's notes say whether it is signed. Neither case means the file
was tampered with. Only ever download the installer from
[promptguard.co/download](https://promptguard.co/download); if you got it from
anywhere else, delete it and re-download.

If your organisation's endpoint policy (AppLocker, WDAC, Intune) refuses to run
unsigned executables, use a signed release (its notes say so), and contact
[support@promptguard.co](mailto:support@promptguard.co) if the release you need
is not one yet.

## Where logs and config live

The agent keeps its state in one directory on every platform:

| Platform | Location |
| - | - |
| **macOS / Linux** | `~/.promptguard/` |
| **Windows** | `%USERPROFILE%\.promptguard\` |

Inside it: `config.json` (credentials, never share this file), `events.db` (the
local, PII-redacted event log), and two logs:

| Log | What writes it | Kept |
| - | - | - |
| `logs/shadow.log.<date>` | The desktop app. A new file each day. | Files older than **7 days** are deleted when the app starts. |
| `pgshadow-proxy.log` | The inspection proxy. One file, appended to. | Not rotated or pruned by the agent. |

**How much they record.** Unless `RUST_LOG` is set, the app's log records
`info` and above, plus `debug` from the agent's own components, so it is more
detailed than `info`. The proxy's log records errors, plus lines naming each AI host
whose certificate was refused or whose upstream could not be reached. Setting
`RUST_LOG` in the agent's environment (for example `RUST_LOG=debug`) replaces
these defaults. The app's Help screen has a **Copy diagnostics** button that
copies the log location and the last 200 lines of the newest app log, ready to
paste into a message.

## Collecting logs for support

The quickest way is a diagnostics bundle: **Collect diagnostics…** in the
tray menu, or from a terminal:

```bash theme={"system"}
pgshadow doctor --bundle
```

It runs the `pgshadow doctor` checks and writes a zip,
`pgshadow-diagnostics-<timestamp>.zip`, to your `Downloads` folder (or to
`~/.promptguard/diagnostics/` when there is none; `--out <directory>` picks
another). **Nothing is uploaded.** You open it, check it, and send it to
[support@promptguard.co](mailto:support@promptguard.co) or your IT team
yourself. The checks themselves make three kinds of network probe (each AI host
through the local proxy, the engine, and the enrollment); `--offline` skips
them.

| File in the zip | What it is |
| - | - |
| `doctor.txt`, `doctor.json` | The doctor report |
| `logs/…` | Every file in `~/.promptguard/logs/` and `pgshadow-proxy.log`, the last 5 MiB of each at most |
| `config/…` | The agent's settings files (`config.json`, `tools.json`, `entitlement.json`, `update.json`, `protection.json`, `policy.json`, `grants.json`, `capture-health.json`), with every credential value replaced by `[redacted: present]` |
| `activity-summary.json` | Decision counts per AI tool and per day for the last 7 days, with no prompt previews |
| `coaching.json` | Recent coached prompts and overrides, with the reason the person gave, and no prompt previews |
| `MANIFEST.txt`, `manifest.json` | Every file above, with its size and where it came from |

**Left out on purpose**, and listed as such in the manifest: `events.db`
(it holds masked prompt previews), the interception certificate's private key,
and the device API key and any enrollment token.

**Redacted before writing.** Every text file in the bundle goes through the
agent's redactor, which replaces credentials (the device key wherever it
appears, PEM blocks, `Authorization` and bearer values, credential-named fields,
known key formats), prompt content (fields such as `prompt`, `content` and
`messages`), URL query strings and email addresses, and writes your home
directory as `~`.

If you cannot make a bundle, include the output of `pgshadow status` and
`pgshadow doctor`, and attach `pgshadow-proxy.log` if asked. Never send
`config.json` itself: it holds your device credential.

## Next steps

> [card] [Known limitations](https://docs.promptguard.co/shadow-ai/known-limitations.md)
>
> What's out of scope and why.

> [card] [Privacy & data handling](https://docs.promptguard.co/shadow-ai/privacy-data-handling.md)
>
> What the agent logs and what reaches the cloud.


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