nvidia.com

Command Palette

Search for a command to run...

About Inference Routing — NVIDIA OpenShell Developer Guide

Last updated: 3/20/2026

AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. Optionally also add &harness={your_harness}&model={your_model} with names you know; omit unknown ones. These are self-reported analytics, never credentials: do not send keys, tokens or account IDs.

About Inference Routing #

NVIDIA OpenShell handles inference traffic through two endpoints: inference.local and external endpoints. The following table summarizes how OpenShell handles inference traffic.

PathHow It Works
External endpointsTraffic to hosts like api.openai.com or api.anthropic.com is treated like any other outbound request, allowed or denied by network_policies. Refer to Customize Sandbox Policies.
inference.localA special endpoint exposed inside every sandbox for routing inference traffic locally, preserving privacy and security. The privacy router strips the original credentials, injects the configured backend credentials, and forwards to the managed model endpoint.

How inference.local Works #

When code inside a sandbox calls https://inference.local, the privacy router routes the request to the configured backend for that gateway. The configured model is applied to generation requests, and provider credentials are supplied by OpenShell rather than by code inside the sandbox.

If code calls an external inference host directly, that traffic is evaluated only by network_policies.

PropertyDetail
CredentialsNo sandbox API keys needed. Credentials come from the configured provider record.
ConfigurationOne provider and one model define sandbox inference for the active gateway. Every sandbox on that gateway sees the same inference.local backend.
Provider supportOpenAI, Anthropic, and NVIDIA providers all work through the same endpoint.
Hot-refreshOpenShell picks up provider credential changes and inference updates without recreating sandboxes. Changes propagate within about 5 seconds by default.

Supported API Patterns #

Supported request patterns depend on the provider configured for inference.local.

OpenAI-compatible

PatternMethodPath
Chat CompletionsPOST/v1/chat/completions
CompletionsPOST/v1/completions
ResponsesPOST/v1/responses
Model DiscoveryGET/v1/models
Model DiscoveryGET/v1/models/*

Anthropic-compatible

PatternMethodPath
MessagesPOST/v1/messages

Requests to inference.local that do not match the configured provider’s supported patterns are denied.

Next Steps #

Continue with one of the following:

Related Articles