BlogRollout

Introducing an AI gateway in a company

Installing an AI gateway is the small part. Introducing it means that every application and every developer calls models through it, and that the direct provider keys are gone afterwards. Treat it as a migration: take stock of where models are called today, move one team first, then the applications one at a time, and close the old paths behind you. A gateway that people can route around has not been introduced yet. As of 27 November 2026.

By Updated

Take stock of today's model calls

You cannot move what you have not found. The list is usually longer than expected, because the first provider keys were created long before anyone thought about a platform.

  • The API keys in each provider console, with their owner and the date they were last used
  • The invoices of the last three months, by provider and account
  • A search of your repositories for provider SDKs and provider addresses
  • The coding agents and chat tools on developer machines, and how they authenticate
  • Software you bought that has AI built in. It will not go through your gateway, so note it and handle it in procurement

What changes in an application

For most applications the move is two settings. The address of the provider becomes the address of the gateway, and the provider key becomes a gateway key. Gateways such as LiteLLM speak the OpenAI API format, so the existing SDK stays.

An application that used the OpenAI SDK directly, pointed at the gateway. The model name is the one the gateway publishes
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://llm-gateway.example.com",
    api_key=os.environ["GATEWAY_KEY"],
)

reply = client.chat.completions.create(
    model="gpt-standard",
    messages=[{"role": "user", "content": "Hello"}],
)

The surprises are in the details. Model names change to the names the gateway publishes. Parameters that only one provider understands may not pass through unchanged. Long streamed answers can hit a timeout at a load balancer that was never in the path before. Test each application with its real requests in staging, and keep the old settings ready so that going back is one configuration change.

The order of the move

  1. 1

    Start with a team that wants it

    A team that asked for a coding agent or for cost figures has a reason to help. Their experience writes your documentation.

  2. 2

    Make the gateway the default for everything new

    From a date you announce, new projects get a gateway key and no provider key. This stops the list from growing.

  3. 3

    Move existing applications one at a time

    Staging first, then production, with the owner of the application present. Begin with the ones that spend the most.

  4. 4

    Revoke the direct key

    Once an application has run through the gateway without trouble, its provider key is deleted. Until then the move is not finished, however well it runs.

  5. 5

    Close the side doors

    Stop issuing provider keys outside the platform team. Where your network allows it, permit calls to model providers only from the gateway.

Make the gateway the easier path

People go around controls that slow them down. If a provider key takes five minutes with a credit card and a gateway key takes a ticket and a week, you know which one developers will choose. The gateway has to win on convenience.

  • A key in minutes, created by the person who needs it, after signing in with the company account
  • One page with settings to copy for the three tools your developers use most
  • The models people actually ask for, available on the first day
  • A small budget without approval, and a quick answer when someone needs more

How you know it worked

Three numbers tell you, and all three come from data you already have.

  • The share of your provider invoices that the gateway can explain. Compare gateway spend with the invoice each month
  • The number of provider keys that still exist outside the gateway. The target is zero
  • The time from asking for access to the first successful request

We set up gateways together with the client's platform team and help move the first applications over.

Questions

Do applications need code changes to use an AI gateway?

Usually only configuration: the base address and the key, and often the model name. Applications that use provider-specific features need a test, and sometimes a small change.

What about software we bought that has AI built in?

It calls its vendor's models and does not pass through your gateway. Cover it in procurement and in your AI policy, and keep it on the inventory so the picture stays complete.

When is an AI gateway fully introduced?

When no provider key exists outside it and the gateway's spend matches the provider invoices. Until then some traffic still goes around it.

Talk to an engineer

Bring one piece of work you would like to improve. The call takes 30 minutes and needs no access to your systems or your data.

Booking runs on Google Calendar.

Mickey Graf

Mickey Graf

Founder and CEO of Cloudsail

Rated 4.9 out of 5 on Clutch

Prefer to write first? Leave your email and a few lines. Mickey reads every message himself and replies by email with times for a call.

The button prepares an email in your own email program, for you to send. Privacy policy (draft)