comparison
AgentKit Cloud vs Firebase AI Logic
Firebase AI Logic locks you to Google's models and attests the app, not the user. AgentKit Cloud routes Anthropic, OpenAI, and Gemini, verifies the end user, and caps spend per user. Your keys stay yours, and the same SDK calls any provider directly if you leave.
Firebase AI Logic is Google's mobile SDK for calling Gemini, with App Check attestation (as of June 2026).
| AgentKit Cloud | Firebase AI Logic | |
|---|---|---|
| Model providers | Anthropic, OpenAI, Gemini, and Apple on-device | Google's models only (Gemini) |
| Provider keys off the device | Encrypted server-side; the app ships a publishable key | Held by Google's backend |
| End-user identity verified per request | A JWT from your trusted issuer, checked every request | App Check attests the app, not the user |
| Hard spend cap per user | A hard ceiling per user and per project. Hit it, requests stop. | Project limits and a per-user rate throttle, no per-user spend cap |
| Subscription-tier model routing | Bind tiers to RevenueCat entitlements | Not native |
| Change models without an app update | Name a tier; remap it server-side | Client, or Remote Config |
| On-device option | Apple Foundation Models on-device, cloud when needed | Cloud only on iOS |
| In-app agent loop with tools, guards, undo | Runs in your app with guards, undo, and run limits | Function calling, no guard or undo layer |
| Device attestation | Optional App Attest binds requests to real devices | App Check with App Attest or DeviceCheck |
| Backend to build and maintain | None. AgentKit Cloud is the backend. | Google runs the relay |
More than Google's models
Route the same app to Anthropic, OpenAI, or Gemini, and move a tier between them server-side.
Identity, not just attestation
App Check proves the app is genuine. AgentKit also verifies who the end user is, with a JWT from Apple, Firebase, or your own issuer, on every request.
Per-user billing and quotas
Attribute spend per end user, cap it per user and per project, and bind tiers to RevenueCat entitlements.