Consumers & Authentication

Every call to a route must carry a credential. Consumers are per-client credentials that only reach the routes you grant them, so you can hand one to a partner, an internal team or a single application without exposing anything else.


Two Kinds of Credentials

CredentialPrefixReachesUse it for
Consumer credentialgwc_live_Only the routes granted to itAnything you hand to a third party, a team or an individual application
Organization gateway keygw_live_Every route in the organizationYour own backend

Both are sent the same way:

Bash
Authorization: Bearer YOUR_CREDENTIAL

The organization gateway key is created automatically and managed in Settings. Because it is not scoped to any route, it never appears in a route's list of who can call it.

Provider keys stay in the gateway

Clients authenticate to ByteHide, never to the model provider. The provider key lives in the integration, encrypted, and the gateway uses it when it forwards the request.

MCP routes can also authenticate callers with tokens from your own identity provider. See MCP Authentication.


Consumers List

Open AI runtime → Consumers.

ByteHide AI Runtime Consumers list showing an active consumer credential, its token prefix, granted route and last useClick to expand

ColumnDescription
StatusActive, Revoked (permanent) or Blocked (by the Firewall; lift it there)
ConsumerConsumer name and when the credential was issued
TokenOnly the display prefix. The full token is shown once, when it is issued
Granted routesThe routes this credential can call. Any other route answers 403
Last usedWhen the credential was last used. Updated about once a minute, so a token you just used can still read as unused

Rows group by consumer name, so during a rotation you can tell the new credential from the old one.


Issue a Credential

  1. Click Issue Credential.
  2. Enter the Consumer name: who holds this token. It is shown across the console and in every trace.
  3. Check the Granted routes.
  4. Click Issue credential.

ByteHide AI Runtime Issue credential dialog with consumer name and granted routesClick to expand

The token is displayed once. Copy it and store it somewhere safe: after you close the dialog only the prefix stays visible, and the token cannot be recovered.

ByteHide AI Runtime Credential issued dialog warning that the token is only shown onceClick to expand


Rotate and Revoke

ActionEffect
RotateIssues a new token for the same consumer. The old token keeps working until you revoke it, so you can swap clients over without downtime
RevokePermanently disables the token. There is no undo; issue a new credential instead

Two active credentials during a rotation is expected

After Rotate, the consumer has two active tokens on purpose. Revoke the old one only after every client uses the new one: revoking the wrong one cuts the consumer off.


Consumers in Incidences

Every incidence records the consumer that sent the request. In Incidences, filter by consumer to see one client's traffic. The filter uses the credential ID (gwc_...), not the display name, so renaming a consumer never breaks a saved filter.


Next Steps

Gateway Mode

Call a route from your SDK with a consumer credential

Firewall

Block a consumer, IP or country outright

Previous
Routes