I built an AI gateway for mobile devs — swap models, change providers, and see all your AI traffic without shipping an update
I'm the builder behind MAIG (Mobile AI Gateway). I have been building some mobile apps and wanted to integrate them with AI providers. I kept hitting the same set of walls every time I tried to add LLM features to an iOS app and eventually built the thing I needed.
The problems I kept running into:
-
Can't change models without a release. If gpt-4o is hardcoded in your app, switching to a newer model or trying Claude means an App Store update, review queue, and waiting for users to upgrade. That's brutal for a feature that should be a config change.
-
Key rotation breaks existing users. If your provider key lives on the device and you need to rotate it — security incident, leak, new key policy — every user on an old build stops working until they update. You can't safely invalidate it without breaking clients.
-
Changing providers is a rebuild. Switching from OpenAI to Anthropic (or adding either as a fallback) means touching the integration in every client build, not just updating server config.
-
Zero visibility. Once the request leaves the app, you have no idea what happened. Latency, errors, which model responded, how many tokens — all invisible unless you build logging yourself.
What MAIG does:
It's a hosted AI gateway with a native Swift SDK (via Swift Package Manager) and a Kotlin SDK. Your app calls a named route — something like "chat" — and the gateway decides which provider and model to use, handles fallback if something's down, logs every request, and manages credentials server-side. The app just calls the route.
You can change the model, swap providers, or add a fallback in the dashboard — no app update required.
let client = MAIGClient(projectKey: "your-project-key")
for await chunk in try await client.streamChat(route: "chat", messages: messages) {
responseText += chunk
}
**Free tier**: 1,000 requests/month, 1 project, full dashboard and logs. No credit card required.
Still early — would genuinely appreciate feedback from iOS devs on the SDK design or anything that feels off. Happy to answer questions.
[maig.dev](https://maig.dev)
Posted Apr 9, 2026, 9:09 PM UTC