comparison

AgentKit Cloud vs AIProxy

AIProxy protects your provider key behind a proxy. AgentKit Cloud does that and runs the rest of the production layer: end-user identity, a hard per-user spend cap so one user cannot run up your bill, the agent loop, and tiers bound to RevenueCat that route free and paying users to different models.

AIProxy is a proxy that keeps AI provider keys out of mobile apps using split-key plus DeviceCheck.

AgentKit CloudAIProxy
Model providersAnthropic, OpenAI, Gemini, and Apple on-deviceForwards to the providers you call
Provider keys off the deviceEncrypted server-side; the app ships a publishable keyKeeps keys off the device
End-user identity verified per requestA JWT from your trusted issuer, checked every requestDevice checks, not an end-user JWT
Hard spend cap per userA hard ceiling per user and per project. Hit it, requests stop.Per-device rate limits, not per user
Subscription-tier model routingBind tiers to RevenueCat entitlementsNot provided
Change models without an app updateName a tier; remap it server-sideServer model overrides, no tier system
On-device optionApple Foundation Models on-device, cloud when neededCloud only
In-app agent loop with tools, guards, undoRuns in your app with guards, undo, and run limitsSwift clients, no agent loop
Device attestationOptional App Attest binds requests to real devicesDeviceCheck, not App Attest
Backend to build and maintainNone. AgentKit Cloud is the backend.Proxy only; build the rest yourself
  • Beyond key protection

    Keeping the key off the device is the start. AgentKit also verifies the end user and caps spend per user.

  • Tiers and entitlements

    Map tiers to models and bind them to RevenueCat entitlements, so free and paying users route differently.

  • An agent SDK, not just clients

    Tools, guards, undo, and run limits run in your app, beyond forwarding a request to a provider.

Skip the server. Ship the agent.