Skip to content

Overview

Last updated: 2026-11-27T14:16:11-03:00 (UTC-3)

A company that adopts AI soon has several teams calling several providers: one uses OpenAI, another Anthropic, a third an open model in its own cloud. Each one has its own key, pasted into environment variables scattered everywhere. Nobody can say how much each team spent yesterday, which prompt went out with a customer’s CPF, which model went down at 3 a.m., or whether that new app is still sending data to a provider the company stopped using.

m7gtw sits between your apps and the AI providers. Apps talk to a single, OpenAI-compatible API, using a gateway key. The gateway decides which provider and model each request goes to and applies the rules of the team that owns the key: allowed models, budget, guardrails. It also measures tokens, cost and latency and records the full journey of every call.

It runs on your infrastructure, with your PostgreSQL, as a binary, a container, a Docker Compose setup or a Helm chart. Nothing passes through a third-party service you have not configured.

Pillar What you get
One API for every model Ready-made provider presets (OpenAI, Anthropic, Gemini and Vertex, Bedrock, Azure, Mistral, Groq, Cohere and dozens of others) and media (image, speech, transcription, video). The gateway translates Chat Completions into each one’s format.
Reliability Fallback across providers, routing by weight, latency, cost or the meaning of the question, circuit breaker and emergency stop.
Cost under control Prices read automatically from public catalogs, estimated cost per call, budgets and token limits per key, team or end user.
Governance Virtual keys per team, organizations, SSO (OIDC), SCIM, role-based permissions and an audit trail of who changed what.
Content safety Input and output guardrails that mask or block sensitive data, with integrations such as Azure Content Safety, Presidio, Lakera and Bedrock Guardrails.
Visibility Request logs, analytics, OpenTelemetry traces, Prometheus metrics, alerts and log destinations (S3, Datadog, Langfuse…).
Quality Evals: datasets, experiments, LLM judges, rules on real traffic and annotation queues.
Tools and agents MCP servers and A2A agents behind the same access control.
Your apps, SDKs and agents Operators and teams
(OpenAI, Anthropic, Google SDK) (console /ui, admin API)
│ │
▼ ▼
┌────────────────────────────── m7gtw ───────────────────────────────┐
│ key and team → guardrails → budget → cache → routing │
│ → provider ─────── usage metering, cost, logs, traces, evals │
└────────────────────────────────────────────────────────────────────┘
│ │ │
▼ ▼ ▼
AI providers PostgreSQL (yours) OTLP · Prometheus · alerts

The detailed path of a request is in How it works.

  • Platform teams: give each product team a key with the right models and a budget, and see everything in one place.
  • Developers: change the SDK’s base URL and get fallback, caching and observability without changing their code.
  • Security and compliance: define what can go out to a provider, audit who did what and keep the data on their own infrastructure.
  • Finance: see cost per team, model and call, with budgets that stop overspending before it happens.
  1. Quickstart: bring up the gateway and make your first call in minutes.
  2. Concepts: the vocabulary that appears in the console and the configuration.
  3. Features: each area in detail.

m7gtw[email protected]