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 (Node.js)

Environment variables read by @mythos-work/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_IDNo*—Single listing ID
MYTHOS_LISTING_IDSNo*—Comma-separated IDs; overrides single ID
MYTHOS_API_URLNohttps://api.mythos.workMythos API base URL

*Not required if resolveListingIds 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.

loadConfig​

Internal function used by verify and API client:

typescript
interface MythosConfig {
listingIds: string[];
apiUrl: string;
resolveListingIds?: () => Promise<string[]>;
}

Examples​

env
# Mythos dashboard → Settings → Mythos key
MYTHOS_KEY=
# Single listing
MYTHOS_LISTING_ID=abc-123

# Multiple listings
MYTHOS_LISTING_IDS=abc-123,def-456

# Local backend
MYTHOS_API_URL=http://localhost:5001

See also​