comparison

AgentKit Cloud vs OpenRouter

OpenRouter set to prepaid caps your whole account, not each user: one looping user can drain the shared balance. AgentKit Cloud caps spend per end user, keeps keys off the device, and routes a tier to a model you change later. You bring your own keys, with no token markup, and can repoint to OpenRouter any time.

OpenRouter is a hosted API that routes a single endpoint to many language models.

AgentKit CloudOpenRouter
Model providersAnthropic, OpenAI, Gemini, and Apple on-deviceMany cloud models through one API
Provider keys off the deviceEncrypted server-side; the app ships a publishable keyNeeds your own backend to hide the key
End-user identity verified per requestA JWT from your trusted issuer, checked every requestNo end-user identity check
Hard spend cap per userA hard ceiling per user and per project. Hit it, requests stop.Per-key limits, not per end user
Subscription-tier model routingBind tiers to RevenueCat entitlementsNot provided
Change models without an app updateName a tier; remap it server-sideThe caller sets the model
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 limitsNo native Swift SDK
Device attestationOptional App Attest binds requests to real devicesNot provided
Backend to build and maintainNone. AgentKit Cloud is the backend.You still build the app backend around it
  • Keys still need a backend

    Calling OpenRouter from the app ships a key in the binary. AgentKit holds keys server-side; the app sends a publishable key and a short-lived user token.

  • Limits per user, not per account

    OpenRouter meters your account. AgentKit attributes every request to the verified end user and caps spend per user and per project.

  • The production layer, not just a relay

    OpenRouter is one endpoint. Shipping an app also means identity, per-user caps, tiers, and an agent loop. AgentKit is that whole layer.

Skip the server. Ship the agent.