Skip to main content
Last updated on
Advanced — 0.0.x primitives

You don't need this page for a normal integration. Use the quickstarts and createMythos() instead. These low-level functions remain exported for custom setups.

Configuration (Python)

Environment variables read by mythos-sdk.

Variables​

VariableRequiredDefaultDescription
MYTHOS_KEYSoft in 0.5.0; required in 0.6.0—Dashboard → Settings → Mythos key; binds launch, handshake and callback tokens
MYTHOS_LISTING_IDYes*—Single listing ID
MYTHOS_LISTING_IDSYes*—Comma-separated IDs
MYTHOS_API_URLNohttps://api.mythos.workMythos API base URL

*Not required if resolve_listing_ids returns at least one ID.

With a key, missing or mismatched pkh rejects with ProducerMismatchError. Without a key, static listing launches remain silent; dynamic launches, handshake and callbacks warn once per process. See the shared binding contract.

load_config​

python
@dataclass
class MythosConfig:
listing_ids: list[str]
api_url: str

Examples​

env
# Mythos dashboard → Settings → Mythos key
MYTHOS_KEY=
MYTHOS_LISTING_ID=abc-123
MYTHOS_LISTING_IDS=abc-123,def-456
MYTHOS_API_URL=http://localhost:5001

See also​