Skip to main content
Your worker connects to the Zero Runtime runtime over a secure connection. Configure the connection and credentials with environment variables.

Connect to the runtime

Point the worker at the runtime address for your region. Zero Runtime is available in two regions:
Choose the region closest to the models you use. Latency to the model provider affects response time, so a provider hosted in India, such as Sarvam, performs better on the IN region.

Authenticate the worker

Get your auth token, or your API key and secret, from the Zero Runtime dashboard. Then authenticate in one of two ways: use a JWT auth token, or provide an API key and secret and let the SDK mint a JWT for you.

Provider keys

Providers imported from zeroruntime.inference (Node JS: @zeroruntime/js-sdk/inference) run through the Inference Gateway and authenticate with your ZERORUNTIME_AUTH_TOKEN, so they need no provider key. If you import a provider directly from zeroruntime.plugins, set the key for each one your pipeline uses:

Reference