# Sypnia App documentation > Sypnia App is your Sypnia account: a chat with the agent at the centre, your projects and their sessions on the left, and the code, the data, the logs and the map of cases opening beside the chat when you need them. It is also the board of every project, your credits and one sign-in for every Sypnia product, on the web at app.sypnia.com, on your phone, and in a light desktop app. Sypnia comes two ways, and every page says which one it is about: - **App interface and server** (open source, pointed at your own engines): Ingest, storage, aggregation, problem grouping, sessions, replay data and uptime checks. You read it through: The HTTP API, the MCP server, the CLI and the Console: one built-in page with the problems list and the session replay viewer. - **Sypnia Cloud** (your sypnia account, with credits): The same engine, run by us. You read it through: The full app: replay player, performance, uptime, daily summary, search and teams. Every page is also plain Markdown: add `.md` to its address (`https://app.docs.sypnia.com/start/open-source-and-cloud.md`). All pages in one file: https://app.docs.sypnia.com/llms-full.txt ## Start here What Sypnia App is, how it works, what is open source and what is Sypnia Cloud, and the quickstarts. - [Start here: overview](https://app.docs.sypnia.com/start.md): Section index for Sypnia App: the customer's Sypnia account at app.sypnia.com, on the phone (installable web app) and as a Tauri desktop app. Chat-first: Sypnia Agent at the centre, sessions per project on the left, a side panel on the right (code, diffs, data, logs, map, preview). Also the project board, credits (PayPal top-up, ledger), organizations and one sign-in for every product (identity in Sypnia Data). [Engine, Cloud] - [What Sypnia App is](https://app.docs.sypnia.com/start/what-it-is.md): Sypnia App = the Sypnia account. Parts: the chat with Sypnia Agent (sessions per project, left list; side panel right with Code, Diff, Data, Logs, Map, Preview), the board per project (map, code, data, domain, production health, deploys, spending), the account (sign-in through Sypnia Data, organizations and roles, credits topped up with PayPal, ledger, spending limits, notifications). Surfaces: app.sypnia.com, the phone (installable web app with notifications), the desktop app (Tauri, about 10 MB, CodeMirror 6 code panel, Open in my editor for VS Code, Cursor, Zed). Not a model, not a code editor replacement, no extra powers beyond the products' APIs. [Engine, Cloud] - [How it works](https://app.docs.sypnia.com/start/how-it-works.md): Flow: you write in a session (web, phone or desktop) → App server stores the message and hands it to Sypnia Agent with the session's project, your level and memory → the agent works through the products' MCP servers with your token (Cases proposal, Git branch, Run preview) → answers, questions and approval requests stream back (Server-Sent Events) → the side panel opens what the answer refers to (case, diff, preview) → approvals are recorded by the App server and passed to the product → spending is written to the credits ledger by the product that spent. The board reads each product's API with your session. App never holds product data of its own beyond sessions, messages, attachments, notifications and the ledger. [Engine, Cloud] - [Open source and Sypnia Cloud](https://app.docs.sypnia.com/start/open-source-and-cloud.md): Open source: the App server (Rust, AGPL-3.0), the web interface and the desktop app (MIT), @sypnia/app SDK and CLI (MIT); self-hosted it points at your own engines (Data for sign-in, Agent runner, Cases, Git, Run, Telemetry) and your model key; no credits, no PayPal, spending shown in your providers' units. Sypnia Cloud: your Sypnia account with organizations, roles, credits, PayPal top-ups, ledger, spending limits, phone notifications, every hosted product. Same interface, same API, same desktop app (pick the server at sign-in). [Engine, Cloud] - [Quickstart: the web](https://app.docs.sypnia.com/start/quickstart-web.md): Web quickstart: app.sypnia.com → sign up (e-mail + password; later sign-ins with the password or an e-mailed link) → the level test (about ten questions, can skip) → New project «La Espiga» → write the request in the chat → the agent proposes place-order with OutOfStock and Closed (side panel: Map) → Approve → the agent builds on its branch within a budget, shows the preview (side panel: Preview) → Top up credits with PayPal if needed → board shows the project. [Cloud] - [Quickstart: desktop](https://app.docs.sypnia.com/start/quickstart-desktop.md): Desktop quickstart: download from app.sypnia.com/download (Windows .msi, macOS .dmg universal, Linux AppImage/.deb/.rpm; about 10 MB) → sign in (Sypnia Cloud or your own server address; browser opens for the sign-in, deep link sypnia-app:// brings the session back) → pick a project → Link a folder (clone or choose an existing clone) → Open in my editor (VS Code, Cursor, Zed) → the chat and the side panel work as on the web, with local files. [Engine, Cloud] - [How Sypnia uses it](https://app.docs.sypnia.com/start/how-sypnia-uses-it.md): Dogfooding: Sypnia Telemetry is the pilot that uses every Sypnia product. Sypnia's team works on it from App: one project «Telemetry» in Sypnia's organization, sessions per piece of work (a case, an incident, a release), approvals from the phone for deploys and migrations, budgets and the credits of Sypnia's own organization in the ledger; the board shows Telemetry's map, code in Sypnia Git, data in Sypnia Data, telemetry.sypnia.com in Domains and production health read from Telemetry itself. Telemetry's sign-in is the same Sypnia account (Sypnia Data), so a person moving from App to telemetry.app.sypnia.com lands on the panel without signing in again. [Cloud] ## The chat Sessions per project, the side panel, questions and approvals, files, your level and memory. - [The chat: overview](https://app.docs.sypnia.com/chat.md): The chat is the centre of App: a conversation with Sypnia Agent inside a session of a project. Left: projects and their sessions. Right: the side panel (Code, Diff, Data, Logs, Map, Preview) opens when an answer refers to something. Questions come with options; approvals show the effect and the undo. Files dropped in go to the right product. The agent knows your level and memory. The chat has no powers beyond the products' APIs and your permissions. [Engine, Cloud] - [Sessions and projects](https://app.docs.sypnia.com/chat/sessions-and-projects.md): Left column: projects of the current organization, each with its sessions (newest first), plus «Account» sessions with no project (questions about credits, organizations). A session = one conversation, bound to one project; it can start tasks (each with its budget, branch and case). Sessions are kept until deleted; renamed, pinned, archived, searched (full text over messages); shared read-only with organization members or handed over (the new owner continues it). Deleting a session deletes its messages and attachments, never the work done in products (branches, cases, deploys). The same session continues on web, phone and desktop. [Engine, Cloud] - [The side panel](https://app.docs.sypnia.com/chat/the-side-panel.md): Side panel tabs: Code (CodeMirror 6, the project's repository from Sypnia Git or a linked local folder; read, search, small edits saved to a branch), Diff (a task's changes by file, with tests; approve the pull request from here when allowed), Data (tables and rows from Sypnia Data with your permissions and row-level security; production columns marked sensitive are masked), Logs (Run logs and Telemetry problems for the project, filtered to the case), Map (Cases map and the close-up of a case), Preview (the Run preview of the task's branch). Opens automatically when an answer refers to something, or by hand; pin to keep it; widths remembered. Secrets never shown: names and when they were set only. [Engine, Cloud] - [Questions and approvals](https://app.docs.sypnia.com/chat/questions-and-approvals.md): Questions: shown in the session with concrete options as buttons plus «something else»; batched by level (Agent's rules). Approvals: what, why, exact effect (diff, SQL, people reached, deploy target), how to undo; buttons Approve / Reject / Ask; production approvals may need a second person by team rules. Delivery: the session, the «Waiting for you» list at the top of the left column, notifications (web, desktop, phone push, e-mail after 30 minutes if unseen). While waiting the agent spends nothing; after 24 h the task pauses with its branch. Every decision recorded with who and when; approvals cannot be given through MCP or the API by an agent. [Engine, Cloud] - [Files in the chat](https://app.docs.sypnia.com/chat/files-in-the-chat.md): Attachments: images (PNG, JPEG, WebP, SVG), PDF, text and Markdown, CSV and spreadsheets (XLSX), code files; up to 25 MB each and 10 per message. Stored in Sypnia Files (the project's app-uploads bucket, private) and linked to the session. The agent proposes where each one goes and asks first: a logo → Sypnia Design (the brand of the project's design guide), a price list (CSV/XLSX) → a Data import proposal, a screenshot of an error → a search in Telemetry, a document → context for the task only. Nothing is moved, imported or published without the person's yes. Files are deleted with the session; a copy accepted by a product belongs to that product. [Engine, Cloud] - [Your level and memory](https://app.docs.sypnia.com/chat/your-level-and-memory.md): Level from the account profile (starter | builder | developer | senior) decides how the chat explains and what the side panel opens first (starter: Map and Preview; developer: Diff and Code). Memory: person notes and project notes (Agent's memory) shown and edited in Account → Memory; the chat says which notes it used. Change for one task by saying so; for good in Account → Level or by retaking the test. Self-hosted: profile and memory files on the server per person. [Engine, Cloud] ## Desktop app The same App in a light window, with your local folders, a terminal and your own editor one click away. - [Desktop app: overview](https://app.docs.sypnia.com/desktop.md): Desktop app: Tauri 2 shell (Rust) around the same web interface (@sypnia/ui), about 10 MB, Windows 10+, macOS 12+ (universal), Linux (AppImage, .deb, .rpm; WebKitGTK). Adds: linked local folders (code panel shows local files), a terminal tab for the agent's local tasks, Open in my editor (VS Code, Cursor, Zed), OS notifications, signed automatic updates, the choice of server (Sypnia Cloud or your own). Chat stays at the centre; not a code editor of its own beyond the CodeMirror 6 panel. [Engine, Cloud] - [Install](https://app.docs.sypnia.com/desktop/install.md): Downloads at app.sypnia.com/download (and the GitHub mirror's releases): Windows 10/11 x64 and arm64 .msi (Authenticode signed, WebView2 included in Windows 11, installed on demand on 10); macOS 12+ universal .dmg (Developer ID signed, notarized); Linux x64/arm64 AppImage, .deb, .rpm (signature with the published key; needs WebKitGTK 4.1). About 10 MB. Sign-in: browser opens, device returns through the sypnia-app:// link or a code to type; server choice Sypnia Cloud or a custom address. Uninstall removes the app; ~/.config/sypnia stays unless you sign out. [Engine, Cloud] - [The code panel](https://app.docs.sypnia.com/desktop/the-code-panel.md): Code tab built on CodeMirror 6: syntax highlighting for the project's languages, search in file and across the repository, go to file, diff view, light and dark themes, keyboard shortcuts, screen-reader friendly. Source: Sypnia Git (web) or a linked local folder (desktop). Edits: on the web they are committed to a branch (yours or the task's, never the protected branch); on the desktop they are saved to disk and the folder's git takes over. Not a full IDE: no extensions, no debugger, no language servers; for that, Open in my editor. [Engine, Cloud] - [Open in my editor](https://app.docs.sypnia.com/desktop/open-in-your-editor.md): Open in my editor: desktop app only (the web shows the command to copy). Editors: VS Code, Cursor, Zed, found on the system (PATH and default install locations); chosen once, changeable in Settings → Editor. Opens the linked folder, or the current file at its line (code --goto file:line, cursor --goto, zed file:line). Starts the editor only with a folder or file path, never with arguments from the project, never runs tasks, scripts or workspace commands; the editor's own trust prompt applies. Without a linked folder, the app offers to clone first. [Engine, Cloud] - [Local folders and the terminal](https://app.docs.sypnia.com/desktop/local-folders-and-terminal.md): Linked folder: per project and per computer, a clone of the project's repository; the code panel shows local files and their changes. Tasks can run locally: the desktop app starts Agent's local runner with its sandbox (sypnia-sandbox), visible in the Terminal tab (read-only stream of the commands, their output and the sandbox policy); the person can also open a plain terminal in the folder. Local tasks use the same approvals, budget and branch rules; with your own model key, the budget counts tokens. Unlinking never deletes the folder. [Engine, Cloud] - [Updates](https://app.docs.sypnia.com/desktop/updates.md): Updates: the app checks app.sypnia.com/download/updates.json at start and every 6 hours; downloads in the background; installs on the next restart (or Restart now). Every update is signed (Tauri updater signature with Sypnia's update key, plus the system signature); an update that fails either check is refused and reported. Channels: stable (default) and beta in Settings → Updates. Self-hosted servers can serve their own update manifest or none (SYPNIA_APP_DESKTOP_UPDATES). The desktop app works with servers one minor version older or newer. [Engine, Cloud] ## The board Each project at a glance: map, code, data, domain and production health, and a way into every product. - [The board: overview](https://app.docs.sypnia.com/board.md): The board: one page per project with cards read live from each product's API using the person's session (Cases map, Git code, Data, Domains, Run deploys, Telemetry health, spending this month). Each card links to the product's console with no second sign-in. «How is it going?» in the chat answers from the same cards. Organization view lists every project with its health. [Engine, Cloud] - [The project board](https://app.docs.sypnia.com/board/the-project-board.md): Cards: Map (Cases: cases by status, open proposals, scope errors this week, contract check result), Code (Git: default branch, last commit with its case, open pull requests, failing checks), Data (Data: tables, size, last migration, pending migrations), Domain (Domains: names, certificate state, renewal date, DNS problems), Deploys (Run: production version, open previews, last deploy and who approved), Health (Telemetry: open problems, failing cases, error rate and uptime 24 h, slowest case, last daily summary), Spending (credits spent this month by product, against the project's limit). Each card: last updated time, link to the product console; a product the project does not use shows how to add it. Reads cached 60 s; a product that does not answer shows its last known values with their time. [Engine, Cloud] - [Production health](https://app.docs.sypnia.com/board/production-health.md): Health card from Sypnia Telemetry: state (healthy | attention | failing) from open problems and alerts; failing cases (traces grouped by use case: «place-order failed 3 times today, OutOfStock is not the cause»); error rate and uptime 24 h; slowest case; the last daily summary in plain words; growing problems. Opening a problem moves to the chat with the problem attached so the agent can investigate (read only) and propose a fix as a task. Telemetry alerts arrive as App notifications. Without Telemetry the card explains how to add it. [Engine, Cloud] - [Every product](https://app.docs.sypnia.com/board/every-product.md): Product menu in App: Cases, Agent, Git, Data, Files, Run, AI, Mail, Domains, Design, Learn, Skills, Telemetry. Each opens the product's console (.app.sypnia.com) on the same project with the shared Sypnia session: no second sign-in; first visit adds the person to the product (roll-in). Products can be used alone; App is the shortcut, not a requirement. Self-hosted: the menu lists the engines configured in SYPNIA_APP_PRODUCTS. [Engine, Cloud] ## Your account Signing in, organizations and roles, credits, spending limits and notifications. - [Your account: overview](https://app.docs.sypnia.com/account.md): Account section: one Sypnia account for every product (identity and sessions in Sypnia Data), organizations with roles owner/admin/billing/member, credits (PayPal top-up, ledger by product/project/case/task), spending limits (organization, project, product; 80 %/100 % notices), notifications (web, desktop, phone push, e-mail), devices. [Engine, Cloud] - [Signing in](https://app.docs.sypnia.com/account/sign-in.md): Identity lives in Sypnia Data (Sypnia uses Sypnia Data for its own auth): the Sypnia account signs in with e-mail only: a password or a sign-in link sent to that address (confirmation e-mail, password reset by e-mail); no Google or GitHub sign-in for the Sypnia account (customer apps on Sypnia Data can offer them). One session shared by every product: moving from app.sypnia.com to telemetry.app.sypnia.com or any .app.sypnia.com lands on the panel, no second sign-in; first visit to a product = roll-in (added with your account; each product keeps its own record of you). Web session: 30 days from the last activity per device, refreshed while used. CLIs and the desktop app: device flow, DPoP-bound session in ~/.config/sypnia (mode 600), shared by every Sypnia CLI. Account → Devices lists every signed-in device; sign out one or all. Self-hosted: your own Sypnia Data engine, its providers. [Engine, Cloud] - [Organizations and roles](https://app.docs.sypnia.com/account/organizations-and-roles.md): Organizations own projects and the credit account. Signing up creates a personal organization; create more (a business, a team). Roles: owner (everything incl. deleting the organization and changing owners), admin (members, projects, settings; no spending), billing (top up, buy, approve spending requests, limits, see the ledger), member (projects they are given; sessions; request purchases). Spending credits (top-ups, buying a domain, raising a limit) needs owner or billing; others create a request that an owner or billing member approves. Invitations by e-mail, valid 7 days; at least one owner always. Switch organizations at the top of the left column. [Engine, Cloud] - [Credits](https://app.docs.sypnia.com/account/credits.md): Credits: each organization has one prepaid credit balance used by every Sypnia Cloud product. Top up: Account → Credits → Top up (owner or billing) → amount in USD, at least USD 5 → PayPal checkout → credits added when PayPal confirms the payment (once per payment, idempotent), e-mail receipt. Credits expire 12 months after the top-up that bought them; the oldest are spent first; the balance shows what expires next. No refunds, except when the mistake is Sypnia's (a charge by mistake or a failure on Sypnia's side): write to support@sypnia.com and a person reviews it; a refund is always in credits, never money. Ledger: every entry with date, product, project, case, task or item (domain, renewal), amount, who started it; reservations (held credits, e.g. a domain purchase or a task budget) shown apart from spending; filter, group by product/project/case, export CSV. Balance = top-ups − spending − reservations. Nothing billed afterwards. Agent tokens and sessions show the same ledger through the API and MCP (read only). When credits run out (every product): notices at 80 % (of the balance after the last top-up) and 100 %, then 7 days of grace with every product working and nothing deleted (grace use taken from the next top-up), then each product falls back to its plan without credits; data never deleted for lack of credits. [Cloud] - [Spending limits](https://app.docs.sypnia.com/account/spending-and-limits.md): Limits (owner or billing): monthly for the organization, per project, per product within a project; plus Agent's per-task default and maximum budgets. Notices at 80 % and 100 % of a limit and of the balance (notification + e-mail to owners and billing). At 100 % of a limit: new spending in that scope is refused with spending_limit_reached; running agent tasks stop at their next step, saved on their branch; account e-mails of your apps keep going; nothing is deleted. Raising a limit is immediate. Months are calendar months in the organization's time zone. [Cloud] - [Notifications](https://app.docs.sypnia.com/account/notifications.md): Notification types: question, approval, task finished or stopped, credits 80 %/100 %, spending limit, spending request (to owners/billing), Telemetry alert, domain renewal, invitation. Channels: web (in App), desktop (system notifications), phone (installable web app with Web Push; install from the browser's «Add to home screen»), e-mail. Defaults: questions and approvals everywhere, e-mail after 30 min unseen; per-type and per-project settings in Account → Notifications; quiet hours. A notification never carries secrets or row data; it links into the session. Self-hosted: web, desktop and e-mail through your provider; phone push needs your own VAPID keys. [Engine, Cloud] ## SDK, CLI and MCP The @sypnia/app package, the app command and the MCP tools for agents. - [SDK, CLI and MCP: overview](https://app.docs.sypnia.com/tools.md): Tools: @sypnia/app (TypeScript SDK for the App API: projects, sessions and streaming messages, board, credits and ledger, limits, notifications), the app command (npx @sypnia/app: login for every Sypnia CLI, whoami, orgs, projects, sessions, credits, ledger, top-up opening the browser, open in the desktop app), MCP at https://mcp.app.sypnia.com (read projects, board, sessions, balance, ledger; create projects and sessions; never top up, spend or approve). All MIT. [Engine, Cloud] - [The SDK](https://app.docs.sypnia.com/tools/sdk.md): @sypnia/app (MIT, Node 20+, browsers, Deno/Bun): createApp({ token?, baseUrl? }) — token from SYPNIA_APP_TOKEN or the shared CLI session. Namespaces: me, orgs (list, members, invite), projects (list, create, get, board), sessions (list, create, get, send → async iterator of events: text, question, approval, panel, task, done), credits (balance, ledger({ group, from, to, project }), topUp({ amount } USD, at least 5) → { approvalUrl } for a person to pay), limits (get, set), notifications (list, read). Errors: AppError with code, status, message. Never put a token in a browser bundle: in the browser the SDK uses the person's Sypnia session cookie. [Engine, Cloud] - [The app command](https://app.docs.sypnia.com/tools/cli.md): npx @sypnia/app (or app after npm i -g @sypnia/app): login [--server ] (device flow; DPoP-bound session in ~/.config/sypnia, shared by every Sypnia CLI: git, data, agent, mail…), logout [--all], whoami, orgs [switch ], projects [create ], board , sessions [], open [--session ] (opens the desktop app through sypnia-app://, or the web), credits, ledger [--project --group product|project|case --from --to --csv], top-up [amount] (USD, at least 5; opens PayPal in the browser; owner/billing), limits [set …]. Flags --json, --org. Exit codes 0 ok, 1 error, 2 usage, 3 not signed in, 4 forbidden. [Engine, Cloud] - [MCP for agents](https://app.docs.sypnia.com/tools/mcp.md): App MCP at https://mcp.app.sypnia.com (Streamable HTTP; OAuth with PKCE and dynamic client registration, or a personal access token). Tools: list_projects, get_board, list_sessions, get_session, create_session, send_message (to Sypnia Agent in a session; the agent's own rules apply), get_balance, list_ledger, list_notifications, create_project. Not exposed: topping up, spending, raising limits, approving, inviting or removing members — those need a person in App. Every call recorded. [Engine, Cloud] ## API reference The App API: addresses, authentication, errors and limits. - [API reference: overview](https://app.docs.sypnia.com/api.md): App API at https://app.api.sypnia.com/v1 (Cloud) or /v1. Auth: Authorization: Bearer — a Sypnia session token (from the device flow), a personal access token, or an OAuth token; agent tokens cannot approve, top up, spend, raise limits or manage members. Browser: the Sypnia session cookie, same-site, with CSRF header. Streaming: POST /sessions/{id}/messages answers text/event-stream. Errors {error {code, message}}: 400 invalid_request/amount_too_small (top-up under USD 5), 401 unauthorized, 403 forbidden/role_required/person_required, 404 not_found, 409 already_exists/conflict, 413 too_large, 415 type_not_allowed, 402 insufficient_credits/spending_limit_reached, 429 rate_limited (retry-after). Rate limits: 600 requests/min per token, 30 messages/min per session. [Engine, Cloud] - [Endpoints](https://app.docs.sypnia.com/api/endpoints.md): Endpoints: GET /me, GET /me/devices, DELETE /me/devices/{id}; GET|POST /orgs, GET /orgs/{org}, GET /orgs/{org}/members, PATCH|DELETE /orgs/{org}/members/{user}, POST /orgs/{org}/invitations, DELETE /invitations/{id}; GET|POST /projects, GET /projects/{project}, GET /projects/{project}/board; GET|POST /sessions, GET|PATCH|DELETE /sessions/{id}, POST /sessions/{id}/messages (SSE: text, question, approval, panel, task, done), POST /sessions/{id}/answers (person), POST /sessions/{id}/share; POST /uploads; GET /credits, GET /credits/ledger, POST /credits/top-ups ({ amount } in USD, at least 5, else 400 amount_too_small; → PayPal approval URL; person), GET /credits/top-ups/{id}; GET|PUT /limits; POST /spending-requests, POST /spending-requests/{id}/approve; GET /notifications, POST /notifications/read, GET|PUT /notifications/settings, POST /push-subscriptions; GET /desktop/updates.json. [Engine, Cloud] ## Architecture How Sypnia App is built: its parts, where Rust runs, and how they connect. - [Architecture: overview](https://app.docs.sypnia.com/architecture.md): App architecture: web interface (TypeScript, React, @sypnia/ui; static files) shared by the phone (installable web app, service worker for Web Push) and the desktop app (Tauri 2, Rust shell: local folders, terminal stream, editor button, OS notifications, signed updates); App server (Rust, axum): API, sessions and messages, streaming relay to Sypnia Agent (SSE), board reader (reads each product's API with the person's token, 60 s cache), notifications (Web Push, desktop, e-mail through Sypnia Mail or SMTP), uploads to Sypnia Files, MCP; Postgres (sypnia_app schema); identity in Sypnia Data; credits ledger and PayPal top-ups (Sypnia Cloud only, not open source). App keeps no product data: it reads it. [Engine, Cloud] - [Request paths](https://app.docs.sypnia.com/architecture/request-paths.md): Message: POST /sessions/{id}/messages → stored → handed to Agent (task context: project, level, memory refs, attachments) → Agent events relayed as SSE (text, question, approval, panel, task, done); the stream resumes with Last-Event-ID after a reconnect. Approval: person POSTs /answers → recorded (who, when, device) → forwarded to Agent, which forwards to the product. Board: GET /projects/{p}/board → parallel reads of each product API with the person's token (timeout 3 s each, 60 s cache per person+project) → card with read_at. Top-up: POST /credits/top-ups → PayPal order created → person approves in PayPal → App captures the order → PayPal webhook (signature verified) or capture result credits the balance once per PayPal order id → receipt e-mail. [Engine, Cloud] - [Data model](https://app.docs.sypnia.com/architecture/data-model.md): Postgres schema sypnia_app: organization (id, name, time_zone), member (org, user, role owner|admin|billing|member), invitation (email, role, expires_at 7 d), project (id shared with every product, org, name, products used), session (project nullable for Account, owner, title, pinned, archived, shared_with), message (session, author person|agent, body, events), attachment (session, files_object, kind, size), approval_record (session, task, decision, by, at, device), notification (user, type, payload ref, read_at), notification_setting, push_subscription (Web Push endpoint, keys), device (session id, name, last_used). Cloud only: credit_account (org, balance), ledger_entry (org, product, project, case, task, item, amount, actor, at, idempotency key), hold (amount, reason, expires), top_up (paypal_order_id unique, state), spending_limit (scope, amount, month), spending_request. Identity users live in Sypnia Data; App stores the user id only. [Engine, Cloud] - [On AWS](https://app.docs.sypnia.com/architecture/reference-implementation-aws.md): AWS reference (us-east-1): CloudFront in front of S3 (web interface, static, also serves /download and updates.json) and the App server; App server as Rust Lambda functions (API with response streaming for SSE; MCP; notification sender), behind CloudFront with function URLs; Postgres on the shared Sypnia RDS (schema sypnia_app, its own role); SQS + DLQ for notifications and ledger writes from products; EventBridge receives task, alert and renewal events from Agent, Telemetry and Domains; Web Push from the sender Lambda; e-mail through Sypnia Mail; uploads in Sypnia Files; secrets in SSM Parameter Store/KMS (PayPal client secret, webhook id, VAPID private key, update signing key kept offline). Desktop builds signed in CI and uploaded to S3. [Cloud] - [Failures and scaling](https://app.docs.sypnia.com/architecture/failures-and-scaling.md): Failures: Agent unavailable → message saved, «the agent is not answering; your message is kept», retried with backoff for 10 min, then the session offers Retry; stream drop → resume from Last-Event-ID; product down → board card shows last known values with read_at, chat says which product is not answering; PayPal confirmation late → capture result credits; if neither arrives the top-up stays waiting and is checked again every 5 min for 24 h, then failed (no credits, no charge kept); ledger writes are idempotent by key; notifications failing → retried, then e-mail; DLQ alarm. Scaling: stateless API (Lambda), streams per message, Postgres the only state; board cache 60 s; per-session message rate limit. [Engine, Cloud] - [Codebase](https://app.docs.sypnia.com/architecture/codebase.md): Repository sespinosav/sypnia-app (in Sypnia Git, GitHub mirror): apps/web (React, @sypnia/ui), apps/desktop (src-tauri Rust shell + the web build), crates/app-server (axum API, sessions, stream relay, board reader, notifications, MCP), crates/app-store (Postgres, migrations), packages/app (@sypnia/app SDK and CLI), cases/ (App's own map of cases: account, sessions, board…), spec/openapi.yaml, compose.yaml. Credits ledger and PayPal live in the private Sypnia Cloud repository. Licenses: server AGPL-3.0, web, desktop, SDK MIT. [Engine, Cloud] ## Self-hosting Run the App server and interface yourself, pointed at your own engines. - [Self-hosting: overview](https://app.docs.sypnia.com/self-hosting.md): Self-hosted App: the App server (one Rust binary, ghcr.io/sespinosav/sypnia-app) serving the API, the web interface, MCP and the desktop update manifest; needs Postgres 16+, a Sypnia Data engine for sign-in, an Agent runner and your model key, and the URLs of the engines you run (Cases, Git, Data, Run, Telemetry, Files…). No credits, PayPal or ledger; budgets count your provider's tokens; organizations and roles work. Desktop app signs in to your address. [Engine] - [With Docker](https://app.docs.sypnia.com/self-hosting/docker.md): compose.yaml: services app (ghcr.io/sespinosav/sypnia-app, port 8090), postgres (16), data (ghcr.io/sespinosav/sypnia-data, sign-in), agent (Agent runner with SYPNIA_AGENT_MODEL_KEY). Env: SYPNIA_APP_DATABASE_URL, SYPNIA_APP_PUBLIC_URL=http://localhost:8090, SYPNIA_APP_AUTH_URL, SYPNIA_APP_AGENT_URL, SYPNIA_APP_PRODUCTS, SYPNIA_APP_AUTO_MIGRATE=true. docker compose up -d → open http://localhost:8090 → first sign-up becomes the owner of the first organization; app login --server http://localhost:8090; desktop app: Sign in → Your own server. [Engine] - [Configuration](https://app.docs.sypnia.com/self-hosting/configuration.md): Settings (env): SYPNIA_APP_DATABASE_URL (required), SYPNIA_APP_PUBLIC_URL (required), SYPNIA_APP_AUTH_URL (Sypnia Data engine, required), SYPNIA_APP_AGENT_URL (Agent runner, required), SYPNIA_APP_PRODUCTS (comma list name=url for cases, git, data, files, run, telemetry, mail, domains, design, ai, learn, skills), SYPNIA_APP_FILES_URL (attachments; default: local disk SYPNIA_APP_UPLOADS_DIR=/var/lib/sypnia-app/uploads), SYPNIA_APP_SMTP_URL or SYPNIA_APP_MAIL_URL (e-mail notifications, optional), SYPNIA_APP_VAPID_PUBLIC_KEY / SYPNIA_APP_VAPID_PRIVATE_KEY (phone notifications, optional), SYPNIA_APP_DESKTOP_UPDATES (url | off; default off), SYPNIA_APP_AUTO_MIGRATE (false), SYPNIA_APP_PORT (8090), SYPNIA_APP_LOG (info), SYPNIA_APP_TELEMETRY_KEY (optional ingest key to watch App with Telemetry), SYPNIA_APP_MAX_UPLOAD_MB (25). [Engine] - [Upgrades](https://app.docs.sypnia.com/self-hosting/upgrades.md): Versions follow semver; read the changelog first. Upgrade: back up Postgres, pull the new image, start with SYPNIA_APP_AUTO_MIGRATE=true or run `sypnia-app migrate` first; migrations only add within a major version; downgrade = restore the backup. Desktop app and @sypnia/app work with servers one minor version older or newer; the interface warns otherwise. Web interface ships inside the server image. [Engine] ## Security Sessions, the desktop app, deep links, secrets in the panel, the threat model and the checklist. - [Security: overview](https://app.docs.sypnia.com/security.md): App security principles: the chat has no powers beyond the person's permissions in each product; approvals and spending need a person's session (agent tokens get 403 person_required); secrets never shown in the side panel; sessions per device, revocable; desktop updates double-signed; deep links (sypnia-app://) only open or sign in, never act; Open in my editor starts the editor with a path only; product content shown in the chat is data, never instructions (prompt injection is Agent's concern too). [Engine, Cloud] - [Threat model](https://app.docs.sypnia.com/security/threat-model.md): Threats and answers: stolen browser session (per-device sessions, 30-day idle expiry, Account → Devices sign-out, sensitive actions re-check the session age); stolen CLI/desktop session file (mode 600, DPoP-bound so it is useless on another machine, revocable); an agent spends or approves (no MCP tools, 403 person_required); prompt injection through a file, a row or a log (shown as data, Agent's rules outside the model, approvals show the exact effect); malicious deep link (sypnia-app:// only opens a project/session or completes sign-in with a one-time code bound to that device; never runs commands); poisoned desktop update (Tauri update signature + OS signature, signing key offline); editor button abuse (path only, no arguments from the project); fake PayPal confirmation (webhook signature verified, capture checked with PayPal, credits once per order id); member over-spending (roles, requests, limits); attachments with malware (stored privately, never executed; scanned by Files where enabled); cross-organization reads (every query scoped by organization and the product's own checks). [Engine, Cloud] - [Checklist](https://app.docs.sypnia.com/security/checklist.md): Checklist Cloud: at least two owners; billing role only for who pays; spending limits on the organization and each project; team rules in Agent for production approvals (second person); review Account → Devices; personal access tokens with scopes and end dates; notifications for approvals on the phone. Self-hosted: HTTPS in front of the server; SYPNIA_APP_PUBLIC_URL exact; Postgres not public; backups; VAPID private key and SMTP password in a secret store; SYPNIA_APP_DESKTOP_UPDATES only to a manifest you sign; keep server within one minor version of desktop apps; watch it with Telemetry. [Engine, Cloud] ## Sypnia Cloud Your account in Sypnia Cloud, what costs credits, limits and plans. - [Sypnia Cloud: overview](https://app.docs.sypnia.com/cloud.md): In Sypnia Cloud, App is the Sypnia account itself: sign-in, organizations, projects, credits and the way into every product. Using App costs no credits; what costs credits is what products do from it (Agent tasks, hosted sandboxes, domains, AI, mail…), written to the ledger by the product that spent. [Cloud] - [Credits and limits](https://app.docs.sypnia.com/cloud/credits-and-limits.md): App itself spends no credits: chatting, the board, the account and the desktop app are part of the Sypnia account. Spending comes from products: Agent (model use and hosted sandbox time per task, within its budget), AI, Domains (purchases, renewals), Mail, Run, Data, Files, Telemetry and the rest, each at the prices published with its plans. Credits: smallest top-up USD 5, expire 12 months after purchase (oldest spent first), no refunds unless the mistake is Sypnia's, and then only in credits. Account limits: attachments 25 MB, 10 per message; 600 API requests/min per token; 30 messages/min per session; invitations valid 7 days; sessions kept until deleted; attachments kept with their session. [Cloud] - [Plans](https://app.docs.sypnia.com/cloud/plans.md): Plans: App is not sold separately. From Account → Plans you buy each product on its own with its plans, the global Sypnia subscription (tiers with capacity in every product), or extra capacity per item; all prepaid (subscription paid in advance or credits topped up with PayPal); larger of product plan vs tier per item; nothing billed afterwards; nothing deleted for lack of credits. Prices published with the plans. [Cloud] ## Reference Glossary, design decisions, limits, the changelog and common questions. - [Reference: overview](https://app.docs.sypnia.com/reference.md): Glossary, design decisions, limits, the changelog and common questions. [Engine, Cloud] - [Glossary](https://app.docs.sypnia.com/reference/glossary.md): Sypnia App vocabulary: Sypnia account, organization, role, project, session, task, side panel, board, card, approval, question, attachment, credits, ledger, held credits, top-up, spending limit, spending request, roll-in, device, linked folder, desktop app, App server. [Engine, Cloud] - [Design decisions](https://app.docs.sypnia.com/reference/decisions.md): Decisions: chat at the centre, code in a side panel (not an editor-first app); desktop as a Tauri shell over the web interface (about 10 MB) instead of a VS Code fork or Zed; CodeMirror 6 for the code panel; Open in my editor for VS Code, Cursor, Zed; the chat has no powers of its own; only people approve and spend; App keeps no product data; identity in Sypnia Data; phone through the installable web app with Web Push; App server open source (AGPL-3.0), interface, desktop and SDK MIT, credits and PayPal Cloud-only; App itself costs no credits; App's own actions are use cases on its map. [Engine, Cloud] - [Limits](https://app.docs.sypnia.com/reference/limits.md): Limits: attachment 25 MB (engine: SYPNIA_APP_MAX_UPLOAD_MB), 10 per message; message text 100,000 characters; API 600 requests/min per token; 30 messages/min per session; board card read timeout 3 s, cache 60 s; invitation 7 days; web session 30 days idle; approval e-mail after 30 min unseen; task pause after 24 h waiting (Agent); top-up checked for 24 h; smallest top-up USD 5; credits expire 12 months after purchase; organizations per account 20; members per organization: by plan; sessions and attachments kept until deleted; desktop ↔ server one minor version apart. [Engine, Cloud] - [Common questions](https://app.docs.sypnia.com/reference/faq.md): FAQ: credits expire 12 months after purchase, minimum top-up USD 5, no refunds unless the mistake is Sypnia's, and then only in credits; App vs Claude/ChatGPT (it is your Sypnia account and works on your projects through Sypnia's products); do I need it (no, every product works alone); can I use my editor (yes, Open in my editor); does App cost credits (no, products do); can the agent spend my credits (only within a budget you set, never top up or approve); phone (installable web app); self-host (yes, no credits); where are my conversations (App server's Postgres, deleted when you delete the session). [Engine, Cloud] - [Changelog](https://app.docs.sypnia.com/reference/changelog.md): What changed in Sypnia App, newest first. [Engine, Cloud]