# The Console

> What the engine's one built-in page shows, how to open it with an API token, how to protect it or switch it off, and what it does not do compared with the Sypnia Cloud app.

Applies to: the Sypnia engine (open source, self-hosted).  
Source: https://telemetry.docs.sypnia.com/self-hosting/console/

For agents: The Console is the one built-in web page of the self-hosted Sypnia engine, at <base URL>/console: a problems list with each problem's analysis and prompt, unacknowledged alerts, and a session list with the replay player (the same one as the Cloud app). It signs in with an API token (read, plus replay for recordings), never the root token. How to protect it (per-person tokens, proxy rules, SYPNIA_CONSOLE_ENABLED=false) and what only the Sypnia Cloud app has.

**\[Engine]** This page is for whoever uses or protects a self-hosted engine. The Console exists only in the open-source engine. Sypnia Cloud has the full app instead, at `telemetry.app.sypnia.com`, and no Console.

> **In plain words**
>
> The Console is a single web page that comes inside the engine. It shows what is broken and lets you watch the visit where it broke. It is deliberately small: everything else Sypnia knows is there as data, for your coding agent or your own tools to read.

The Console has no data of its own. It reads through the same [API](https://telemetry.docs.sypnia.com/api) as everything else, with the token you give it, so it can show exactly what that token may read and nothing more.

## Open it

**At the end you will have:** the problems of one project on your screen.

### 1. Create a token for yourself

The Console signs in with an API token. `read` shows problems, sessions and their timelines; add `replay` to watch recordings.

```bash
sypnia token create --project shop --name "Console, Ana" --scopes read,replay --expires 90d
```

**You should see:**A line that starts with `sps_`. It is shown once.

### 2. Open the page and paste the token

Go to `<your base URL>/console`, for example `https://sypnia.example.com/console`, and paste the token.

**You should see:**The problems list of the project the token belongs to, for the `production` environment. To see your own testing, choose `development` at the top.

What happens to the token:

- It stays in that browser tab (`sessionStorage`) and is forgotten when you close it. The Console sets no cookie, uses no `localStorage` and keeps nothing on the server.
- It is sent only to your engine, as the `Authorization` header of API calls.
- A token belongs to one project, so the Console shows one project at a time. For another project, paste that project's token.
- The root token is refused. It can delete projects, and it does not belong in a browser. An ingest key is refused too. The Console asks `GET /v1/whoami` which credential it was given before it shows anything.

## What it shows

**Figure**: The Console, signed in with a token that has the read, replay and admin scopes (hence the Ignore button): alerts that nobody has acknowledged, the problems list, and one problem with its cause, its prompt and the sessions it hit.

1. Alerts that nobody has acknowledged sit in a strip above the list, each with an **Acknowledge** button.
2. The problems list, latest activity first: the sentence (or the technical title when the agent is off), the marks «new» and «came back», how many people, since when and the release.
3. **Copy prompt** copies the ready prompt for your coding agent.
4. **Watch replay** opens the recording of a session the problem affected.

A browser window at `sypnia.example.com/console`. The top bar shows the project `shop`, the environment `production`, the tabs Problems (open) and Sessions, and Sign out. The first problem is selected: «3 people tried to pay today and could not. The Pay button does nothing since yesterday's change.», 3 people, since today 09:12, release `4f2a91c`. The other two are «The search page shows an empty list for some people.» (came back, 12 people, since Monday) and a technical title, `TypeError: Cannot read properties of undefined (reading 'id')` (1 person, since yesterday). The selected problem shows who (3 people; two tried again and gave up), since when (yesterday's change, deployed at 18:40), the cause with confidence high, three pieces of evidence (`4f2a91c:src/cart/cart.ts`, `src/checkout/checkout.tsx:142`, `POST /api/checkout` answered `400`), what to do, the buttons Copy prompt, Resolve and Ignore, and the three sessions it affected.

### Problems

The list shows the project's problems, latest activity first: the sentence in plain words, or the technical title when the agent is off; the marks «new» and «came back»; how many people it hit; since when; and the release. You can filter by status and environment, and search the text.

Opening a problem shows:

