HomeGuidesAPI ReferenceRelease notes
Log In
Guides

Reference

Providers and routes, CLI commands, and environment variables

Quick lookup for the facts you need while deploying and integrating Sentinel.

Supported providers & intercepted routes

The gateway exposes each provider under its own path and intercepts only the text generation route below. All other routes for a provider pass through untouched.

ProviderCLI nameClient base-URL variableGateway pathIntercepted route
OpenAIopenaiOPENAI_BASE_URL/openaiv1/chat/completions
AnthropicanthropicANTHROPIC_BASE_URL/anthropicv1/messages
GeminigoogleGOOGLE_GEMINI_BASE_URL/gemini*generateContent*
Custom(as named)OPENAI_BASE_URL/{provider_name}v1/chat/completions

The gateway also exposes a diagnostic POST /test route. Send it a completion-style payload and it returns the same request after your guardrails run — with redactions applied, or a block reason if the request would be rejected — without forwarding it to the provider. Traffic on /test is never recorded in telemetry. The CLI wraps this route as sentinel test.

CLI commands

CommandDescription
sentinel --versionShow the installed CLI version.
sentinel quickstartGuided setup: create or connect a gateway, choose providers, and enable the proxy.
sentinel authLog in to SUPERWISE® through your browser. Add --client-credentials to authenticate with a Client ID and Secret instead (generate tokens).
sentinel gateway startBootstrap and run a local gateway container. --sentinel-id targets an existing Sentinel; --custom-providers '<json>' registers OpenAI-compatible backends (see Custom providers). Prints a link to the Sentinel in the SUPERWISE® app when it creates a new one.
sentinel gateway stopStop and remove the local gateway container. The Sentinel's configuration stays in the SUPERWISE® platform.
sentinel config urlSet the gateway URL to route traffic to.
sentinel config providersChoose which providers to intercept (openai, anthropic, google, or all).
sentinel testSend a test payload through the gateway's guardrails and print what would be blocked or redacted — no LLM call, and nothing recorded in telemetry.
sentinel proxy onInject the provider base-URL variables into new shell sessions.
sentinel proxy offRemove the variables and restore direct-to-cloud routing.

The CLI persists its state to ~/.config/sentinel/config.json (%APPDATA%\sentinel\config.json on Windows).

Gateway container environment variables

VariableRequiredDescription
SENTINEL_IDYesThe Sentinel ID registered in the SUPERWISE® platform.
SW_CLIENT_IDYesSUPERWISE® API Client ID used to register with the control plane (generate tokens).
SW_CLIENT_SECRETYesSUPERWISE® API Client Secret.
CUSTOM_PROVIDERSNoJSON array of {provider_name, base_url} objects for OpenAI-compatible backends. See Custom providers.
SENTINEL_EXTERNAL_HOSTNoThe URL where this gateway is reachable (e.g. https://sentinel.yourcompany.com). Reported to the control plane at startup and shown as the Gateway URL in the app's Connect dialog. If omitted, the gateway auto-detects its local IPv4 and registers http://<ip> (no port) — set it explicitly when running behind a load balancer or API gateway.

Gateway states

StateMeaning
PendingNo heartbeat received yet, or no heartbeat in the last 10 minutes.
ActiveA heartbeat was received within the last 10 minutes (heartbeats are sent every 60 seconds).

Did this page help you?