Skip to content

Configuration

You configure a Ryot server with environment variables. Set them on the ryot service in your Docker Compose file (or your platform’s equivalent), then restart Ryot so it picks them up. Every variable Ryot understands is listed under All parameters at the bottom of this page.

  • Ryot reads its settings once, when it starts. After you change a variable, restart Ryot.
  • Ryot checks your settings at startup. If a value is invalid, or a group of settings is only partly filled in, Ryot stops and its logs say which variable to fix.
  • Some groups must be set all together or not at all, for example the three OpenID Connect variables or the three SMTP variables.
  • Variables marked Secret in the reference below hold passwords and keys. Keep them out of screenshots and shared files.

You need three variables to start Ryot. The others are optional.

Variable What it does
DATABASE_URL Required. The PostgreSQL connection string, such as postgres://postgres:postgres@ryot-db:5432/postgres.
FRONTEND_URL Required. The exact address you open Ryot at, such as https://ryot.example.com. Nothing after the domain or port. Sign-in and trusted browser origins depend on it.
SERVER_ADMIN_ACCESS_TOKEN Required. A long random secret that unlocks Instance Admin at <FRONTEND_URL>/instance-admin. Generate one with openssl rand -hex 16. Do not change it later; see below.
TZ The time zone used for scheduled plugin jobs, as an IANA name such as Europe/Amsterdam. Default: Etc/GMT.
USERS_ALLOW_REGISTRATION Set to false to stop new people from creating accounts. Default: true.
DISABLE_TELEMETRY Set to true to turn off anonymous usage analytics. See Telemetry.

Other topics have their own pages:

Some metadata providers, such as TMDB for movies and shows, need credentials before Ryot can search them. Each provider has a step-by-step guide under Metadata providers, starting with Movies and shows.

Settings for built-in plugins follow one naming pattern:

RYOT_PLUGIN__<PUBLISHER>__<NAME>__<SETTING>

The publisher and name come from the plugin’s package ID, uppercased, with - replaced by _. For the Media plugin (ryot/media), every variable starts with RYOT_PLUGIN__RYOT__MEDIA__, for example RYOT_PLUGIN__RYOT__MEDIA__TMDB_ACCESS_TOKEN. These names do not change if a plugin’s display name changes.

Plugins that you install yourself (private plugins) never read these environment variables. You configure them in their installation settings instead.

Ryo, Ryot’s built-in assistant, needs an AI model provider. You can set a default provider for everyone on the server, and each person can choose their own. Chatting with Ryo requires Ryot Pro.

The provider must offer an OpenAI-compatible Chat Completions API with streaming and tool calling.

Variable What to set
SERVER_ASSISTANT_BASE_URL The API address including its prefix, such as https://api.openai.com/v1. No credentials, query or fragment.
SERVER_ASSISTANT_MODEL The model name your provider uses.
SERVER_ASSISTANT_API_KEY Optional. The API key, if your provider needs one.
SERVER_ASSISTANT_CONTEXT_WINDOW Optional. The model’s context window in tokens. Default: 496,000.
SERVER_ASSISTANT_MAX_OUTPUT_TOKENS Optional. The most tokens the model may write in one reply. Default: 32,000. It must be smaller than the context window.

Set the base URL and the model together, or neither. Before a conversation outgrows the context window, Ryo summarizes older messages. It also does this when the provider reports that a request is too long.

Each person can add a provider under Settings → Ryo. Their provider replaces the server default completely, including its context window and output limit, so a personal provider without a key never borrows the server’s key.

  • Saving without entering a new API key keeps the key saved before.
  • Remove my provider deletes the personal provider and its key, and switches back to the server default.
  • To switch to a personal provider without a key, remove the provider and add it again without a key.
  • Demo sessions cannot change provider settings.

Unauthenticated local model servers work. Ryot blocks requests to private and local addresses by default, so allow the model server’s network with SERVER_EGRESS_ALLOWED_NETWORKS (see below) and use its API address:

docker-compose.yml
services:
ryot:
environment:
- SERVER_ASSISTANT_BASE_URL=http://127.0.0.1:11434/v1
- SERVER_ASSISTANT_MODEL=your-model
- SERVER_EGRESS_ALLOWED_NETWORKS=127.0.0.0/8

By default, Ryot only sends web notifications to public HTTPS addresses. Enter the destination’s final URL, because redirects are not followed. The same rules apply to test notifications, automatic notifications and channels you saved earlier.

To send notifications to a Gotify, ntfy or Apprise server on your own network, allow its network as described next and restart Ryot. Destinations on an allowed private network can use HTTP or HTTPS.

SERVER_EGRESS_ALLOWED_NETWORKS lets Ryot reach addresses it normally refuses, such as your home network or localhost. It takes a comma-separated list of networks in CIDR notation:

docker-compose.yml
services:
ryot:
environment:
- SERVER_EGRESS_ALLOWED_NETWORKS=192.168.1.20/32,127.0.0.0/8
  • Use the smallest range that includes your destination.
  • This setting applies to everything that makes outgoing requests through Ryot: plugins, notifications, OAuth connections and Ryo providers.
  • Link-local, cloud metadata, multicast and unspecified addresses are always blocked. Ryot refuses to start if you try to allow them.

Point your uptime monitor or container health check at:

<FRONTEND_URL>/api/system/health

It answers successfully when Ryot is running and can reach its database. It does not answer while Ryot is still starting up or applying an upgrade.

Run exactly one Ryot server process against a database. A second process fails to start while the first one is running. When you replace or upgrade Ryot, stop the old process before starting the new one.

This list is generated from the Ryot source code. Use the filter to find a variable.

Application configuration

PORT

HTTP port the server listens on

Default: 8000

TZ

IANA timezone used for plugin cron schedules

Default: Etc/GMT

DISABLE_TELEMETRY

Disable anonymous usage analytics reported by the client

Default: false

FRONTEND_URLRequired

Exact origin users browse to; defines OAuth issuer and callbacks. HTTPS strongly recommended

Default: https://app.ryot.io

User account settings

USERS_DEMO_ACCOUNT_ID

Existing user ID used by the shared interactive demo

USERS_ALLOW_REGISTRATION

Allow new users to register via email and password

Default: true

USERS_DISABLE_LOCAL_AUTH

Disable local email/password authentication, requiring OIDC

Default: false

Server settings

SERVER_PRO_KEYSecret

The key that can be used to enable Ryot Pro features

SERVER_DISABLE_NOTIFICATIONS

Disable delivery of all notifications

Default: false

SERVER_DISABLE_PUBLICATIONS

Disable creating and visiting read-only publications of user content

Default: false

SERVER_ADMIN_ACCESS_TOKENRequiredSecret

Bearer token required for instance-admin admin endpoints

SERVER_EGRESS_ALLOWED_NETWORKS

Comma-separated CIDR networks that outbound requests from plugins, notifications, and OAuth may reach although they are loopback, private, or otherwise special-purpose, such as 192.168.1.0/24; link-local, metadata, multicast, and unspecified ranges cannot be allowed

OIDC provider

SERVER_OIDC_CLIENT_ID

OIDC client ID

SERVER_OIDC_ISSUER_URL

OIDC issuer URL

SERVER_OIDC_CLIENT_SECRETSecret

OIDC client secret

SMTP delivery settings

SERVER_SMTP_SERVER

SMTP server hostname

SERVER_SMTP_USERSecret

SMTP username

SERVER_SMTP_PASSWORDSecret

SMTP password

SERVER_SMTP_MAILBOX

SMTP sender mailbox

Default: Ryot <[email protected]>

Instance default OpenAI-compatible provider

SERVER_ASSISTANT_MODEL

Provider model identifier

SERVER_ASSISTANT_BASE_URL

Chat Completions API base URL, including its API prefix

SERVER_ASSISTANT_API_KEYSecret

Optional provider API key; omit for unauthenticated endpoints

SERVER_ASSISTANT_MAX_OUTPUT_TOKENS

Most tokens the model may generate in one response. Defaults to 32000

SERVER_ASSISTANT_CONTEXT_WINDOW

Model context window in tokens; Ryo compacts older history before exceeding it. Defaults to 496000

Sandbox execution settings

SANDBOX_MEMORY_BUDGET_MIB

Aggregate memory reservation budget for sandbox processes and execution buffers; derived as the smaller of 1536 MiB and half of effective memory when unset

SANDBOX_PER_USER_SIDECARS

Run each plugin owner's user-tier scripts in their own sidecar processes instead of shared ones; use when mutually untrusted users share an instance

Default: false

SANDBOX_IMPORT_CONCURRENCY

Maximum provider imports running at once across all instances; the rest wait in a queue. Keep it equal to the total SANDBOX_WORKER_CONCURRENCY of all instances

Default: 2

SANDBOX_WORKER_CONCURRENCY

Global sandbox execution concurrency across trust and snapshot tiers; each process opens up to 5 + 3 × this many PostgreSQL connections, so keep it within available database and memory headroom

Default: 2

PostgreSQL connection settings

DATABASE_URLRequiredSecret

PostgreSQL connection string

DATABASE_CONNECTION_TIMEOUT_MS

Maximum milliseconds to wait when acquiring a PostgreSQL connection from the pool

Default: 10000

Frontend display settings

FRONTEND_OIDC_BUTTON_LABEL

Label for the OIDC sign-in button

Umami analytics settings

FRONTEND_UMAMI_HOST_URL

Origin of the Umami instance that receives analytics events

FRONTEND_UMAMI_WEBSITE_ID