- **The analysis**, when an AI provider is connected: who it hit, since when, the likely cause with its evidence, what to do, and how sure the agent is.
- **The failure itself**: the stack, in your own files and lines when the release has source maps; what the person did before; and the trace, as a list of steps with their times.
- **The sessions it affected**, each with a link to its replay.
- **Copy prompt**: [the ready prompt](https://telemetry.docs.sypnia.com/agent/the-prompt) for your coding agent, the same text `sypnia problem --prompt` prints.
- **Resolve** and **Reopen**. **Ignore** and **Analyse again** appear only when the token has the `admin` scope.

**Copy prompt** and **Analyse again** need the agent. While the agent is off, with no AI provider connected, the Console shows neither: there is no analysis to run again, and the problem shows its technical title and the failure itself. Your coding agent can still read the same evidence through [MCP](https://telemetry.docs.sypnia.com/mcp) or `GET /v1/problems/{problem}/context`.

### Alerts

Alerts that nobody has acknowledged sit in a strip above the list, newest first, each with an **Acknowledge** button. The strip reads `GET /v1/alerts?acknowledged=false`, which lists alerts once they are sent, so an alert still held for the agent's sentence appears a moment later. **Acknowledge** needs only `read`, and the first acknowledgement is the one kept. An alert about a problem opens that problem. Alerts about uptime, a slower page, a failing API route or usage show their title and their numbers, and that is all: the Console has no screen for those. The data is in the [API](https://telemetry.docs.sypnia.com/api/webhooks).

### Sessions and the replay player

The second tab lists recent sessions: who, when, how many pages, and whether something went wrong. You can keep only sessions with trouble or with a recording, and find one by person id or session id.

Opening a session shows its timeline, in order: pages, clicks, rage clicks, dead clicks, errors, failed requests. If the session has a recording and your token has the `replay` scope, the player plays it beside the timeline. It is the same player as the Cloud app: markers for errors, failed calls, rage and dead clicks and page changes on the bar, inactivity skipped and shown, speeds, keyboard shortcuts (`?` lists them), subtitles that say what is happening, and a panel that follows the playback with the timeline, the network calls with their waterfall, the errors with their stack in your own files, and the problem's trace. Opened from a problem, it starts 5 seconds before the failure, with the failure marked on the bar.

- A replay is watchable once its session has been idle for 2 minutes or has ended.
- What a person typed is asterisks, and left-out areas (frames, videos, `data-sypnia-block`; nothing inside them was recorded) are a box of the same size that says what was there. **Show what was hidden** (`M`) outlines every masked area. The Console cannot show what the browser never sent. See [Masking](https://telemetry.docs.sypnia.com/privacy/masking).
- The player fetches the recording straight from your bucket, through signed links that work for 15 minutes (`SYPNIA_STORAGE_PRESIGN_TTL_SECONDS`). The bucket stays private.
- The Console does not load the SDK, so it never records itself.
- The page's words are in English or Spanish, by the browser's language, and so are the sentences of the timeline: the API writes them in the language the browser asks for (`Accept-Language`).

## What it does not do

The Console is one page on purpose. This is what the Sypnia Cloud app has and the Console does not:

|                                                                                 | The Console **\[Engine]**                                             | The Sypnia Cloud app **\[Cloud]**                       |
| ------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------------------------------------------------------- |
| Problems with their analysis and prompt                                         | Yes, when an AI provider is connected                                 | Yes                                                     |
| Session replay                                                                  | The full player                                                       | The same player, plus the Performance and Person panels |
| Performance: slow pages, slow and failing API calls, the element behind a vital | No. [API](https://telemetry.docs.sypnia.com/api/performance) and MCP  | Screens                                                 |
| Click maps, rage and dead clicks per page                                       | No. API                                                               | Screens                                                 |
| Traces                                                                          | The trace of a problem, as steps on a time scale                      | The same, for any request of the session                |
| Uptime                                                                          | No. [API](https://telemetry.docs.sypnia.com/api/uptime)               | Screens                                                 |
| Search across everything                                                        | Text search in problems; sessions by id                               | One search box                                          |
| People and accounts activity                                                    | No. [API](https://telemetry.docs.sypnia.com/api/sessions-and-replays) | Screens                                                 |
| The daily summary and weekly suggestions                                        | No. `GET /v1/summary` and `GET /v1/suggestions`                       | In the app and by e-mail                                |
| Project settings, keys, tokens, alert rules, webhooks                           | No. The [CLI](https://telemetry.docs.sypnia.com/cli) and the API      | Screens                                                 |
| Signing in                                                                      | An API token, one project at a time                                   | Accounts, organizations and roles                       |
| A link you can send to a colleague                                              | It opens for anyone who has their own token for that project          | It opens for members of the organization                |
| Pull requests                                                                   | No                                                                    | A button on the problem                                 |

Nothing in the left column is hidden from you: it is all in the API, the CLI and the MCP server. The Console only chooses not to draw it.

## Protect it

Without a token the Console shows nothing: the page is an empty shell, and the data is behind the API. Protecting the Console is therefore mostly protecting tokens. Do these in order.

### 1. Give each person their own token

One token per person, with the fewest scopes and an end date. `replay` lets its holder see what your users saw on their screens: give it only to people who should.

```bash
sypnia token create --project shop --name "Console, Ana" --scopes read,replay --expires 90d
sypnia token list --project shop
```

**You should see:**The list shows who holds what, and when each token was last used. Revoke one with `sypnia token revoke`; it stops working within one minute.

### 2. Decide who can load the page at all

The Console is at a public address by default. To close it to everyone outside your team, add a rule in the proxy in front of the engine, for the path `/console` only. SDKs and API clients must keep reaching `/v1`.

With the Caddy of [Deploy with Docker](https://telemetry.docs.sypnia.com/self-hosting/deploy-docker), make a password hash and add four lines:

```bash
docker compose exec caddy caddy hash-password
```

`Caddyfile`

```text
{$SYPNIA_DOMAIN} {
	@console path /console /console/*
	basic_auth @console {
		team <the hash>
	}
	reverse_proxy sypnia:8080
}
```

**You should see:**After `docker compose restart caddy`, the browser asks for the name `team` and the password before it shows the Console, and then the Console asks for the token as before.

On AWS, the address is a CloudFront distribution: attach an AWS WAF rule that allows `/console*` only from your office or VPN addresses. AWS bills a WAF by the month.

### 3. Or switch it off

If your team reads through a coding agent and the CLI, you may not need the page.

```bash
SYPNIA_CONSOLE_ENABLED=false
```

**You should see:**After a restart, `<your base URL>/console` answers `404`. The API, the MCP server and the CLI are unchanged. Links in alerts still point at the Console, and stop working.

Also set `SYPNIA_API_CORS_ORIGINS` only if a web app of your own must call the read API from a browser. The Console needs nothing there: it is on the engine's own address.

## How it is served

The Console's files are built into the engine's binary: the page, its scripts and the replay player, the same `@sypnia/replay-player` the Cloud app uses. Nothing is fetched from another host.

| Address                                              | What it answers                                                                                                                           |
| ---------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `/console`, and any path under it that is not a file | The one page. It moves between problems and sessions in the browser, so a link to a problem or a session opens on it.                     |
| `/console/assets/<file>`                             | The page's files. Those whose name carries a content hash are cached for a year (`immutable`); the others are `no-cache`, with an `ETag`. |

The page goes out with headers that keep it closed:

| Header                    | Value, and why                                                                                                                                                                                                                                                                                                                           |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Content-Security-Policy` | `default-src 'self'`; scripts and workers from the engine only; images, fonts and media from `https:`, `data:` and `blob:`; `connect-src` the engine, `blob:` and the origin of the links your Bucket signs, so the player can fetch recordings; `object-src 'none'`, `base-uri 'none'`, `form-action 'none'`, `frame-ancestors 'none'`. |
| `Referrer-Policy`         | `no-referrer`: links you follow from the Console do not carry its address.                                                                                                                                                                                                                                                               |
| `X-Robots-Tag`            | `noindex`: search engines do not list it.                                                                                                                                                                                                                                                                                                |

A proxy in front of the engine must pass these headers through, not replace them. If it sets its own `Content-Security-Policy` for the whole site, exclude `/console`, or the player cannot reach your Bucket.

## When something does not show

| What you see                                                                                             | Why                                                                                                                   | What to do                                                                                                                                                                                                                                          |
| -------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `404` at `/console`                                                                                      | The Console is switched off, or this process runs without the `api` role.                                             | `SYPNIA_CONSOLE_ENABLED`, and the role of [`sypnia serve`](https://telemetry.docs.sypnia.com/cli/commands).                                                                                                                                         |
| «This token cannot sign in»                                                                              | The token was revoked, expired, mistyped, or it is the root token or an ingest key.                                   | Create an API token.                                                                                                                                                                                                                                |
| An empty problems list, and you expected one                                                             | The environment. A test from `localhost` usually lands in `development`.                                              | Change the environment at the top.                                                                                                                                                                                                                  |
| A problem with only a technical title                                                                    | No AI provider is connected, or the analysis limit of the day was reached.                                            | [Models and what is sent](https://telemetry.docs.sypnia.com/agent/models-and-what-is-sent).                                                                                                                                                         |
| A session without a «Watch replay» link                                                                  | It was not recorded: by default 10 % of sessions are, plus every session with an error, a rage click or a dead click. | [Sessions and replay](https://telemetry.docs.sypnia.com/concepts/sessions-and-replay).                                                                                                                                                              |
| «You need the replay scope»                                                                              | The token has `read` only.                                                                                            | Create a token with `read,replay`.                                                                                                                                                                                                                  |
| «Not ready yet» on a replay                                                                              | The session is still going on.                                                                                        | Wait until it has been idle for 2 minutes.                                                                                                                                                                                                          |
| «Expired» on a session or a replay                                                                       | It is older than your retention.                                                                                      | [Retention](https://telemetry.docs.sypnia.com/self-hosting/upgrades-backups-retention#retention).                                                                                                                                                   |
| The player says it could not read the recording, and the browser's console shows a CORS or network error | The browser cannot read from the bucket.                                                                              | Check `SYPNIA_STORAGE_PUBLIC_ENDPOINT`, and the [bucket rule](https://telemetry.docs.sypnia.com/self-hosting/deploy-docker#let-browsers-read-replays-from-a-hosted-bucket) for a hosted bucket. Try without browser extensions that block requests. |

## Related
