Skip to content

Concepts

Last updated: 2026-10-28T13:54:53-03:00 (UTC-3)

The vocabulary that appears in the console, the API and the configuration YAML.

A connection to an AI service: OpenAI, Anthropic, Bedrock, a vLLM on your network. It has a protocol (the format it speaks: openai, anthropic, gemini, bedrock…), a base URL and a credential. The credential can be an environment variable, a file, a vault or the cloud identity. There are 128 presets, prefilled connections for well-known providers. Providers.

The name apps use in the model field, such as chat-default. An alias points to one or more targets, each a provider + provider model pair (openai + gpt-4o-mini). With more than one target, fallback and routing come into play. The app never needs to know which provider served it.

What an alias can do: chat, responses, messages, embeddings, images, audio_speech, audio_transcriptions, video, rerank and others. A request for a capability the alias does not declare is rejected with 422. Capabilities.

The credential an app uses to call the gateway, in place of the provider’s key. It belongs to a team and defines which models and which routes (scopes such as route:chat) the app can use. It can also expire, be revoked or be rotated without downtime. The gateway stores only the hash; the value appears once, at creation. Access control.

The team is the unit of ownership and limits: keys, budgets, guardrail policies, eval datasets and captures belong to a team. The team policy is the ceiling on what any of its keys can do. Organizations group teams under a common model ceiling. Organizations.

Who signs in to the console: the bootstrap token, named users or SSO (OIDC). The role defines what each one can see and change:

  • global admin and viewer;
  • team_admin and team_viewer, limited to their own teams;
  • operator and user.

Permissions.

Each feature has a flag under features in the YAML. Some can also be turned on from the console. A flag that is off makes the feature not exist: the route responds 404, and the menu disappears. A flag never grants permission: it enables the behavior, and who can use it is still decided by key, team and role. The flag reference has the list.

The YAML (config/gateway.yaml) is the declarative base, versioned in your repository. The console and the admin API write overrides to PostgreSQL, with versioning and audit, and they can be reverted to the YAML. Secrets never live in the YAML: it only references the variable name.

Every call gets a request_id, returned in the X-Request-Id header, and a W3C traceparent. Both travel all the way to the provider and appear in the logs, the audit and the traces. With either of them, you can reconstruct the whole journey. Observability.

  • Usage: the tokens and latency measured on each call.
  • Valuation: the call’s estimated cost, at the catalog price.
  • Budget and TPM: limits in dollars and tokens that the gateway reserves before sending and settles afterwards, stopping the excess.

Costs and pricing.

m7gtwcontact@m7gtw.com