Environment variables¶
This page lists every environment variable declared in openmed/core/settings.schema.json, grouped by schema section. It is generated from the schema, and the docs tests fail when the two drift apart.
Each row gives the type of the parsed value, the default that applies when the variable is unset, its bounds, whether it holds a secret, and the module that owns it. Notes on reading the table:
- Secret settings never show a default. Prefer the matching
*_FILEsetting, which names a mounted secret file, where one is listed. - user-supplied settings point at data you provide, such as an evaluation dataset. They have no default, and OpenMed never downloads or bundles the data.
- unset means the variable has no value by default and the owning module falls back to the behavior described in the row.
- comma-separated values are lists such as
a,b,c; JSON values are a JSON document; byte size values accept a byte count or a size such as512MiB; duration values accept seconds or a duration such as5m.
The declarations come from openmed.core.settings_registry, which never reads the environment. See Configuration & Validation for how OpenMedConfig is loaded and Configuration Precedence Audit for value-free provenance reports.
Core¶
Library settings that map onto OpenMedConfig fields declared in config.schema.json.
19 settings.
| Variable | Description | Type | Default | Bounds | Secret | Module |
|---|---|---|---|---|---|---|
HF_TOKEN | Hugging Face token for private models; kept in memory only. | string | secret, no default | - | yes | openmed.core.config |
OPENMED_BNB_4BIT_USE_DOUBLE_QUANT | Whether bitsandbytes 4-bit double quantization is enabled. | boolean | true | - | no | openmed.core.config |
OPENMED_CHINESE_PKUSEG_DOMAIN | Domain passed to the pkuseg Chinese segmenter. | string | medicine | at least 1 character | no | openmed.core.config |
OPENMED_CHINESE_SEGMENTATION_BACKEND | Chinese segmentation backend. | string | jieba | one of jieba, pkuseg, hanlp | no | openmed.core.config |
OPENMED_CHINESE_USER_DICT | Optional user dictionary for Chinese segmentation. | string (path) | unset | - | no | openmed.core.config |
OPENMED_CLINICAL_PROTECT | Whether clinical vocabulary protection is enabled. | boolean | true | - | no | openmed.core.config |
OPENMED_CLINICAL_PROTECT_TERMS | Additional clinical terms protected from over-redaction. | list (comma-separated) | unset | - | no | openmed.core.config |
OPENMED_CLINICAL_PROTECT_USE_BUILTIN | Whether bundled clinical protection terms are enabled. | boolean | true | - | no | openmed.core.config |
OPENMED_CONFIG | OpenMedConfig TOML file loaded when no path is passed. Default: the directory follows XDG_CONFIG_HOME when it is set. | string (path) | ~/.config/openmed/config.toml | - | no | openmed.core.config |
OPENMED_DEVICE | Legacy torch device override, checked after OPENMED_TORCH_DEVICE. | string | unset | - | no | openmed.torch.device |
OPENMED_INDIC_NAME_SIMILARITY_THRESHOLD | Similarity threshold for transliteration-aware name matching. | number | 0.8 | minimum 0.5; maximum 1 | no | openmed.core.config |
OPENMED_LOAD_IN_4BIT | Whether CUDA torch loads use bitsandbytes 4-bit quantization. | boolean | false | - | no | openmed.core.config |
OPENMED_MEDICAL_TOKENIZER_EXCEPTIONS | Terms kept intact during medical token remapping. | list (comma-separated) | unset | - | no | openmed.core.config |
OPENMED_OFFLINE | Keep inference and de-identification cache-only; any value other than 0, false, no, off or empty enables it. | boolean | false | - | no | openmed.core.offline |
OPENMED_PROFILE | Name of a built-in or custom profile. Default: the REST service treats an unset profile as prod. | string | unset | at least 1 character | no | openmed.core.config |
OPENMED_TORCH_ATTENTION_BACKEND | PyTorch/Transformers attention implementation. | string | auto | one of auto, flash_attention_2, sdpa, eager | no | openmed.core.config |
OPENMED_TORCH_DEVICE | Torch device override checked when the configured device is unset or auto. Default: unset selects MPS, then CUDA, then CPU. | string | unset | - | no | openmed.torch.device |
OPENMED_TRANSLITERATION_AWARE_NAME_MATCHING | Whether Indic name matching links transliteration variants. | boolean | false | - | no | openmed.core.config |
OPENMED_USE_MEDICAL_TOKENIZER | Whether to use medical-aware output token remapping. | boolean | true | - | no | openmed.core.config |
Service¶
REST, gRPC and GraphQL service settings read under openmed/service/.
144 settings.
| Variable | Description | Type | Default | Bounds | Secret | Module |
|---|---|---|---|---|---|---|
OPENMED_SERVICE_ADMISSION_MAX_CONCURRENCY | Fair-admission global in-flight request ceiling; 0 leaves that level unlimited. | integer | 0 | minimum 0 | no | openmed.service.admission |
OPENMED_SERVICE_ADMISSION_MAX_QUEUE | Requests that may wait at the global admission level; 0 rejects a request that cannot start at once. | integer | 0 | minimum 0 | no | openmed.service.admission |
OPENMED_SERVICE_ADMISSION_NAMESPACE_CLAIM | JWT claim whose value names the admission namespace; unset disables namespace accounting. | string | unset | matches ^[A-Za-z0-9_.:-]{1,64}$ | no | openmed.service.admission |
OPENMED_SERVICE_ADMISSION_NAMESPACE_MAX_CONCURRENCY | Fair-admission per-namespace in-flight request ceiling; 0 leaves that level unlimited. | integer | 0 | minimum 0 | no | openmed.service.admission |
OPENMED_SERVICE_ADMISSION_NAMESPACE_MAX_QUEUE | Requests that may wait at the per-namespace admission level; 0 rejects a request that cannot start at once. | integer | 0 | minimum 0 | no | openmed.service.admission |
OPENMED_SERVICE_ADMISSION_PRINCIPAL_MAX_CONCURRENCY | Fair-admission per-principal in-flight request ceiling; 0 leaves that level unlimited. | integer | 0 | minimum 0 | no | openmed.service.admission |
OPENMED_SERVICE_ADMISSION_PRINCIPAL_MAX_QUEUE | Requests that may wait at the per-principal admission level; 0 rejects a request that cannot start at once. | integer | 0 | minimum 0 | no | openmed.service.admission |
OPENMED_SERVICE_ADMISSION_QUEUE_TIMEOUT_SECONDS | Seconds a queued request waits for admission before it is rejected. | number | 5.0 | above 0 | no | openmed.service.admission |
OPENMED_SERVICE_ADMISSION_RETRY_AFTER_SECONDS | Retry-After seconds returned with an admission rejection. | number | 1.0 | above 0 | no | openmed.service.admission |
OPENMED_SERVICE_AUTH_API_KEYS | Hashed static API-key credentials as a JSON list (or an object with a keys list). | array or object (JSON) | secret, no default | - | yes | openmed.service.auth |
OPENMED_SERVICE_AUTH_API_KEYS_FILE | File holding OPENMED_SERVICE_AUTH_API_KEYS, such as a mounted secret. | string (path) | unset | - | no | openmed.service.auth |
OPENMED_SERVICE_AUTH_DENY_BY_DEFAULT | Require authentication on routes that have no explicit scope policy. | boolean | true | - | no | openmed.service.auth |
OPENMED_SERVICE_AUTH_ENABLED | Enable API-key and JWT authentication for the REST and gRPC service. | boolean | false | - | no | openmed.service.auth |
OPENMED_SERVICE_AUTH_FAILURE_RATE_LIMIT_BURST | Burst capacity of the failed-authentication rate limiter. | integer | 10 | minimum 0 | no | openmed.service.auth |
OPENMED_SERVICE_AUTH_FAILURE_RATE_LIMIT_KEY | Client identity that keys failed-authentication buckets (aliases process, xff, client and remote are accepted). | string | x-forwarded-for | one of global, x-forwarded-for, peer | no | openmed.service.auth |
OPENMED_SERVICE_AUTH_FAILURE_RATE_LIMIT_RPS | Refill rate of the failed-authentication rate limiter, per second. | number | 5.0 | minimum 0 | no | openmed.service.auth |
OPENMED_SERVICE_AUTH_JWKS | Inline JSON Web Key Set used to verify bearer JWTs. | array or object (JSON) | secret, no default | - | yes | openmed.service.auth |
OPENMED_SERVICE_AUTH_JWKS_FILE | File holding the JSON Web Key Set used to verify bearer JWTs. | string (path) | unset | - | no | openmed.service.auth |
OPENMED_SERVICE_AUTH_JWT_AUDIENCE | Comma- or space-separated accepted JWT audiences (aud); empty accepts any. | list (comma-separated) | empty | - | no | openmed.service.auth |
OPENMED_SERVICE_AUTH_JWT_ISSUER | Required JWT issuer (iss); unset accepts any issuer. | string | unset | - | no | openmed.service.auth |
OPENMED_SERVICE_AUTH_JWT_LEEWAY_SECONDS | Clock-skew leeway in seconds for JWT time claims. | number | 0.0 | minimum 0 | no | openmed.service.auth |
OPENMED_SERVICE_AUTH_JWT_MAX_LIFETIME_SECONDS | Longest accepted JWT lifetime in seconds. Default: 3600 under the prod security profile; unset under dev applies no lifetime cap. | number | 3600.0 | minimum 0 | no | openmed.service.auth |
OPENMED_SERVICE_AUTH_ROUTE_SCOPES | JSON object of per-route scope overrides keyed by 'METHOD /path'. | object (JSON) | unset | - | no | openmed.service.auth |
OPENMED_SERVICE_BATCHING_ENABLED | Enable dynamic batching for model-backed REST endpoints. | boolean | false | - | no | openmed.service.runtime |
OPENMED_SERVICE_BATCH_HIGH_WATERMARK | Outstanding-request depth at which load shedding starts. Default: the value of OPENMED_SERVICE_BATCH_MAX_QUEUE_SIZE. | integer | 256 | minimum 1 | no | openmed.service.runtime |
OPENMED_SERVICE_BATCH_LOW_WATERMARK | Depth below which load shedding stops; must be below the high watermark. Default: half of OPENMED_SERVICE_BATCH_HIGH_WATERMARK. | integer | 128 | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_BATCH_MAX_QUEUE_SIZE | Per-priority dynamic-batching queue capacity. | integer | 256 | minimum 1 | no | openmed.service.runtime |
OPENMED_SERVICE_BATCH_MAX_QUEUE_WAIT_MS | Longest time in milliseconds a request may wait before batch dispatch. | number | 1000.0 | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_BATCH_MAX_SIZE | Largest dynamic batch. | integer | 8 | minimum 1; maximum 100 | no | openmed.service.runtime |
OPENMED_SERVICE_BATCH_MAX_WAIT_MS | Milliseconds a batch waits to fill before dispatch. | number | 5.0 | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_BULK_INPUT_ROOTS | Comma-separated local directories FHIR bulk jobs may read from. | list (comma-separated) | empty | - | no | openmed.service.bulk_data |
OPENMED_SERVICE_BULK_JOB_TTL_SECONDS | Seconds a terminal FHIR bulk job record is retained. | integer | 3600 | minimum 1 | no | openmed.service.bulk_data |
OPENMED_SERVICE_BULK_MAX_RETAINED_JOBS | Largest number of retained FHIR bulk job records. | integer | 256 | minimum 1 | no | openmed.service.bulk_data |
OPENMED_SERVICE_BULK_MAX_RUNNING_JOBS | Largest number of concurrently running FHIR bulk jobs. | integer | 4 | minimum 1 | no | openmed.service.bulk_data |
OPENMED_SERVICE_BULK_OUTPUT_ROOT | Local directory under which FHIR bulk jobs write their output. | string (path) | unset | - | no | openmed.service.bulk_data |
OPENMED_SERVICE_CIRCUIT_BREAKER_FAILURE_THRESHOLD | Consecutive failures that open the circuit breaker. | integer | 3 | minimum 1 | no | openmed.service.runtime |
OPENMED_SERVICE_CIRCUIT_BREAKER_RECOVERY_TIMEOUT_SECONDS | Seconds an open circuit breaker waits before a trial call. | number | 30.0 | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_COALESCING_ENABLED | Coalesce identical concurrent model requests. | boolean | false | - | no | openmed.service.runtime |
OPENMED_SERVICE_CONCURRENCY_WAIT_SECONDS | Seconds a request waits for a concurrency slot before rejection. | number | 0.05 | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_CORS_ORIGINS | Comma-separated exact CORS origins; wildcards are rejected. | list (comma-separated) | empty | - | no | openmed.service.security_headers |
OPENMED_SERVICE_DEFAULT_MODEL_FOOTPRINT_BYTES | Assumed per-model memory footprint for admission when a model reports none. | integer (byte size) | 536870912 | minimum 1 | no | openmed.service.runtime |
OPENMED_SERVICE_DIGEST_KEY | Deployment secret, at least 32 bytes, for keyed digests of identifiers in job records and audits. | string | secret, no default | at least 32 characters | yes | openmed.service.keyed_digest |
OPENMED_SERVICE_DIGEST_KEY_FILE | File holding OPENMED_SERVICE_DIGEST_KEY, such as a mounted secret. | string (path) | unset | - | no | openmed.service.keyed_digest |
OPENMED_SERVICE_DIGEST_KEY_ID | Public identifier recorded with keyed digests. | string | unset | - | no | openmed.service.keyed_digest |
OPENMED_SERVICE_EXPERIMENTAL_MULTIMODAL_PREFLIGHT | Enable the experimental multimodal preflight route. | boolean | false | - | no | openmed.service.app |
OPENMED_SERVICE_GRAPHQL_DEADLINE_SECONDS | Seconds one GraphQL request may run, from body parsing to cleanup. | number | 300.0 | above 0; maximum 86,400 | no | openmed.service.graphql_limits |
OPENMED_SERVICE_GRAPHQL_MAX_ALIASES | Aliased fields after GraphQL fragment expansion. | integer | 16 | minimum 0; maximum 1,000,000 | no | openmed.service.graphql_limits |
OPENMED_SERVICE_GRAPHQL_MAX_DEPTH | Field nesting after GraphQL fragment expansion. | integer | 20 | minimum 1; maximum 128 | no | openmed.service.graphql_limits |
OPENMED_SERVICE_GRAPHQL_MAX_DOCUMENT_BYTES | UTF-8 bytes allowed in a GraphQL query document. | integer | 131072 | minimum 1; maximum 16,777,216 | no | openmed.service.graphql_limits |
OPENMED_SERVICE_GRAPHQL_MAX_FRAGMENTS | Fragment definitions allowed in one GraphQL document. | integer | 64 | minimum 0; maximum 10,000 | no | openmed.service.graphql_limits |
OPENMED_SERVICE_GRAPHQL_MAX_NESTING | Deepest bracket nesting in a GraphQL document. | integer | 32 | minimum 1; maximum 128 | no | openmed.service.graphql_limits |
OPENMED_SERVICE_GRAPHQL_MAX_NODES | Syntax-tree nodes allowed in a parsed GraphQL document. | integer | 5000 | minimum 1; maximum 1,000,000 | no | openmed.service.graphql_limits |
OPENMED_SERVICE_GRAPHQL_MAX_OPERATIONS | Operation definitions allowed in one GraphQL document. | integer | 8 | minimum 1; maximum 1000 | no | openmed.service.graphql_limits |
OPENMED_SERVICE_GRAPHQL_MAX_SELECTED_FIELDS | Field selections after GraphQL fragment expansion. | integer | 1000 | minimum 1; maximum 1,000,000 | no | openmed.service.graphql_limits |
OPENMED_SERVICE_GRAPHQL_MAX_TOKENS | Lexical tokens allowed in a GraphQL document. | integer | 2000 | minimum 1; maximum 1,000,000 | no | openmed.service.graphql_limits |
OPENMED_SERVICE_GRAPHQL_MAX_VARIABLES | Variables supplied with, or declared by, a GraphQL request. | integer | 32 | minimum 0; maximum 10,000 | no | openmed.service.graphql_limits |
OPENMED_SERVICE_GRAPHQL_MAX_VARIABLE_BYTES | Compact UTF-8 JSON size of GraphQL variables. | integer | 8388608 | minimum 0; maximum 268,435,456 | no | openmed.service.graphql_limits |
OPENMED_SERVICE_GRAPHQL_MAX_VARIABLE_DEPTH | Container nesting allowed in GraphQL variables. | integer | 16 | minimum 1; maximum 128 | no | openmed.service.graphql_limits |
OPENMED_SERVICE_IDEMPOTENCY_MAX_KEYS | Largest number of remembered idempotency keys. | integer | 1024 | minimum 1; maximum 100,000 | no | openmed.service.idempotency |
OPENMED_SERVICE_IDEMPOTENCY_TTL_SECONDS | Seconds an idempotency key is remembered. | integer | 86400 | minimum 1; maximum 604,800 | no | openmed.service.idempotency |
OPENMED_SERVICE_JOBS_LEASE_SECONDS | Seconds a worker's async job lease lasts before recovery may reclaim it. | integer | 60 | minimum 1 | no | openmed.service.jobs |
OPENMED_SERVICE_JOBS_MAX_ATTEMPTS | Attempts per async job, including the first. | integer | 3 | minimum 1 | no | openmed.service.jobs |
OPENMED_SERVICE_JOBS_MAX_DOCUMENTS | Largest number of documents in one async job. | integer | 1000 | minimum 1 | no | openmed.service.jobs |
OPENMED_SERVICE_JOBS_MAX_PENDING | Largest number of pending async jobs. | integer | 64 | minimum 1 | no | openmed.service.jobs |
OPENMED_SERVICE_JOBS_MAX_QUEUED_BYTES | Largest total queued async job text, in bytes. | integer | 67108864 | minimum 1 | no | openmed.service.jobs |
OPENMED_SERVICE_JOBS_PAYLOAD_DIR | Directory for encrypted async job payloads. | string (path) | ~/.cache/openmed/service-job-payloads | - | no | openmed.service.jobs |
OPENMED_SERVICE_JOBS_PAYLOAD_MODE | Async job payload retention: memory only, or encrypted on disk with a caller-supplied key provider. Default: unset keeps payloads in memory unless a key provider is supplied. | string | unset | one of memory, encrypted | no | openmed.service.jobs |
OPENMED_SERVICE_JOBS_PAYLOAD_RETENTION_SECONDS | Longest async job payload retention in seconds. | integer | 86400 | minimum 1 | no | openmed.service.jobs |
OPENMED_SERVICE_JOBS_RECONCILE_SECONDS | Interval of the background async job reconcile pass; 0 disables it. | number | 5.0 | minimum 0 | no | openmed.service.jobs |
OPENMED_SERVICE_JOBS_RETRY_BASE_SECONDS | Base retry delay for async jobs, in seconds. | integer | 5 | minimum 0 | no | openmed.service.jobs |
OPENMED_SERVICE_JOBS_RETRY_MAX_SECONDS | Largest retry delay for async jobs, in seconds. | integer | 300 | minimum 0 | no | openmed.service.jobs |
OPENMED_SERVICE_JOBS_STORE_PATH | Async job metadata store file. | string (path) | ~/.cache/openmed/service-jobs.json | - | no | openmed.service.jobs |
OPENMED_SERVICE_JOBS_TTL_SECONDS | Seconds terminal async job metadata is retained. | integer | 86400 | minimum 1 | no | openmed.service.jobs |
OPENMED_SERVICE_JOBS_WORKERS | Async job worker threads. | integer | 2 | minimum 1 | no | openmed.service.jobs |
OPENMED_SERVICE_JOURNEY_GRANTS | Inline Journey grant document as JSON; set this or the file form, not both. | array or object (JSON) | unset | - | no | openmed.service.journey_access |
OPENMED_SERVICE_JOURNEY_GRANTS_FILE | File holding the Journey grant document. | string (path) | unset | - | no | openmed.service.journey_access |
OPENMED_SERVICE_KEEP_ALIVE | Default model keep-alive as seconds or a duration such as 5m; unset or off keeps models resident. | number (duration) | unset | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_LIMIT_CONCURRENCY | Reference launcher connection concurrency limit. | integer | 128 | minimum 1; maximum 100,000 | no | openmed.service.request_limits |
OPENMED_SERVICE_LISTEN_HOST | Bind host recorded by the reference launcher for the security-profile self-check. | string | unset | - | no | openmed.service.security_profile |
OPENMED_SERVICE_LISTEN_TLS | Whether the listener terminates TLS, recorded by the reference launcher. | boolean | false | - | no | openmed.service.security_profile |
OPENMED_SERVICE_LOG_FORMAT | Access-log format: plain or text selects plain lines, anything else JSON. | string | json | one of json, plain, text | no | openmed.service.logging |
OPENMED_SERVICE_LOG_LEVEL | Access-log level name or number; off disables the access log. | string | INFO | - | no | openmed.service.logging |
OPENMED_SERVICE_MAX_REQUEST_BYTES | Largest accepted request body in bytes. | integer | 16777216 | minimum 1; maximum 268,435,456 | no | openmed.service.request_limits |
OPENMED_SERVICE_MAX_RESIDENT_MODELS | Largest number of models kept resident in the warm pool; unset is unbounded. | integer | unset | minimum 1 | no | openmed.service.runtime |
OPENMED_SERVICE_MAX_TEXT_LENGTH | Largest request text in characters; invalid values fall back to the default. | integer | 1000000 | minimum 1 | no | openmed.service.limits |
OPENMED_SERVICE_METRICS_ENABLED | Expose the Prometheus /metrics endpoint. | boolean | false | - | no | openmed.service.metrics |
OPENMED_SERVICE_MLX_PAGED_KV_CACHE_BUDGET | MLX-LM paged KV-cache memory budget in bytes or a size such as 2GiB; 0 disables the paged cache. | integer (byte size) | 0 | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_MLX_PAGED_KV_CACHE_BYTES_PER_TOKEN | Estimated KV-cache bytes per token used for MLX budget accounting. | integer | 65536 | minimum 1 | no | openmed.service.runtime |
OPENMED_SERVICE_MLX_PAGED_KV_CACHE_CHUNK_TOKENS | Prefill chunk size in tokens for the MLX paged KV cache. | integer | 512 | minimum 1 | no | openmed.service.runtime |
OPENMED_SERVICE_MLX_PAGED_KV_CACHE_PAGE_TOKENS | Tokens per MLX paged KV-cache page. | integer | 128 | minimum 1 | no | openmed.service.runtime |
OPENMED_SERVICE_MLX_PAGED_KV_CACHE_WINDOW_TOKENS | Sliding attention window in tokens for the MLX paged KV cache; unset keeps the full context. | integer | unset | minimum 1 | no | openmed.service.runtime |
OPENMED_SERVICE_MODEL_ADMISSION_WAIT_SECONDS | Seconds a model load waits for memory budget before rejection. | number | 0.05 | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_MODEL_MEMORY_BUDGET_BYTES | Warm-pool memory budget in bytes or a size such as 4GiB; unset is unbounded. | integer (byte size) | unset | minimum 1 | no | openmed.service.runtime |
OPENMED_SERVICE_MTLS_CA_BUNDLE | CA bundle that verifies client certificates; required with mTLS. | string (path) | unset | - | no | openmed.service.mtls |
OPENMED_SERVICE_MTLS_CLIENT_CERT_HEADER | Header a trusted proxy uses to forward the client certificate. | string | unset | matches ^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$ | no | openmed.service.mtls |
OPENMED_SERVICE_MTLS_CRL_FAIL_CLOSED | Reject requests when a CRL is invalid or stale; only dev and test profiles may disable it. Default: false under the dev and test profiles. | boolean | true | - | no | openmed.service.mtls |
OPENMED_SERVICE_MTLS_CRL_FILES | Comma-separated local PEM or DER certificate revocation list files. | list (comma-separated) | empty | - | no | openmed.service.mtls |
OPENMED_SERVICE_MTLS_CRL_GRACE_SECONDS | Seconds a CRL stays usable past its next-update time. | number | 0.0 | minimum 0 | no | openmed.service.mtls |
OPENMED_SERVICE_MTLS_ENABLED | Require client certificates (mTLS) for the service. | boolean | false | - | no | openmed.service.mtls |
OPENMED_SERVICE_MTLS_PRINCIPALS | JSON list mapping certificate subjects or SANs to principals. | array (JSON) | unset | - | no | openmed.service.mtls |
OPENMED_SERVICE_MTLS_RELOAD_INTERVAL_SECONDS | Poll interval for reloading the CA bundle and CRLs; unset disables reloading. | number | unset | minimum 1; maximum 3600 | no | openmed.service.mtls |
OPENMED_SERVICE_MTLS_TRUSTED_PROXIES | Comma-separated proxy addresses or CIDR networks allowed to forward client certificates. | list (comma-separated) | empty | - | no | openmed.service.mtls |
OPENMED_SERVICE_MTLS_TRUST_OVERLAP_SECONDS | Seconds a replaced CA bundle stays trusted after a reload. | number | 300.0 | minimum 0; maximum 86,400 | no | openmed.service.mtls |
OPENMED_SERVICE_OPENAPI_ENABLED | Serve /openapi.json; outside the dev profile it stays behind authentication and the HTML docs stay disabled. Default: true when OPENMED_PROFILE is dev. | boolean | false | - | no | openmed.service.auth |
OPENMED_SERVICE_OTLP_ENDPOINT | OTLP exporter endpoint for traces; setting it opts in to tracing. | string (URL) | unset | - | no | openmed.service.tracing |
OPENMED_SERVICE_OTLP_HEADERS | Comma-separated key=value headers sent to the OTLP exporter, such as credentials. | string | secret, no default | - | yes | openmed.service.tracing |
OPENMED_SERVICE_OTLP_HEADERS_FILE | File holding OPENMED_SERVICE_OTLP_HEADERS, such as a mounted secret. | string (path) | unset | - | no | openmed.service.tracing |
OPENMED_SERVICE_OTLP_TIMEOUT_SECONDS | OTLP exporter timeout in seconds. | number | 10.0 | above 0 | no | openmed.service.tracing |
OPENMED_SERVICE_PRELOAD_MODELS | Comma-separated model identifiers loaded at startup. | list (comma-separated) | empty | - | no | openmed.service.runtime |
OPENMED_SERVICE_PRIVACY_GATEWAY_ENDPOINT | External LLM endpoint that receives only redacted content through the privacy gateway; unset disables the gateway transport. | string (URL) | unset | - | no | openmed.service.privacy_gateway |
OPENMED_SERVICE_RATE_LIMIT_BURST | Token-bucket burst capacity; 0 disables rate limiting. | integer | 0 | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_RATE_LIMIT_MAX_CONCURRENCY | Largest number of in-flight model requests; 0 leaves it unlimited. | integer | 0 | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_RATE_LIMIT_RPS | Token-bucket refill rate in requests per second; 0 disables rate limiting. | number | 0.0 | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_REPLICA_ACCEPT_LOCAL_STATE | Comma-separated replica-local components accepted in multi-replica mode. | list (comma-separated) | empty | - | no | openmed.service.replica_state |
OPENMED_SERVICE_REPLICA_DISABLE_LOCAL_STATE | Comma-separated replica-local components to disable. | list (comma-separated) | empty | - | no | openmed.service.replica_state |
OPENMED_SERVICE_REPLICA_MODE | Replica topology the service is deployed in. | string | single | one of single, multi | no | openmed.service.replica_state |
OPENMED_SERVICE_REQUEST_BODY_GRACE_SECONDS | Seconds before the minimum body transfer rate applies. | number | 10.0 | above 0; maximum 3600 | no | openmed.service.request_limits |
OPENMED_SERVICE_REQUEST_BODY_MIN_BYTES_PER_SECOND | Minimum request body transfer rate once the grace period is spent. | integer | 1024 | minimum 0; maximum 1,073,741,824 | no | openmed.service.request_limits |
OPENMED_SERVICE_REQUEST_BODY_TIMEOUT_SECONDS | Seconds allowed to receive a whole request body. | number | 60.0 | above 0; maximum 3600 | no | openmed.service.request_limits |
OPENMED_SERVICE_REQUEST_SIGNING_MAX_SKEW_SECONDS | Largest accepted request-signature clock skew in seconds. | integer | 300 | minimum 1 | no | openmed.service.request_signing |
OPENMED_SERVICE_REQUEST_SIGNING_NONCE_CACHE_SIZE | Nonces remembered for request-signature replay protection. | integer | 10000 | minimum 1 | no | openmed.service.request_signing |
OPENMED_SERVICE_REQUEST_SIGNING_ROUTES | Comma-separated 'METHOD /template' routes that require an HMAC request signature. | list (comma-separated) | empty | - | no | openmed.service.request_signing |
OPENMED_SERVICE_REQUEST_SIGNING_SECRET_FILE | File holding the request-signing HMAC secret; required with signed routes. | string (path) | unset | - | no | openmed.service.request_signing |
OPENMED_SERVICE_RESILIENCE_ENABLED | Enable retries and circuit breaking around model calls. | boolean | true | - | no | openmed.service.runtime |
OPENMED_SERVICE_RETRY_BACKOFF_INITIAL_SECONDS | Initial retry backoff in seconds. | number | 0.05 | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_RETRY_BACKOFF_JITTER_SECONDS | Random jitter added to each retry backoff, in seconds. | number | 0.01 | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_RETRY_BACKOFF_MAX_SECONDS | Largest retry backoff in seconds. | number | 1.0 | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_RETRY_BACKOFF_MULTIPLIER | Exponential retry backoff multiplier. | number | 2.0 | minimum 1 | no | openmed.service.runtime |
OPENMED_SERVICE_RETRY_MAX_ATTEMPTS | Attempts per model call, including the first. | integer | 3 | minimum 1 | no | openmed.service.runtime |
OPENMED_SERVICE_SECURITY_PROFILE | Service security profile. Default: unset follows OPENMED_PROFILE: dev, test and fast select dev; anything else selects prod. | string | prod | one of dev, prod | no | openmed.service.security_profile |
OPENMED_SERVICE_SERVED_MODELS | Comma-separated model identifiers network requests may select. Default: unset serves the built-in default models plus the preloaded ones. | list (comma-separated) | unset | - | no | openmed.service.runtime |
OPENMED_SERVICE_SHUTDOWN_DRAIN_SECONDS | Seconds accepted work may finish during graceful shutdown. | number | 30.0 | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_SHUTDOWN_RELEASE_SECONDS | Seconds for the flush-and-release window after the shutdown drain. | number | 5.0 | minimum 0 | no | openmed.service.runtime |
OPENMED_SERVICE_STREAM_MAX_EVENTS | Largest number of NDJSON events one stream may emit. | integer | 100000 | minimum 1; maximum 10,000,000 | no | openmed.service.runtime |
OPENMED_SERVICE_STREAM_WRITE_IDLE_SECONDS | Seconds one NDJSON stream write may stay blocked on the client. | number | 30.0 | above 0 | no | openmed.service.runtime |
OPENMED_SERVICE_SYSTEM_ONE | Enable the opt-in POST /v1/systemone privacy route. | boolean | false | - | no | openmed.service.app |
OPENMED_SERVICE_THROTTLE_KEY | Client identity that keys throttle buckets (aliases process, xff, client and remote are accepted). | string | global | one of global, x-forwarded-for, peer | no | openmed.service.runtime |
OPENMED_SERVICE_THROTTLE_MAX_TRACKED_KEYS | Per-limiter bound on tracked client identities. | integer | 10000 | minimum 1 | no | openmed.service.runtime |
OPENMED_SERVICE_TIMEOUT_GRACEFUL_SHUTDOWN | Seconds shutdown waits for open connections before cancelling. | integer | 30 | minimum 1; maximum 3600 | no | openmed.service.request_limits |
OPENMED_SERVICE_TIMEOUT_KEEP_ALIVE | Seconds an idle HTTP keep-alive connection stays open. | integer | 5 | minimum 1; maximum 3600 | no | openmed.service.request_limits |
OPENMED_SERVICE_TRACING_ENABLED | Enable OpenTelemetry request tracing. Default: true when OPENMED_SERVICE_OTLP_ENDPOINT is set. | boolean | false | - | no | openmed.service.tracing |
OPENMED_SERVICE_TRUSTED_HOSTS | Comma-separated allowed Host header values; the global '*' is rejected. | list (comma-separated) | localhost,127.0.0.1,[::1] | - | no | openmed.service.security_headers |
OPENMED_SERVICE_TRUSTED_PROXIES | Comma-separated reverse-proxy addresses or CIDR networks whose X-Forwarded-For entries may identify clients. | list (comma-separated) | empty | - | no | openmed.service.runtime |
OPENMED_SERVICE_TRUSTED_PROXY_HOPS | Trusted proxy hops skipped when reading X-Forwarded-For. | integer | 1 | minimum 1 | no | openmed.service.runtime |
MCP¶
Model Context Protocol server transport and opt-in remote authorization settings.
11 settings.
| Variable | Description | Type | Default | Bounds | Secret | Module |
|---|---|---|---|---|---|---|
OPENMED_MCP_ALLOW_INSECURE_LOCALHOST | Allow plain-HTTP MCP authorization URLs on localhost, for local development only. | boolean | false | - | no | openmed.service.security |
OPENMED_MCP_AUTHORIZATION_SERVER_URL | OAuth authorization server URL for MCP clients. | string (URL) | unset | - | no | openmed.service.security |
OPENMED_MCP_AUTH_ENABLED | Enable OAuth authorization for remote MCP transports. | boolean | false | - | no | openmed.service.security |
OPENMED_MCP_HOST | Bind host for the streamable HTTP transport. | string | 127.0.0.1 | - | no | openmed.mcp.server |
OPENMED_MCP_INJECTION_GUARD_MODE | Prompt-injection guard mode for MCP tool inputs: strict rejects a flagged input, allow quarantines it. | string | strict | one of allow, strict | no | openmed.mcp.server |
OPENMED_MCP_PATH | Path for the streamable HTTP transport. | string | /mcp | - | no | openmed.mcp.server |
OPENMED_MCP_PORT | Port for the streamable HTTP transport; a non-integer value falls back to the default. | integer | 8081 | - | no | openmed.mcp.server |
OPENMED_MCP_REQUIRED_SCOPES | Comma- or space-separated scopes every MCP request needs. | list (comma-separated) | empty | - | no | openmed.service.security |
OPENMED_MCP_RESOURCE_URL | Protected-resource URL advertised for MCP authorization. | string (URL) | unset | - | no | openmed.service.security |
OPENMED_MCP_STATE_CHANGE_SCOPES | Comma- or space-separated scopes required for state-changing MCP tools. | list (comma-separated) | mcp:state:write | - | no | openmed.service.security |
OPENMED_MCP_TRANSPORT | MCP transport the server uses. | string | stdio | one of stdio, streamable-http, http | no | openmed.mcp.server |
OpenHIM¶
Opt-in OpenHIM mediator registration, heartbeat and de-identification settings.
15 settings.
| Variable | Description | Type | Default | Bounds | Secret | Module |
|---|---|---|---|---|---|---|
OPENMED_OPENHIM_ALLOW_INSECURE_HTTP | Allow an http:// OpenHIM core URL. | boolean | false | - | no | openmed.service.openhim_mediator |
OPENMED_OPENHIM_AUTH_MODE | OpenHIM API authentication scheme. | string | basic | one of basic, token | no | openmed.service.openhim_mediator |
OPENMED_OPENHIM_CONFIG_PATH | Mediator registration JSON file; unset registers the built-in de-identification mediator. | string (path) | unset | - | no | openmed.service.openhim_mediator |
OPENMED_OPENHIM_CORE_URL | OpenHIM core API URL; required when the mediator is enabled and https:// unless insecure HTTP is allowed. | string (URL) | unset | - | no | openmed.service.openhim_mediator |
OPENMED_OPENHIM_HEARTBEAT_INTERVAL_SECONDS | Seconds between mediator heartbeats. | number | 10.0 | above 0; maximum 30 | no | openmed.service.openhim_mediator |
OPENMED_OPENHIM_MEDIATOR_ENABLED | Register the service as an OpenHIM mediator and send heartbeats. | boolean | false | - | no | openmed.service.openhim_mediator |
OPENMED_OPENHIM_MEDIATOR_HOST | Host OpenHIM uses to reach the built-in mediator registration. | string | openmed-mediator | - | no | openmed.service.openhim_mediator |
OPENMED_OPENHIM_MEDIATOR_PORT | Port OpenHIM uses to reach the built-in mediator registration. | integer | 8080 | minimum 1; maximum 65,535 | no | openmed.service.openhim_mediator |
OPENMED_OPENHIM_METHOD | De-identification method the mediator applies. | string | replace | one of aadhaar_mask, format_preserve, hash, mask, remove, replace, shift_dates | no | openmed.service.openhim_mediator |
OPENMED_OPENHIM_PASSWORD | OpenHIM API password or token; required when the mediator is enabled. | string | secret, no default | - | yes | openmed.service.openhim_mediator |
OPENMED_OPENHIM_PASSWORD_FILE | File holding OPENMED_OPENHIM_PASSWORD, such as a mounted secret. | string (path) | unset | - | no | openmed.service.openhim_mediator |
OPENMED_OPENHIM_POLICY | Bundled de-identification policy the mediator applies. | string | hipaa_safe_harbor | at least 1 character | no | openmed.service.openhim_mediator |
OPENMED_OPENHIM_REQUEST_TIMEOUT_SECONDS | Timeout in seconds for OpenHIM core requests. | number | 10.0 | above 0 | no | openmed.service.openhim_mediator |
OPENMED_OPENHIM_USERNAME | OpenHIM API user; required when the mediator is enabled. | string | unset | - | no | openmed.service.openhim_mediator |
OPENMED_OPENHIM_VERIFY_TLS | Verify the OpenHIM core TLS certificate. | boolean | true | - | no | openmed.service.openhim_mediator |
Journey¶
Journey store deployment, PostgreSQL connection and store deadline settings.
9 settings.
| Variable | Description | Type | Default | Bounds | Secret | Module |
|---|---|---|---|---|---|---|
OPENMED_JOURNEY_ARTIFACT_ROOT | Directory the Journey deployment tool writes artifacts under. | string (path) | /artifacts | - | no | openmed.deploy.journey |
OPENMED_JOURNEY_POSTGRES_DSN | PostgreSQL connection string for the Journey store; it can carry credentials. | string | secret, no default | - | yes | openmed.deploy.journey |
OPENMED_JOURNEY_POSTGRES_DSN_FILE | File holding OPENMED_JOURNEY_POSTGRES_DSN, such as a mounted secret. | string (path) | unset | - | no | openmed.deploy.journey |
OPENMED_JOURNEY_POSTGRES_SSLCERT | Client certificate file for the Journey PostgreSQL connection. | string (path) | unset | - | no | openmed.deploy.journey |
OPENMED_JOURNEY_POSTGRES_SSLKEY | Client private-key file for the Journey PostgreSQL connection. | string (path) | unset | - | no | openmed.deploy.journey |
OPENMED_JOURNEY_POSTGRES_SSLROOTCERT | CA certificate file that verifies the Journey PostgreSQL server. | string (path) | unset | - | no | openmed.deploy.journey |
OPENMED_JOURNEY_SCHEMA | PostgreSQL schema the Journey deployment tool uses. | string | openmed_journey | - | no | openmed.deploy.journey |
OPENMED_JOURNEY_STORE_LOCK_WAIT_SECONDS | Cap in seconds on one Journey store lock wait. | number | 5.0 | above 0; maximum 3600 | no | openmed.structured.store.deadlines |
OPENMED_JOURNEY_STORE_TIMEOUT_SECONDS | Cap in seconds on one Journey store operation. | number | 30.0 | above 0; maximum 3600 | no | openmed.structured.store.deadlines |
Evaluation datasets¶
Local paths to user-supplied evaluation data. Every path is supplied by the user and has no default; OpenMed never downloads, bundles or commits these corpora, and restricted datasets such as i2b2, n2c2 and MIMIC are evaluation-only.
19 settings.
| Variable | Description | Type | Default | Bounds | Secret | Module |
|---|---|---|---|---|---|---|
OPENMED_BIORED_PATH | Directory of BioRED relation data (credentialed corpus under data-use terms). | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.i2b2 |
OPENMED_CBLUE_PATH | Root directory of user-supplied, access-controlled CBLUE task data. | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.cblue |
OPENMED_CEGS_NGRID_PATH | Directory of CEGS N-GRID de-identification data (credentialed corpus under data-use terms). | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.cegs_ngrid |
OPENMED_CHIP_CDN_PATH | Directory of user-supplied CHIP-CDN data from CBLUE. | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.cblue |
OPENMED_CMEEE_PATH | Directory of user-supplied CMeEE data from CBLUE. | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.cmeee |
OPENMED_I2B2_PATH | Directory of i2b2 2006 or 2014 de-identification data (credentialed corpus under data-use terms). | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.i2b2 |
OPENMED_I2B2_YEAR | i2b2 de-identification release the loader reads. | integer | 2014 | one of 2006, 2014 | no | openmed.eval.datasets.i2b2 |
OPENMED_IMCS_V2_NER_PATH | Directory of user-supplied IMCS-V2-NER data from CBLUE. | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.cblue |
OPENMED_MADE_PATH | Directory of MADE 1.0 medication and ADE data (credentialed corpus under data-use terms). | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.made |
OPENMED_MEDNLI_PATH | Directory of MedNLI data (PhysioNet credentialed corpus under data-use terms). | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.mednli |
OPENMED_MIMIC_IV_BHC_PATH | Directory of MIMIC-IV brief hospital course data (PhysioNet credentialed corpus under data-use terms). | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.mimic_iv_bhc |
OPENMED_N2C2_2018_PATH | Directory of n2c2 2018 relation data (credentialed corpus under data-use terms). | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.i2b2 |
OPENMED_N2C2_2018_TRACK2_PATH | Directory of n2c2 2018 Track 2 medication relation data (credentialed corpus under data-use terms). | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.n2c2_2018_track2 |
OPENMED_N2C2_2022_PATH | Directory of n2c2 2022 relation data (credentialed corpus under data-use terms). | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.i2b2 |
OPENMED_N2C2_PATH | Directory of n2c2 2018 Track 1 de-identification data (credentialed corpus under data-use terms). | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.n2c2_2018 |
OPENMED_NAAMAPADAM_PATH | Directory of user-supplied Naamapadam or IndicGLUE NER packs. | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.naamapadam |
OPENMED_SHAC_PATH | Directory of SHAC social-determinants data (credentialed corpus under data-use terms). | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.shac |
OPENMED_THYME_PATH | Directory of THYME temporal relation data (credentialed corpus under data-use terms). | string (path) | user-supplied, no default | - | no | openmed.eval.datasets.thyme |
OPENMED_ZH_CLINICAL_NER_MODEL_DIR | Local Chinese clinical NER checkpoint directory for the evaluation suite; OpenMed never downloads these weights. | string (path) | user-supplied, no default | - | no | openmed.eval.suites.chinese_clinical_ner |
Integrations¶
Service-adjacent integrations: egress policy, the privacy proxy, the sidecar, webhook signing, terminology caches and out-of-process bridges.
23 settings.
| Variable | Description | Type | Default | Bounds | Secret | Module |
|---|---|---|---|---|---|---|
OPENMED_ACCEPT_MEDCAT_LICENSE | Acknowledge the Elastic License 2.0 terms before the out-of-process MedCAT bridge runs. | boolean | false | - | no | openmed.interop.bridges.medcat |
OPENMED_ACCEPT_SDCMICRO_LICENSE | Acknowledge the GPL-2.0 terms before the out-of-process sdcMicro bridge runs Rscript. | boolean | false | - | no | openmed.interop.bridges.sdcmicro |
OPENMED_ARX_COMMAND | Command that runs a user-installed ARX anonymization tool; unset leaves the ARX bridge unavailable. | string | unset | - | no | openmed.interop.bridges.arx_bridge |
OPENMED_EGRESS_MODE | How outbound operations that no egress rule matches are treated. Default: permissive under the dev and test profiles. | string | enforce | one of deny, enforce, permissive | no | openmed.service.egress |
OPENMED_EGRESS_RULES | Inline egress rule document as JSON. | array or object (JSON) | unset | - | no | openmed.service.egress |
OPENMED_EGRESS_RULES_FILE | File holding an egress rule document. | string (path) | unset | - | no | openmed.service.egress |
OPENMED_GROUNDING_CACHE_DIR | Terminology grounding vocabulary cache used by the service and MCP grounding tools. Default: unset uses OPENMED_CACHE_DIR/grounding, then ~/.cache/openmed/grounding. | string (path) | unset | - | no | openmed.service.app |
OPENMED_ICD11_CACHE_DIR | Local ICD-11 API response cache directory. | string (path) | ~/.cache/openmed/icd11 | - | no | openmed.interop.icd11_api |
OPENMED_ONCOTREE_PATH | Local OncoTree release JSON file supplied by the user. | string (path) | user-supplied, no default | - | no | openmed.clinical.oncotree |
OPENMED_ONCOTREE_VERSION | Release version of the user-supplied OncoTree file, which does not carry one. | string | unset | - | no | openmed.clinical.oncotree |
OPENMED_PRIVACY_PROXY_MAX_MESSAGES | Largest number of chat messages in one privacy-proxy request. | integer | 256 | minimum 1; maximum 100,000 | no | openmed.service.privacy_proxy.settings |
OPENMED_PRIVACY_PROXY_MAX_REQUEST_BYTES | Largest privacy-proxy request body in bytes. | integer | 16777216 | minimum 1; maximum 268,435,456 | no | openmed.service.privacy_proxy.settings |
OPENMED_PRIVACY_PROXY_MAX_STREAM_SECONDS | Longest privacy-proxy streaming response, in seconds. | number | 300.0 | above 0; maximum 86,400 | no | openmed.service.privacy_proxy.settings |
OPENMED_PRIVACY_PROXY_MAX_TEXT_CHARS | Largest total message text in one privacy-proxy request, in characters. | integer | 1000000 | minimum 1; maximum 67,108,864 | no | openmed.service.privacy_proxy.settings |
OPENMED_PRIVACY_PROXY_TRUSTED_HOSTS | Comma-separated allowed Host header values for the privacy proxy; the global '*' is rejected. | list (comma-separated) | localhost,127.0.0.1,[::1] | - | no | openmed.service.privacy_proxy.settings |
OPENMED_SIDECAR_HASH_SECRET | Secret that keys sidecar hashes; unset uses a random per-process secret. | string | secret, no default | - | yes | openmed.service.sidecar |
OPENMED_SIDECAR_HASH_SECRET_FILE | File holding OPENMED_SIDECAR_HASH_SECRET, such as a mounted secret. | string (path) | unset | - | no | openmed.service.sidecar |
OPENMED_SIDECAR_MODEL | Model the de-identification sidecar loads. | string | OpenMed/OpenMed-PII-SuperClinical-Small-44M-v1 | at most 4096 characters | no | openmed.service.sidecar |
OPENMED_TERMINOLOGY_CACHE_DIR | Terminology snapshot cache directory. Default: unset uses OPENMED_CACHE_DIR/grounding/snapshots, then the XDG cache directory. | string (path) | unset | - | no | openmed.clinical.grounding.snapshot_cache |
OPENMED_WEBHOOK_SIGNING_KEYRING_FILE | Webhook signing keyring file with rotating key generations. | string (path) | unset | - | no | openmed.service.signing_keys |
OPENMED_WEBHOOK_SIGNING_KEY_ID | Public identifier of the single webhook signing secret. | string | unset | - | no | openmed.service.signing_keys |
OPENMED_WEBHOOK_SIGNING_SECRET | Webhook signing secret; set it, its file form, or a keyring file, never more than one. | string | secret, no default | - | yes | openmed.service.signing_keys |
OPENMED_WEBHOOK_SIGNING_SECRET_FILE | File holding OPENMED_WEBHOOK_SIGNING_SECRET. | string (path) | unset | - | no | openmed.service.signing_keys |
Runtime¶
Library runtime switches outside OpenMedConfig: caches, model loading and verification, telemetry and guards.
14 settings.
| Variable | Description | Type | Default | Bounds | Secret | Module |
|---|---|---|---|---|---|---|
OPENMED_CACHE_DIR | Root cache directory for grounding vocabularies, terminology snapshots and public evaluation datasets; not an OpenMedConfig override. Default: unset uses ~/.cache/openmed. | string (path) | unset | - | no | openmed.clinical.grounding.vocab |
OPENMED_EVAL_CACHE_DIR | Evaluation report cache directory. Default: unset uses the XDG cache directory, then ~/.cache/openmed/eval. | string (path) | unset | - | no | openmed.eval.cache |
OPENMED_INDIC_NER_MODEL | Model path or repository for Indic NER when no model is passed. | string | unset | - | no | openmed.core.pii_i18n |
OPENMED_INJECTION_GUARD_MODE | Default prompt-injection guard mode: strict rejects flagged text, allow quarantines it. | string | strict | one of allow, strict | no | openmed.agent.security.injection_guard |
OPENMED_MAX_TEXT_BYTES | Largest UTF-8 text size in bytes accepted by the input gateway; invalid values fall back to the default. | integer | 4000000 | minimum 1 | no | openmed.utils.gateway |
OPENMED_MLX_COMPILE | Compile the MLX forward pass. | boolean | false | - | no | openmed.mlx.inference |
OPENMED_MLX_MMAP | Memory-map MLX weights; set 0, false, no or off for eager loading. | boolean | true | - | no | openmed.mlx.models |
OPENMED_MODEL_VERIFY_STRICT | Fail closed when a model has no registry integrity metadata. | boolean | false | - | no | openmed.core.model_integrity |
OPENMED_SECTION_MODEL | Learned clinical section classifier directory. | string (path) | unset | - | no | openmed.clinical.sections.learned |
OPENMED_SKIP_MODEL_VERIFY | Skip model integrity verification; deployment posture checks flag it. | boolean | false | - | no | openmed.core.model_integrity |
OPENMED_TELEMETRY_ENABLED | Opt in to core pipeline telemetry; it stays off unless enabled. | boolean | false | - | no | openmed.core.telemetry |
OPENMED_TRACE_DISCOVERY | Discover local trace stores automatically; 0, false, no, off or disabled turns it off. | boolean | true | - | no | openmed.traces.discovery |
OPENMED_TRACE_ROOTS | Extra trace stores as store_type=path entries separated by the platform path separator. | string | unset | - | no | openmed.traces.discovery |
OPENMED_TRUSTED_REMOTE_CODE_MODELS | Comma-separated Hugging Face repositories added to the trust_remote_code allowlist. | list (comma-separated) | empty | - | no | openmed.torch.privacy_filter |
Release evidence¶
Signing keys and thresholds for release, evaluation and audit evidence. Keys are secrets and declare no default.
10 settings.
| Variable | Description | Type | Default | Bounds | Secret | Module |
|---|---|---|---|---|---|---|
OPENMED_ANNOTATION_KEY | HMAC key that hashes surfaces during annotation import. | string | secret, no default | - | yes | openmed.cli.annotation_interchange |
OPENMED_AUDIT_KEY | HMAC key that verifies signed audit reports. | string | secret, no default | - | yes | openmed.cli.main |
OPENMED_FEDERATED_EVAL_KEY | Key that signs federated leakage evaluation reports. | string | secret, no default | - | yes | openmed.eval.harness |
OPENMED_JOURNEY_RELEASE_KEY | HMAC key, at least 32 bytes, that signs Journey release packets. | string | secret, no default | - | yes | openmed.eval.journey_release |
OPENMED_KIT_RELEASE_KEY | HMAC key, at least 32 bytes, that signs kit release packets. | string | secret, no default | - | yes | openmed.eval.kit_release |
OPENMED_READINESS_KEY | Key that signs release-readiness reports; unset uses a local development key that is not secret. | string | secret, no default | - | yes | openmed.eval.release_readiness |
OPENMED_REDTEAM_MAX_BYPASS_RATE | Largest red-team bypass rate the gate accepts; unset applies no threshold. | number | unset | minimum 0; maximum 1 | no | openmed.eval.redteam |
OPENMED_RELATION_SCORECARD_KEY | Key that signs relation-extraction scorecards. | string | secret, no default | - | yes | openmed.eval.harness |
OPENMED_RELEASE_GATE_KEY | Key that signs release-gate reports; unset uses a local development key that is not secret. | string | secret, no default | - | yes | openmed.eval.release_gates |
OPENMED_SERVICE_RELEASE_KEY | HMAC key, at least 32 bytes, that signs service release packets. | string | secret, no default | - | yes | openmed.eval.service_release |
Identifiers that are not settings¶
These OPENMED_* identifiers appear in the code but are not environment settings: constants such as FHIR system names and error codes, or names OpenMed exports to a subprocess. Setting them in the environment has no effect.
| Identifier | Reason |
|---|---|
OPENMED_ADMISSION_REJECTED | GraphQL error code returned to clients |
OPENMED_ARX_UNAVAILABLE | sentinel the ARX runner prints when ARX is missing |
OPENMED_CANONICAL_HASH_SYSTEM | name of an exported FHIR identifier-system or extension constant |
OPENMED_CLINICAL_DISCLAIMER | name of the exported clinical disclaimer constant, checked in __all__ |
OPENMED_CONFIDENCE_EXTENSION | name of an exported FHIR identifier-system or extension constant |
OPENMED_CONFIG_FIELDS | name of the exported tuple of portable SDK configuration fields |
OPENMED_DEID | DICOM implementation version name written to outputs |
OPENMED_DEIDENTIFY | default Snowflake UDF name |
OPENMED_DEIDENTIFY_DESCRIPTOR | name of an exported UDF descriptor constant |
OPENMED_DERIVATION_HASH_SYSTEM | name of an exported FHIR identifier-system or extension constant |
OPENMED_DETECTOR_INPUT | variable OpenMed exports to an external detector subprocess; OpenMed never reads it |
OPENMED_DETECTOR_OUTPUT | variable OpenMed exports to an external detector subprocess; OpenMed never reads it |
OPENMED_DETECTOR_OUTPUT_DIR | variable OpenMed exports to an external detector subprocess; OpenMed never reads it |
OPENMED_EVIDENCE_ID_SYSTEM | name of an exported FHIR identifier-system or extension constant |
OPENMED_FACT_EXTENSION | name of an exported FHIR identifier-system or extension constant |
OPENMED_FACT_ID_SYSTEM | name of an exported FHIR identifier-system or extension constant |
OPENMED_FORBIDDEN | GraphQL error code returned to clients |
OPENMED_GRAPHQL_BATCH_UNSUPPORTED | GraphQL error code returned to clients |
OPENMED_GRAPHQL_LIMIT_EXCEEDED | GraphQL error code returned to clients |
OPENMED_GRAPHQL_TIMEOUT | GraphQL error code returned to clients |
OPENMED_HOSTILE_SENTINEL | private fault-injection probe: the decoder isolation tests plant it to prove the sandbox strips the parent environment; not a setting |
OPENMED_JOURNEY_EVENT_EXTENSION | name of an exported FHIR identifier-system or extension constant |
OPENMED_PROVENANCE_EXTENSION | name of an exported FHIR identifier-system or extension constant |
OPENMED_REASON_METADATA_KEY | name of an exported gRPC metadata key constant |
OPENMED_REQUEST_KEYS | name of an exported request-key tuple constant |
OPENMED_RESOLUTION_EXTENSION | name of an exported FHIR identifier-system or extension constant |
OPENMED_RESOLVER_ERROR | GraphQL error code returned to clients |
OPENMED_REVIEW_EXTENSION | name of an exported FHIR identifier-system or extension constant |
OPENMED_SDCMICRO_UNAVAILABLE | sentinel the sdcMicro runner prints when the R package is missing |
OPENMED_SNAPSHOT_EXTENSION | name of an exported FHIR identifier-system or extension constant |
OPENMED_SUBJECT_ID_SYSTEM | name of an exported FHIR identifier-system or extension constant |
OPENMED_SYNTH | name of an exported synthetic-corpus constant |
OPENMED_SYNTH1 | DICOM implementation version name of synthetic overlays |
OPENMED_SYNTHETIC | synthetic DICOM private creator and OMOP vocabulary id |
OPENMED_SYNTHETIC_PERSON | synthetic probe surface used by plugin conformance |
OPENMED_SYNTH_DATASET_CARD | name of an exported synthetic-corpus constant |
OPENMED_SYNTH_DEFAULT_CORPUS_SIZE | name of an exported synthetic-corpus constant |
OPENMED_SYNTH_DEFAULT_SEED | name of an exported synthetic-corpus constant |
OPENMED_SYNTH_REFERENCE_MODEL | name of an exported synthetic-corpus constant |
OPENMED_SYSTEM_NAME | name of an exported comparator system-name constant |