We run a twelve-person remote shop. Shared provider keys were the original failure: one long-running agent loop and the monthly bill moved by four figures before anyone noticed. The fix was a small internal quota gateway. It issues per-seat sub-tokens, enforces a daily dollar cap, and forwards chat and embeddings calls upstream. SafeLine entered only after that gateway became a public HTTP surface. This is a production adoption note from integrating chaitin/SafeLine in front of that service, not a feature tour.
Where it sits
SafeLine is a self-hosted WAF and reverse proxy. In our topology it terminates TLS, runs detection and a coarse rate limit, and proxies to the quota service on a private Docker network. It does not count tokens, and we do not ask it to. Token budgets are an application concern.…