Umami website identifier reported alongside analytics events

Scheduler settings

SCHEDULER_INFREQUENT_CRON_JOBS_SCHEDULE

Cron expression used by plugin crons assigned to the infrequent tier

Default: 0 0 * * *

SCHEDULER_DISABLE_DISPATCHERS

Disable automatic scheduler dispatchers (the frequent/infrequent cron tiers and plugin manifest crons)

Default: false

SCHEDULER_FREQUENT_CRON_JOBS_SCHEDULE

Interval phrase for the frequent cron tier; runs are aligned to interval boundaries rather than to process start time

Default: every 5 minutes

S3-compatible and local file storage

FILE_STORAGE_S3_REGION

S3 bucket region

FILE_STORAGE_S3_URL

S3-compatible endpoint URL

FILE_STORAGE_S3_BUCKET_NAME

S3 bucket name

FILE_STORAGE_S3_ACCESS_KEY_IDSecret

S3 access key ID

FILE_STORAGE_S3_SECRET_ACCESS_KEYSecret

S3 secret access key

OpenTelemetry Protocol export settings

OTEL_EXPORTER_OTLP_ENDPOINT

Base URL for OTLP logs, traces, and metrics export

OTEL_EXPORTER_OTLP_HEADERSSecret

Comma-separated key=value headers sent with OTLP exports, such as the API token a hosted collector requires

Server log output settings

SERVER_LOG_LEVEL

Minimum log level for file and OTLP logs; console logs always use info

Default: info

Rotating structured log file settings

SERVER_LOG_FILE

File path for rotating structured logs

Default: ./logs/ryot.log

SERVER_LOG_ROTATION_SIZE

Maximum active log file size before rotation, such as 10M

Default: 10M

SERVER_LOG_ROTATION_INTERVAL

UTC interval between log rotations, such as 1d

Default: 1d

Automation lifecycle limits and retention

AUTOMATIONS_MAX_DEPTH

Maximum causal chain depth (1–64)

Default: 8

AUTOMATIONS_MAX_RUNS

Maximum runs per root execution (1–10000)

Default: 100

AUTOMATIONS_RETRY_WINDOW_DAYS

Executable and configuration retention in days (1–90)

Default: 7

AUTOMATIONS_BATCH_MAX_ITEMS

Maximum items in one batch change trigger (1–1000)

Default: 200

AUTOMATIONS_HISTORY_RETENTION_DAYS

Automation history retention in days (1–365), at least the retry window

Default: 30

Media plugin

RYOT_PLUGIN__RYOT__MEDIA__ANILIST_CLIENT_ID

Client ID for AniList accounts

RYOT_PLUGIN__RYOT__MEDIA__METRON_USERNAME

Username used to access Metron metadata

RYOT_PLUGIN__RYOT__MEDIA__TRAKT_CLIENT_ID

Client ID used to import data from Trakt

RYOT_PLUGIN__RYOT__MEDIA__TWITCH_CLIENT_ID

Client ID used to access IGDB metadata

RYOT_PLUGIN__RYOT__MEDIA__TVDB_API_KEYSecret

API key used to access TVDB metadata

RYOT_PLUGIN__RYOT__MEDIA__SPOTIFY_CLIENT_ID

Client ID for Spotify metadata & accounts

RYOT_PLUGIN__RYOT__MEDIA__MAL_CLIENT_ID

Client ID used to access MyAnimeList metadata

RYOT_PLUGIN__RYOT__MEDIA__METRON_PASSWORDSecret

Password used to access Metron metadata

RYOT_PLUGIN__RYOT__MEDIA__TMDB_ACCESS_TOKENSecret

Access token used to access TMDB metadata

RYOT_PLUGIN__RYOT__MEDIA__HARDCOVER_API_KEYSecret

API key used to access Hardcover metadata

RYOT_PLUGIN__RYOT__MEDIA__GIANT_BOMB_API_KEYSecret

API key used to access Giant Bomb metadata

RYOT_PLUGIN__RYOT__MEDIA__ANILIST_CLIENT_SECRETSecret

Client secret for AniList accounts

RYOT_PLUGIN__RYOT__MEDIA__TWITCH_CLIENT_SECRETSecret

Client secret used to access IGDB metadata

RYOT_PLUGIN__RYOT__MEDIA__GOOGLE_BOOKS_API_KEYSecret

API key used to access Google Books metadata

RYOT_PLUGIN__RYOT__MEDIA__LISTENNOTES_API_KEYSecret

API key used to access Listen Notes metadata

RYOT_PLUGIN__RYOT__MEDIA__SPOTIFY_CLIENT_SECRETSecret

Client secret for Spotify metadata & accounts

RYOT_PLUGIN__RYOT__MEDIA__PROGRESS_UPDATE_THRESHOLD_HOURS

Hours used to debounce repeated completion updates

Default: 2