A developer pastes the company API key into a script. A colleague copies it into an internal tool. Someone in marketing pays for a personal account and expenses it. At month end, finance sees a bill and asks a fair question: which team spent this, and on what?
Often nobody can answer. That is not a problem with the models. It is a problem with how access is handed out.
Three common setups, three gaps
| Setup | What works | Where it leaks |
|---|---|---|
| One shared API key | Quick to start | No idea who used it. Replacing it breaks everything that depends on it |
| Seat plans for chat | Good for everyday chat work | Does not cover scripts, internal apps and agents that need API keys |
| Personal accounts | Zero setup for the company | The company holds no logs, no budget and no off switch |
None of these is wrong on day one. They stop working when AI moves from a few curious people to daily use across teams.
What a private AI gateway does
A gateway is a small service that sits between your people and the model providers. Staff and internal apps call the gateway. The gateway checks the key, applies that person’s budget and rate limit, records tokens and cost, then forwards the request to your own Anthropic or OpenAI account.
flowchart TD
A["Staff and internal apps"] --> B["Gateway on your server"]
B --> C["Check key budget and rate limit"]
C --> D["Record tokens and cost"]
D --> E["Your Anthropic account"]
D --> F["Your OpenAI account"]
In practice this changes four things:
- Each person gets their own key. The provider keys stay on the server, and staff never see them.
- Budgets exist before the bill does. Monthly limits per team and per person, with alerts as spending approaches them.
- Spend has a name on it. You can break down cost by team and by model.
- Leaving is clean. Revoke one person’s key without touching anyone else’s.
One point to be precise about: your logs and keys stay on your server, but the prompts themselves still go to Anthropic or OpenAI, under their terms. A gateway controls and records access. It does not keep data inside your network. If prompts must never leave, you need a locally hosted model such as simpliLLM.
If you run one yourself
Open-source gateways exist, and LiteLLM is a widely used one. Installing it is the easier part. Decide these before you roll it out:
- Owner. Who applies updates, watches uptime and certificates, and handles joiners and leavers?
- Budgets. What is the monthly limit per team and per person, and who hears about it first?
- Logging. Do you record only tokens and cost, or request content too? How long do you keep it, and how are staff told?
- Recovery. Are the database and configuration backed up, and has anyone tried restoring them?
A gateway holds your provider keys, so treat it as sensitive infrastructure. In March 2026 the LiteLLM project reported that two releases on PyPI, 1.82.7 and 1.82.8, had been compromised with credential-stealing code. It said the official proxy Docker image was not affected. Whatever gateway you use, pin versions, test updates before applying them, and know how to rotate keys.
Also check that you may use the provider APIs where your company and users are: see Anthropic’s list and OpenAI’s list. A gateway does not change those rules.
Five questions to answer this week
Your answers show how exposed you are:
- How many places is our AI API key stored right now?
- Can we say how much each team spent last month?
- If someone resigned today, what AI access would still work tomorrow?
- What do we log, how long do we keep it, and have we told staff?
- Who gets alerted if spending doubles overnight?
FAQ
We already pay for ChatGPT or Claude seats. Do we need a gateway?
Seats cover chat. A gateway is for developers, apps and agents that use API keys. If nobody uses the API, you probably do not need one yet.
Does a gateway make AI cheaper?
Not by itself. You still pay the provider for usage. What you gain is seeing where the money goes and setting limits.
Is logging staff requests allowed?
It depends on your law and your policy, for example PDPA or GDPR. Decide what you log and tell staff. This is not legal advice.
If you would rather have someone set this up and look after it on your own server, that is what our simpliAI Gateway service does. Questions are welcome at hello@simplico.net.
Latest Posts
- simpliMachine: A Used CNC Marketplace Where Every Listing Shows How Far It Has Been Checked December 2, 2026
- Maintenance Software That Speaks Your Plant’s Language: An Idea for a Maintenance System Localized for Each Country, and Why We Want Your Feedback First November 26, 2026
- Security Monitoring for Japanese-Affiliated Plants in Thailand: A One-Site Readiness Assessment November 25, 2026
- ERP Integrations That Break Silently: A One-Integration Reliability Review for Japanese-Affiliated Plants in Thailand November 25, 2026
- How to Get Started Building an AI Agent: A Practical Developer Guide for 2026 November 17, 2026
- Connected Plants, Open Doors: Six Security Problems in Manufacturing, Logistics and OT (and What We Do About Them) November 16, 2026