# How Sypnia uses it

> Every Sypnia account signs in with Sypnia Data, and Telemetry, the pilot, keeps its web app's database in it.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://data.docs.sypnia.com/start/how-sypnia-uses-it/

For agents: Dogfooding: the Sypnia account of every product is a user of the Sypnia Data project `sypnia`, served at auth.sypnia.com, signing in with e-mail only (password or e-mail link; no Google or GitHub on Sypnia's own project, while customer projects can turn them on); after any sign-in it sets the HttpOnly refresh cookie __Secure-sypnia-rt on .sypnia.com and each product app (data.app, telemetry.app, git, …) refreshes silently with X-Sypnia-CSRF, keeps the access token in memory and verifies it with the JWKS of auth.sypnia.com; sign-out with scope=global ends it everywhere; each product keeps its own members table and a roll-in use case. Sypnia's own sign-in e-mails leave from sypnia.com through Sypnia Mail (the sypnia_mail provider), like any customer project that chooses it. Coding agents sign in with npx @sypnia/data login (device flow, DPoP, a session that never expires until revoked) and reach every project through https://mcp.data.sypnia.com. Telemetry, the pilot that uses every Sypnia product, keeps its web app's database in a Sypnia Data project of Sypnia's organization and writes its flows as use cases with Sypnorm (@sypnia/cases), linked to its Cases map; its people sign in with their Sypnia account; its spans carry sypnia.case.

Sypnia is built on Sypnia. Sypnia Data is where every Sypnia account lives, and Telemetry, the pilot of the suite, keeps its own data in it.

## Every Sypnia account signs in with Sypnia Data

The Sypnia account you use in Telemetry, Git, the App and every other product is a user of one Sypnia Data project, `sypnia`, served at `auth.sypnia.com`. Nothing about it is special: it is the same engine, the same endpoints and the same rules this documentation describes.

- **E-mail only.** Sypnia's console, and every product app, signs you in with your e-mail address: a password, or a link sent to that address. The `sypnia` project does not turn on sign-in with Google or GitHub; Sypnia Data supports both for your own projects ([SSO with Google and GitHub](https://data.docs.sypnia.com/auth/oauth-providers)).

- **One session for the whole suite.** After any sign-in, `auth.sypnia.com` sets the refresh token in an `HttpOnly` cookie on `.sypnia.com`, with a harmless hint cookie next to it. Each product app (`data.app.sypnia.com`, `telemetry.app.sypnia.com`, Git…) refreshes silently with the CSRF header, keeps the access token in memory, and its API verifies it with the keys of `auth.sypnia.com`. Moving from one product to another needs no second sign-in, and signing out with `scope: 'global'` ends it everywhere. This is [cross-subdomain sessions](https://data.docs.sypnia.com/auth/users-and-your-data#several-apps-one-sign-in), on Sypnia's own domain.

- **Each product keeps its own people.** Telemetry's members and roles live in Telemetry's tables, and the console's in its own, keyed by the user's id. The first time you open a product, it adds you with its own roll-in use case ([Users and your app's own data](https://data.docs.sypnia.com/auth/users-and-your-data#roll-in-the-first-visit)).

- **Its e-mails go through Sypnia Mail.** Confirmations and magic links for Sypnia accounts leave from `sypnia.com` with the [`sypnia_mail` provider](https://data.docs.sypnia.com/auth/email-providers-and-templates#choosing-a-provider), the same one a customer project can choose, with the same templates.

- **Agents sign in the standard way.** When someone on the team gives a coding agent access, the agent runs `npx @sypnia/data login`: the [device flow](https://data.docs.sypnia.com/machines/device-flow-and-agents), a DPoP-bound session that lasts until it is revoked, and nothing pasted into a chat. With that session it reaches every project of Sypnia's organizations through [`mcp.data.sypnia.com`](https://data.docs.sypnia.com/machines/mcp).

## Telemetry keeps its data in Sypnia Data

Telemetry is the pilot of the suite: it uses every Sypnia product, from end to end. Its web app's database is a Sypnia Data project of Sypnia's organization.

| What Telemetry does                                                      | With                                                                                                                                                                                                             |
| ------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Signs its people in                                                      | their Sypnia account, through `auth.sypnia.com`                                                                                                                                                                  |
| Keeps its organizations, members, projects and settings                  | ordinary tables in its Sypnia Data project, under [row-level security](https://data.docs.sypnia.com/data/row-level-security)                                                                                     |
| Writes every flow as a use case («invite a member», «resolve a problem») | [Sypnorm](https://cases.docs.sypnia.com/sypnorm/), from `@sypnia/cases`, over the Data API with each person's token; a case another case listens to runs in its area's service, called with the person's session |
| Keeps its use-case map                                                   | its [Sypnia Cases](https://cases.docs.sypnia.com/links/data/) project, linked to the Data project both ways                                                                                                      |
| Changes its schema                                                       | migrations in its repository, applied with `npx @sypnia/data migrate`                                                                                                                                            |
| Runs its background work                                                 | a [machine client](https://data.docs.sypnia.com/machines/client-credentials) with a key pair and DPoP, under the same policies                                                                                   |

Every run of a Telemetry use case is a span with `sypnia.case`, watched by Telemetry itself, so the team sees a slow query or a failing flow the way a customer would.

## What it proves

If sign-in breaks, a session ends too soon, or a policy lets someone see a row they should not, Sypnia's own team is the first to feel it, in production, every day.
