# Security

> Keys, the threat model and the checklist.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://ai.docs.sypnia.com/security/

For agents: Security section: secret keys server-only (refused with Origin), hashed at rest, scoped (call/read/admin), capped; browser tokens 10 min, one person, browser routes only; provider keys encrypted and write-only; agents cannot change routes, limits or keys; audited reads of kept bodies; threat model and checklist.

The three things to protect are your **keys** (they spend your credits), what **people write** to your app (it is theirs), and your **limits** (they protect your month). The pages below say how each is protected and what you should check.

- [Threat model](/security/threat-model/): What could go wrong with Sypnia AI, and how each threat is answered.
- [Checklist](/security/checklist/): What to check before your app's AI features reach real people.
