---
title: "Server configuration"
version: "next"
canonical: "https://docs.obot.ai/next/configuration/server-configuration"
unreleased: true
---

<a id="obot-doc-obot-configuration-reference"></a>

# Server configuration

The Obot server is configured with environment variables.

Each setting has its own heading, so you can link to it directly with the variable name in lowercase, for example `#obot_server_mcpaudit_log_retention_days`.

<a id="obot-doc-general"></a>

## General

<a id="obot-doc-obot_server_hostname"></a>

### `OBOT_SERVER_HOSTNAME`

Tell Obot what its server URL is so that things like OAuth, LLM proxying, and invoke URLs are handled correctly.

**Default:** not set

<a id="obot-doc-obot_server_dsn"></a>

### `OBOT_SERVER_DSN`

Obot uses a database backend. By default, it will use a sqlite3 local database when running the plain Obot binary. The Obot container will use an internal PostgreSQL database (not recommended for production). This environment variable allows you to specify another database option. For example, you can use a postgres database with something like `OBOT_SERVER_DSN=postgres://user:password@host/database`.

**Default:** not set

<a id="obot-doc-obot_server_license_key"></a>

### `OBOT_SERVER_LICENSE_KEY`

An Obot license key. It takes precedence over a key stored in the database, and the key can't be changed or removed in the UI while it's set. Obot validates it with `https://api.keygen.sh`; see [Editions and licensing](https://docs.obot.ai/next/enterprise/overview.md#obot-doc-how-obot-validates-a-license).

**Default:** not set

<a id="obot-doc-github_auth_token"></a>

### `GITHUB_AUTH_TOKEN`

Obot makes heavy use of repositories hosted on GitHub. Care is taken to cache these and only re-check when necessary. However, rate-limiting can happen. Setting a read-only token here can alleviate many of these issues. No grants are required for either a 'classic' or 'fine-grained' token to access public repos (read-only). If you want to give the token access to private repos, you will need to give it `repo` (for a 'classic' token) or `contents (read-only)` and `metadata (read-only)`.

**Default:** not set

<a id="obot-doc-obot_server_git_max_repo_size_mb"></a>

### `OBOT_SERVER_GIT_MAX_REPO_SIZE_MB`

Maximum repository size for git clones, in MB (1 MB = 1,048,576 bytes). Applies to GitHub/GitLab size pre-checks and cumulative bytes written during cloning. Must be a positive integer; invalid values prevent server startup. Also available as `--git-max-repo-size-mb`.

**Default:** `100`

<a id="obot-doc-nah_threadiness"></a>

### `NAH_THREADINESS`

Sets the number of concurrent threads that can run in the Obot controller.

**Default:** `10`

<a id="obot-doc-obot_server_disable_update_check"></a>

### `OBOT_SERVER_DISABLE_UPDATE_CHECK`

Disable the Obot server update check.

**Default:** `false`

<a id="obot-doc-obot_server_product_analytics_mode"></a>

### `OBOT_SERVER_PRODUCT_ANALYTICS_MODE`

[Product analytics](https://docs.obot.ai/next/configuration/product-analytics.md) mode: `consent` lets admins choose, `on` forces analytics on, and `off` disables analytics.

**Default:** `consent`

<a id="obot-doc-obot_server_hide_k8s_details"></a>

### `OBOT_SERVER_HIDE_K8S_DETAILS`

Hide Kubernetes configuration details such as the Server Scheduling page from the UI.

**Default:** `false`

<a id="obot-doc-authentication"></a>

## Authentication and rate limiting

<a id="obot-doc-obot_server_enable_authentication"></a>

### `OBOT_SERVER_ENABLE_AUTHENTICATION`

Enables authentication for Obot.

**Default:** `false`

<a id="obot-doc-obot_bootstrap_token"></a>

### `OBOT_BOOTSTRAP_TOKEN`

Sets a bootstrap token. If authentication is enabled, one will be autogenerated for you if this is not set.

**Default:** not set

<a id="obot-doc-obot_server_local_auth_initial_owner_email"></a>

### `OBOT_SERVER_LOCAL_AUTH_INITIAL_OWNER_EMAIL`

Provisions this email as the initial owner with the built-in Local provider. Must be set with `OBOT_SERVER_LOCAL_AUTH_INITIAL_OWNER_SETUP_TOKEN`. This disables bootstrap-token login.

**Default:** not set

<a id="obot-doc-obot_server_local_auth_initial_owner_setup_token"></a>

### `OBOT_SERVER_LOCAL_AUTH_INITIAL_OWNER_SETUP_TOKEN`

Randomly generated, high-entropy secret (at least 32 characters; for example, `openssl rand -hex 32`) bound to the initial owner setup link. Obot stores only its hash and revokes it when password setup completes.

**Default:** not set

<a id="obot-doc-obot_server_local_auth_initial_owner_setup_token_expiration_hours"></a>

### `OBOT_SERVER_LOCAL_AUTH_INITIAL_OWNER_SETUP_TOKEN_EXPIRATION_HOURS`

Number of hours the initial owner setup link remains valid.

**Default:** `168`

<a id="obot-doc-obot_server_unauthenticated_rate_limit"></a>

### `OBOT_SERVER_UNAUTHENTICATED_RATE_LIMIT`

Rate limit for unauthenticated requests (requests per second). Unauthenticated requests are tracked by source IP address.

**Default:** `100`

<a id="obot-doc-obot_server_authenticated_rate_limit"></a>

### `OBOT_SERVER_AUTHENTICATED_RATE_LIMIT`

Rate limit for authenticated non-admin requests (requests per second). Authenticated requests are tracked by user ID. Admin users are exempt from rate limiting.

**Default:** `200`

<a id="obot-doc-encryption"></a>

## Encryption

<a id="obot-doc-obot_server_encryption_provider"></a>

### `OBOT_SERVER_ENCRYPTION_PROVIDER`

Configures an encryption provider for credentials in Obot. One of `aws`, `gcp`, `azure`, `custom`, or `none`.

**Default:** `none`

<a id="obot-doc-obot_server_encryption_config_file"></a>

### `OBOT_SERVER_ENCRYPTION_CONFIG_FILE`

The path to a file containing the encryption configuration. Only used when `OBOT_SERVER_ENCRYPTION_PROVIDER` is `custom`.

**Default:** not set

<a id="obot-doc-obot_server_encryption_key"></a>

### `OBOT_SERVER_ENCRYPTION_KEY`

Sets the key to be used for encryption. Should only be set if `OBOT_SERVER_ENCRYPTION_PROVIDER` is `custom`.

**Default:** not set

<a id="obot-doc-database-connection-pools"></a>

## Database connection pools

<a id="obot-doc-kinm_db_connections"></a>

### `KINM_DB_CONNECTIONS`

Sets both the maximum open and idle connection counts in the Kinm database pool. `KINM_DB_MAX_CONNECTIONS` and `KINM_DB_MAX_IDLE_CONNECTIONS` override the corresponding values.

**Default:** `5`

<a id="obot-doc-kinm_db_max_idle_connections"></a>

### `KINM_DB_MAX_IDLE_CONNECTIONS`

The maximum number of idle connections in the Kinm database pool. Overrides the idle connection count set by `KINM_DB_CONNECTIONS`.

**Default:** `2`

<a id="obot-doc-kinm_db_max_connections"></a>

### `KINM_DB_MAX_CONNECTIONS`

The maximum number of open connections in the Kinm database pool. Overrides the open connection count set by `KINM_DB_CONNECTIONS`.

**Default:** `5`

<a id="obot-doc-kinm_db_max_connection_lifetime_seconds"></a>

### `KINM_DB_MAX_CONNECTION_LIFETIME_SECONDS`

The maximum lifetime of a connection in the Kinm database pool, in seconds.

**Default:** `180`

<a id="obot-doc-kinm_db_watch_poll_seconds"></a>

### `KINM_DB_WATCH_POLL_SECONDS`

How long a Kinm watch waits before listing again when nothing has woken it, in seconds. Only applies while the change listener is connected. Without a connected listener a watch polls every 2 seconds, which this does not change.

**Default:** `120`

<a id="obot-doc-kinm_db_notify_debounce_milliseconds"></a>

### `KINM_DB_NOTIFY_DEBOUNCE_MILLISECONDS`

How often change notifications may wake the watches on one table, in milliseconds. The first change after a quiet moment is never delayed.

**Default:** `1000`

<a id="obot-doc-kinm_db_disable_notify"></a>

### `KINM_DB_DISABLE_NOTIFY`

Disables Kinm's use of PostgreSQL LISTEN/NOTIFY, so replicas learn about each other's writes by polling every 2 seconds instead.

**Default:** `false`

<a id="obot-doc-obot_auth_provider_postgres_max_idle_connections"></a>

### `OBOT_AUTH_PROVIDER_POSTGRES_MAX_IDLE_CONNECTIONS`

The maximum number of idle connections in the PostgreSQL database pool used by authentication providers.

**Default:** `2`

<a id="obot-doc-obot_auth_provider_postgres_max_connections"></a>

### `OBOT_AUTH_PROVIDER_POSTGRES_MAX_CONNECTIONS`

The maximum number of open connections in the PostgreSQL database pool used by authentication providers.

**Default:** `5`

<a id="obot-doc-obot_auth_provider_postgres_connection_lifetime_seconds"></a>

### `OBOT_AUTH_PROVIDER_POSTGRES_CONNECTION_LIFETIME_SECONDS`

The maximum lifetime of a connection in the PostgreSQL database pool used by authentication providers, in seconds.

**Default:** `180`

<a id="obot-doc-llm-gateway"></a>

## LLM gateway

<a id="obot-doc-openai_api_key"></a>

### `OPENAI_API_KEY`

Configures the [LLM gateway](https://docs.obot.ai/next/configuration/model-providers.md#obot-doc-openai-and-anthropic-keys-at-startup)'s `openai` provider with this key at startup. If the value changes, Obot updates the provider's key on the next start. You can also add providers and keys under **LLM Gateway** → **Providers**.

**Default:** not set

<a id="obot-doc-anthropic_api_key"></a>

### `ANTHROPIC_API_KEY`

Configures the [LLM gateway](https://docs.obot.ai/next/configuration/model-providers.md#obot-doc-openai-and-anthropic-keys-at-startup)'s `anthropic` provider with this key at startup. If the value changes, Obot updates the provider's key on the next start.

**Default:** not set

<a id="obot-doc-obot_server_daily_user_input_token_limit"></a>

### `OBOT_SERVER_DAILY_USER_INPUT_TOKEN_LIMIT`

Daily input token limit per user in the LLM gateway's *Daily token limit* budget, which the gateway puts on every profile when it first starts. Administrators are exempt. It is used only then; after that, edit each profile's budget on the **Profiles** tab of the **LLM Gateway** page. Set to a negative value to leave out this limit.

**Default:** `10000000`

<a id="obot-doc-obot_server_daily_user_output_token_limit"></a>

### `OBOT_SERVER_DAILY_USER_OUTPUT_TOKEN_LIMIT`

Daily output token limit per user in the LLM gateway's *Daily token limit* budget, which the gateway puts on every profile when it first starts. Administrators are exempt. It is used only then. Set to a negative value to leave out this limit.

**Default:** `100000`

<a id="obot-doc-obot_server_llm_gateway_data_dir"></a>

### `OBOT_SERVER_LLM_GATEWAY_DATA_DIR`

Where the LLM gateway keeps model price and capability files.

**Default:** `$XDG_DATA_HOME/obot/llm-gateway`

<a id="obot-doc-obot_server_llm_gateway_log_level"></a>

### `OBOT_SERVER_LLM_GATEWAY_LOG_LEVEL`

Log level for the embedded LLM gateway (`debug`, `info`, `warn`, `error`).

**Default:** `warn`

<a id="obot-doc-obot_server_llm_gateway_model_data_url"></a>

### `OBOT_SERVER_LLM_GATEWAY_MODEL_DATA_URL`

Where the LLM gateway refreshes model prices and capabilities from, every 6 hours. Obot's published images and release binaries include a copy of this data; set `off` to use only that copy.

**Default:** `https://upgrade-server.obot.ai/v1/model-data`

<a id="obot-doc-obot_server_model_proxy_url"></a>

### `OBOT_SERVER_MODEL_PROXY_URL`

MCP Tester model proxy service base URL, used for generation only when the LLM gateway has no providers configured. An explicitly empty string disables generation. Custom URLs must use HTTPS; HTTP is allowed only with `OBOT_DEV_MODE=true`.

**Default:** `https://model-service.obot.ai`

<a id="obot-doc-audit-logs-and-retention"></a>

## Audit logs and retention

<a id="obot-doc-obot_server_mcpaudit_log_retention_days"></a>

### `OBOT_SERVER_MCPAUDIT_LOG_RETENTION_DAYS`

The number of days to retain MCP audit logs before they are automatically deleted. Set to `0` to disable automatic cleanup. Use the [audit log export](https://docs.obot.ai/next/configuration/audit-log-export.md) functionality to preserve logs beyond this period.

**Default:** `90`

<a id="obot-doc-obot_server_llmaudit_log_retention_days"></a>

### `OBOT_SERVER_LLMAUDIT_LOG_RETENTION_DAYS`

The number of days to retain LLM audit logs before they are automatically deleted. Set to `0` to disable automatic cleanup.

**Default:** `90`

<a id="obot-doc-obot_server_device_scan_retention_days"></a>

### `OBOT_SERVER_DEVICE_SCAN_RETENTION_DAYS`

The number of days to retain submitted device scans before they are automatically deleted. Set to `0` to disable automatic cleanup.

**Default:** `90`

<a id="obot-doc-obot_server_egress_audit_log_retention_days"></a>

### `OBOT_SERVER_EGRESS_AUDIT_LOG_RETENTION_DAYS`

**Experimental.** Controls how many days egress audit records are retained after their last update. Set to `0` to disable cleanup. In Helm, set this under `config.OBOT_SERVER_EGRESS_AUDIT_LOG_RETENTION_DAYS`.

The admin Audit Logs page includes a **Claude Environments** tab. Only members of the auditor group can read request/response bodies and headers, including administrators.

See [experimental Claude Environments](https://docs.obot.ai/next/claude-environments/overview.md) for setup, access control, and audit limitations.

**Default:** `90`

<a id="obot-doc-obot_server_disable_mcpaudit_log"></a>

### `OBOT_SERVER_DISABLE_MCPAUDIT_LOG`

Disables collection and persistence of new MCP audit logs, including MCP gateway traffic and tool calls reported by local agents on managed devices. Device submissions are still accepted, then discarded. Existing logs remain available.

**Default:** `false`

<a id="obot-doc-obot_server_disable_llmaudit_log"></a>

### `OBOT_SERVER_DISABLE_LLMAUDIT_LOG`

Disables collection and persistence of new LLM gateway audit logs. Existing logs remain available.

**Default:** `false`

<a id="obot-doc-obot_server_mcpaudit_log_persist_interval_seconds"></a>

### `OBOT_SERVER_MCPAUDIT_LOG_PERSIST_INTERVAL_SECONDS`

The interval in seconds at which buffered MCP audit logs are flushed to the database.

**Default:** `5`

<a id="obot-doc-obot_server_mcpaudit_logs_persist_batch_size"></a>

### `OBOT_SERVER_MCPAUDIT_LOGS_PERSIST_BATCH_SIZE`

The number of MCP audit log entries written to the database in a single batch.

**Default:** `1000`

<a id="obot-doc-obot_server_audit_logs_mode"></a>

### `OBOT_SERVER_AUDIT_LOGS_MODE`

Configures the storage backend for audit logs in Obot. Can be `off`, `disk`, or `s3`.

**Default:** `off`

<a id="obot-doc-obot_server_audit_logs_store_s3bucket"></a>

### `OBOT_SERVER_AUDIT_LOGS_STORE_S3BUCKET`

The name of the S3 bucket to store audit logs in.

**Default:** not set

<a id="obot-doc-obot_server_audit_logs_store_s3endpoint"></a>

### `OBOT_SERVER_AUDIT_LOGS_STORE_S3ENDPOINT`

If `OBOT_SERVER_AUDIT_LOGS_MODE` is `s3` and you are not using AWS S3, this needs to be set to the S3 api endpoint of your provider.

**Default:** not set

<a id="obot-doc-obot_server_audit_logs_store_use_path_style"></a>

### `OBOT_SERVER_AUDIT_LOGS_STORE_USE_PATH_STYLE`

Whether to use path-style addressing for S3 object names.

**Default:** not set

<a id="obot-doc-obot_server_audit_logs_compress_file"></a>

### `OBOT_SERVER_AUDIT_LOGS_COMPRESS_FILE`

Controls whether to compress audit log files.

**Default:** `true`

<a id="obot-doc-mcp-server-runtime"></a>

## MCP server runtime

<a id="obot-doc-obot_server_mcpruntime_backend"></a>

### `OBOT_SERVER_MCPRUNTIME_BACKEND`

The runtime backend to use for running MCP servers: docker or kubernetes.

**Default:** `kubernetes` in the helm chart, `docker` otherwise

<a id="obot-doc-obot_server_mcpbase_image"></a>

### `OBOT_SERVER_MCPBASE_IMAGE`

Base image for MCP servers in Kubernetes or Docker. Also used for Docker setup containers for wrapper configuration and file configuration across runtimes. Custom images must provide `sh`, `cp`, and `rm`, and support running setup as root.

**Default:** `ghcr.io/obot-platform/mcp-images/stdio-wrapper:v0.28.0`

<a id="obot-doc-obot_server_mcpopen_apiimage"></a>

### `OBOT_SERVER_MCPOPEN_APIIMAGE`

Container image used to host OpenAPI MCP servers with the Docker or Kubernetes runtime backend.

**Default:** `ghcr.io/obot-platform/mcp-images/openapi-mcp:v0.28.0`

<a id="obot-doc-obot_server_mcphttpwebhook_base_image"></a>

### `OBOT_SERVER_MCPHTTPWEBHOOK_BASE_IMAGE`

Deploy MCP HTTP webhook servers in the cluster using this base image.

**Default:** `ghcr.io/obot-platform/mcp-images/http-webhook-mcp-converter:v0.28.0`

<a id="obot-doc-obot_server_mcpimage_pull_secrets"></a>

### `OBOT_SERVER_MCPIMAGE_PULL_SECRETS`

Comma-separated Kubernetes secret names to use as static image pull secrets for every MCP server Deployment. When set, managed image pull secrets are disabled. See [Image Pull Secrets](https://docs.obot.ai/next/configuration/image-pull-secrets.md).

**Default:** not set

<a id="obot-doc-obot_server_mcpsecret_binding_allowed_label"></a>

### `OBOT_SERVER_MCPSECRET_BINDING_ALLOWED_LABEL`

Kubernetes Secret label key required before a Secret can be selected or resolved by MCP secret bindings. Only label presence is checked; the label value is ignored. Secrets without this label are not shown as bindable targets in the admin UI and are treated as unavailable when Obot resolves a secret binding at runtime.

**Default:** `obot.obot.ai/allow-secret-binding`

<a id="obot-doc-obot_server_mcpcluster_domain"></a>

### `OBOT_SERVER_MCPCLUSTER_DOMAIN`

The cluster domain to use for MCP services. Only matters if `OBOT_SERVER_MCPBASE_IMAGE` is set.

**Default:** `cluster.local`

<a id="obot-doc-obot_server_service_name"></a>

### `OBOT_SERVER_SERVICE_NAME`

The Kubernetes service name for the obot server. Automatically set by the helm chart when using kubernetes backend. Used to construct the internal service FQDN for MCP runtime callbacks.

**Default:** not set

<a id="obot-doc-obot_server_service_namespace"></a>

### `OBOT_SERVER_SERVICE_NAMESPACE`

The Kubernetes namespace where the obot server runs. Automatically set by the helm chart when using kubernetes backend. Used to construct the internal service FQDN for MCP runtime callbacks.

**Default:** not set

<a id="obot-doc-obot_server_single_user_idle_server_shutdown_hours"></a>

### `OBOT_SERVER_SINGLE_USER_IDLE_SERVER_SHUTDOWN_HOURS`

The interval in hours to check for idle single-user MCP servers and shut them down. Set to `-1` to disable idle shutdown.

**Default:** `24` (1 day)

<a id="obot-doc-obot_server_multi_user_idle_server_shutdown_hours"></a>

### `OBOT_SERVER_MULTI_USER_IDLE_SERVER_SHUTDOWN_HOURS`

The interval in hours to check for idle multi-user MCP servers and shut them down. Set to `-1` to disable idle shutdown.

**Default:** `168` (7 days)

<a id="obot-doc-obot_server_default_mcpcatalog_path"></a>

### `OBOT_SERVER_DEFAULT_MCPCATALOG_PATH`

The path to the default MCP catalog (accessible to all users).

**Default:** not set

<a id="obot-doc-obot_server_default_system_mcpcatalog_path"></a>

### `OBOT_SERVER_DEFAULT_SYSTEM_MCPCATALOG_PATH`

The path to the default System MCP catalog.

**Default:** not set

<a id="obot-doc-mcp-server-network-access"></a>

## MCP server network access

<a id="obot-doc-obot_server_disallow_localhost_mcp"></a>

### `OBOT_SERVER_DISALLOW_LOCALHOST_MCP`

Disallow MCP servers that try to connect to localhost. Set to `false` only when you intentionally need MCP servers to reach localhost from the Obot runtime environment.

**Default:** `true`

<a id="obot-doc-obot_server_disallow_private_ipmcp"></a>

### `OBOT_SERVER_DISALLOW_PRIVATE_IPMCP`

Disallow MCP servers that resolve to private IP addresses. Set to `false` only when you intentionally need MCP servers to reach private network services from the Obot runtime environment.

**Default:** `true`

<a id="obot-doc-obot_server_disallow_link_local_mcp"></a>

### `OBOT_SERVER_DISALLOW_LINK_LOCAL_MCP`

Disallow MCP servers that resolve to link-local addresses. Set to `false` only when you intentionally need MCP servers to reach link-local services from the Obot runtime environment.

**Default:** `true`

<a id="obot-doc-obot_server_mcpnetwork_policy_provider_chart_repo"></a>

### `OBOT_SERVER_MCPNETWORK_POLICY_PROVIDER_CHART_REPO`

Helm repository URL for the MCP server egress control provider chart. Used with `OBOT_SERVER_MCPNETWORK_POLICY_PROVIDER_CHART_NAME`.

**Default:** not set

<a id="obot-doc-obot_server_mcpnetwork_policy_provider_chart_name"></a>

### `OBOT_SERVER_MCPNETWORK_POLICY_PROVIDER_CHART_NAME`

Helm chart name for the MCP server egress control provider. Setting this enables MCP server egress control.

**Default:** not set

<a id="obot-doc-obot_server_mcpnetwork_policy_provider_chart_version"></a>

### `OBOT_SERVER_MCPNETWORK_POLICY_PROVIDER_CHART_VERSION`

Helm chart version for the MCP server egress control provider.

**Default:** not set

<a id="obot-doc-obot_server_mcpnetwork_policy_provider_chart_path"></a>

### `OBOT_SERVER_MCPNETWORK_POLICY_PROVIDER_CHART_PATH`

Local filesystem path to an MCP server egress control provider chart. Setting this enables MCP server egress control and cannot be combined with chart repo, name, or version.

**Default:** not set

<a id="obot-doc-obot_server_mcpnetwork_policy_provider_values"></a>

### `OBOT_SERVER_MCPNETWORK_POLICY_PROVIDER_VALUES`

YAML or JSON values blob merged into the MCP server egress control provider chart values.

**Default:** not set

<a id="obot-doc-obot_server_mcpdefault_deny_all_egress"></a>

### `OBOT_SERVER_MCPDEFAULT_DENY_ALL_EGRESS`

Default new MCP servers to deny all egress when MCP server egress control is enabled and no egress domains are configured.

**Default:** `false`

<a id="obot-doc-mcp-pod-security"></a>

## MCP server pod security

<a id="obot-doc-obot_server_mcppod_security_enabled"></a>

### `OBOT_SERVER_MCPPOD_SECURITY_ENABLED`

Enable Pod Security Admission labels on the MCP namespace. Only applies when using kubernetes backend.

**Default:** `true`

<a id="obot-doc-obot_server_mcppod_security_enforce"></a>

### `OBOT_SERVER_MCPPOD_SECURITY_ENFORCE`

Pod Security Standards level to enforce for MCP namespace (privileged, baseline, or restricted). Only applies when using kubernetes backend.

**Default:** `restricted`

<a id="obot-doc-obot_server_mcppod_security_enforce_version"></a>

### `OBOT_SERVER_MCPPOD_SECURITY_ENFORCE_VERSION`

Kubernetes version for the PSA enforce policy. Only applies when using kubernetes backend.

**Default:** `latest`

<a id="obot-doc-obot_server_mcppod_security_audit"></a>

### `OBOT_SERVER_MCPPOD_SECURITY_AUDIT`

Pod Security Standards level to audit for MCP namespace (privileged, baseline, or restricted). Only applies when using kubernetes backend.

**Default:** `restricted`

<a id="obot-doc-obot_server_mcppod_security_audit_version"></a>

### `OBOT_SERVER_MCPPOD_SECURITY_AUDIT_VERSION`

Kubernetes version for the PSA audit policy. Only applies when using kubernetes backend.

**Default:** `latest`

<a id="obot-doc-obot_server_mcppod_security_warn"></a>

### `OBOT_SERVER_MCPPOD_SECURITY_WARN`

Pod Security Standards level to warn about for MCP namespace (privileged, baseline, or restricted). Only applies when using kubernetes backend.

**Default:** `restricted`

<a id="obot-doc-obot_server_mcppod_security_warn_version"></a>

### `OBOT_SERVER_MCPPOD_SECURITY_WARN_VERSION`

Kubernetes version for the PSA warn policy. Only applies when using kubernetes backend.

**Default:** `latest`

<a id="obot-doc-mcp-oauth"></a>

## MCP OAuth

<a id="obot-doc-obot_server_mcpoauth_client_expiration"></a>

### `OBOT_SERVER_MCPOAUTH_CLIENT_EXPIRATION`

The expiration time for dynamically registered MCP OAuth clients. Must be a valid duration string and may include days, hours, or minutes.

**Default:** `30d`

<a id="obot-doc-obot_server_mcpoauth_client_native_exceptions"></a>

### `OBOT_SERVER_MCPOAUTH_CLIENT_NATIVE_EXCEPTIONS`

A comma-separated list of additional Client ID Metadata Document URLs that default to the native application type when `application_type` is omitted.

**Default:** not set

<a id="obot-doc-obot_server_force_dynamic_client"></a>

### `OBOT_SERVER_FORCE_DYNAMIC_CLIENT`

Force Dynamic Client Registration when Obot authenticates to remote MCP servers, even when the authorization server supports Client ID Metadata Documents.

**Default:** `false`

<a id="obot-doc-devices"></a>

## Device management

<a id="obot-doc-obot_server_mdm_asset_source"></a>

### `OBOT_SERVER_MDM_ASSET_SOURCE`

The source for MDM assets. Can be a local directory, a tar archive path, or an HTTP(S) tarball URL.

**Default:** `https://github.com/obot-platform/obot-sentry/releases/download/v0.1.13/mdm-assets.tar.gz`

<a id="obot-doc-skills"></a>

## Skills

<a id="obot-doc-obot_default_skill_repo_url"></a>

### `OBOT_DEFAULT_SKILL_REPO_URL`

The default skill repository URL. Must be a full HTTPS GitHub URL (e.g. `https://github.com/org/repo`). Only used on first-time setup (before the first owner user is created). A SkillRepository resource will be created from this URL and synced automatically.

**Default:** `https://github.com/obot-platform/skills`

<a id="obot-doc-obot_default_skill_repo_ref"></a>

### `OBOT_DEFAULT_SKILL_REPO_REF`

The ref (branch, tag, or commit SHA) for the default skill repository. If empty, the repository's default branch is used. Only used on first-time setup.

**Default:** not set
