# Configuration

> Every environment variable of the engine.

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

For agents: Design engine env: DATABASE_URL, STORAGE_URL (S3-compatible; local folder default), PUBLIC_URL, PORT (7700), GIT_PROVIDER (sypnia|github|gitlab), GIT_URL, GIT_TOKEN, SYPNIA_DESIGN_AI_URL + SYPNIA_DESIGN_AI_KEY (OpenAI-compatible; empty = no AI help), RENDER_CONCURRENCY (2), RENDER_RETENTION_DAYS (30), UPLOAD_MAX_MB (10), JWKS_URL (accept JWTs from your issuer, e.g. Sypnia Data), TELEMETRY_ENDPOINT (OTLP).

| Variable                                       | Default      | Meaning                                                                                    |
| ---------------------------------------------- | ------------ | ------------------------------------------------------------------------------------------ |
| `DATABASE_URL`                                 | —            | Postgres for `sypnia_design`                                                               |
| `STORAGE_URL`                                  | local folder | S3-compatible storage for assets, renders and exports                                      |
| `PUBLIC_URL`                                   | —            | the engine's address, for links in pull requests                                           |
| `PORT`                                         | `7700`       | the HTTP port (API and `/mcp`)                                                             |
| `GIT_PROVIDER`                                 | `sypnia`     | `sypnia`, `github` or `gitlab`                                                             |
| `GIT_URL`, `GIT_TOKEN`                         | —            | where repositories live and a token allowed to push branches and open pull requests        |
| `SYPNIA_DESIGN_AI_URL`, `SYPNIA_DESIGN_AI_KEY` | —            | an OpenAI-compatible endpoint for AI help (Sypnia AI or your own); empty turns AI help off |
| `RENDER_CONCURRENCY`                           | `2`          | renders at the same time                                                                   |
| `RENDER_RETENTION_DAYS`                        | `30`         | how long pictures are kept                                                                 |
| `UPLOAD_MAX_MB`                                | `10`         | the largest uploaded file                                                                  |
| `JWKS_URL`                                     | —            | accept sign-ins from your issuer (for example your own Sypnia Data)                        |
| `TELEMETRY_ENDPOINT`                           | —            | send traces to Telemetry or any OTLP collector                                             |
