Your providers. Your rates. One API for AI, storage and push.

Every model call, upload and notification goes to the provider you configured — with a dollar budget per app, automatic failover when one throttles, and a record of what each call cost.

And for the apps you send to: installs, revenue, ad earnings and active users, read from Google Play, the App Store, AdMob and Google Analytics onto one screen.

Start free trialSign in

14 days, no card

You keep your own provider accounts, so they bill you directly at their rates. A plan caps what you configure — never how much you send.

POST/v1/chat/completionsexample

model: "fast"stream: true

your app names an alias, never a provider

  1. → openai429 rate limited
  2. → anthropic200 streaming

the response says which provider served it

248 ms412 tokens$0.0003logged
4
products on one account — AI, storage and push gateways, and app analytics
$0
taken from what you send: your provider keys, your bill, no markup
14
days free, no card, and your data stays if you walk away
one account

Your app, one key

Penstoke gateway

  • AI gatewayany model
  • Storage gatewayany bucket
  • Push gatewayevery install
App analyticsGoogle Play, App Store Connect, AdMob, Google Analytics

Read on a schedule, which is why it is on this side of the rule: nothing routes through it, there is no endpoint to call, and the newest figure is about two days old.

providers
AI
  • OpenAI
  • Anthropic
  • Google Gemini
  • OpenRouter
  • Groq
  • Ollama
  • Any OpenAI-compatible API
Storage
  • Cloudflare R2
  • AWS S3
  • Google Cloud Storage
  • Supabase Storage
  • MinIO
  • Backblaze B2
  • Cloudinary
Push
  • Apple APNs
  • Firebase FCM
  • iOS
  • Android
  • Web

One alias also reaches GPT, Claude, Gemini, Llama, Mistral, DeepSeek, Qwen, Kimi and Grok through OpenRouter, on a single account.

A request leaves your app once and is accounted for by the time it returns.

  1. One endpoint, one key

    Your app calls the gateway the same way it would call OpenAI, S3 or FCM. Provider credentials never leave the server.

  2. The gateway resolves it

    A model alias, a storage path or an app id becomes a concrete provider, bucket or credential.

  3. A provider answers, or the next one does

    Rate limits, outages and geo-blocks move the request down the fallback order instead of failing it.

  4. The outcome is recorded

    Latency, cost, tokens, bytes and delivery land in the log before the response closes.

AI gateway

Every model behind one OpenAI-compatible endpoint.

Point your SDK at the gateway and keep using the client you already have. Streaming passes through untouched, and the response tells you which provider actually served it.

  • An alias routes to a primary model, then down an ordered list of fallbacks.
  • Budgets stop spend before the request leaves the building.
  • Every call is logged with model, tokens, latency and cost.
  • Keys are scoped per endpoint, so one app can never spend another's budget.
ai pipeline
your app
Penstoke gateway
  • OpenAI
  • Anthropic
  • Gemini
  • Groq
  • OpenRouter

The first one that answers wins. A 429, a 5xx or a timeout moves the same request to the next provider in the order, and the response says which one served it.

Storage gateway

Presigned uploads, and public files on your own domain.

Clients get short-lived signed URLs instead of credentials. Objects that should be public are served from a domain you own, route by route, with the provider's host and signature never leaving the gateway.

  • Routing rules decide which bucket a path belongs to, with fallbacks per rule.
  • Every account gets its own address — acme.penstoke.com — serving from the moment you sign up.
  • Public delivery is off until a route turns it on, so nothing leaks by default.
  • Buckets are listed, registered and created from the dashboard.
  • Storage and egress are costed per bucket, per day.
storage routingexample

gateway

  • images/*→Cloudflare R2public
  • video/*→AWS S3public
  • documents/*→Backblaze B2presigned
Objects stored, last 14 days11,842

14 days agotoday

Share of objects, by provider
Cloudflare R254%
AWS S331%
Backblaze B215%
Push gateway

APNs and FCM for every app, each with its own credentials.

Your own app's notifications, to the people who installed it: one topic send per app covers every install, with no account system needed. When an app does gain authentication, the same send targets registered devices by platform and tag.

  • Reach every install of your app by topic, with no device registration at all.
  • Or target registered devices by platform and tag.
  • Templates, scheduling, and AI-written copy variants.
  • Delivery and opens counted per app, per send.
  • Link Firebase by signing in with Google, or with a service account JSON.
  • Register an app out of its Firebase project, package name and bundle id filled in.
push pipeline
a campaign, or one API call
Penstoke gateway
  • Apple APNs
  • Firebase FCM
  • iOS
  • Android
  • Web

Each app carries its own APNs key and FCM credentials, held server-side. A topic send reaches every install without a device ever registering.

Penstokenow

Delivery finished

Sent to every install on iOS, Android and Web.

Three calls, and one key for all of them.

Nothing to learn that you do not already know: the AI gateway speaks the OpenAI API, an upload asks for a signed URL, and a notification names an app and who should get it.

AIjavascript
import OpenAI from "openai";

const ai = new OpenAI({
  baseURL: `${process.env.PENSTOKE_URL}/v1`,
  apiKey: process.env.PENSTOKE_KEY,
});

// "fast" is an alias you define: a primary
// model, then the fallbacks, in order.
const reply = await ai.chat.completions.create({
  model: "fast",
  messages: [{ role: "user", content: question }],
  stream: true,
});

Your SDK, one base URL later.

Storagebash
curl -X POST "$PENSTOKE_URL/storage/v1/presign" \
  -H "Authorization: Bearer $PENSTOKE_KEY" \
  -d '{
    "path": "images/cover.jpg",
    "method": "PUT",
    "contentType": "image/jpeg",
    "sizeBytes": 184320
  }'

# → { "url": "…", "expiresAt": "…" }
# The provider host and signature stay here.

A URL the client can upload to, and nothing else.

Pushbash
curl -X POST "$PENSTOKE_URL/push/v1/send" \
  -H "Authorization: Bearer $PENSTOKE_KEY" \
  -d '{
    "appId": "app_7f3c…",
    "title": "Order shipped",
    "body": "On its way.",
    "target": {
      "platforms": ["IOS", "ANDROID"],
      "tags": ["vip"]
    }
  }'

One call, both transports, per-app credentials.

App analytics

Four accounts on one screen, and no figure that adds dollars to yen.

Not a gateway: nothing routes through it and there is no API to call. It reads what Google Play, App Store Connect and AdMob publish on a schedule — installs, store revenue, ad earnings — plus the active users, sessions and engagement behind them from Google Analytics, and keeps every amount in the currency it was reported in.

app analyticsexample

Every app, last 30 days

Installs
Play device installs, App Store units38,412
Store revenue

USD12,480.65

JPY684,200

EUR9,305.20

Totalnot added, three currencies

Ad earnings
USD3,902.11
Google Play
installs, earnings, store-listing visitors, ratings and crashes
App Store Connect
units and developer proceeds
AdMob
estimated earnings, impressions and the rates it reports
Google Analytics
active users, sessions, screen views and engagement

Figures through 21 Oct. Google and Apple publish about two days behind, and restate recent days.

Linking an account
Google Play, AdMob and Google Analytics connect by signing in with Google. App Store Connect takes a team key: Sales and Reports reads the money, and Admin is needed as well for impressions and product page views, because only an Admin key may request an analytics report. The first read reaches back thirty days; nothing older is backfilled.
Android, iOS, AdMob, Analytics
Each reads on its own screen, over an overview that crosses all four, a list of every tracked app, and a screen for any one of them.
The day it is good through
Every total says which day it reaches, because both stores publish about two days behind and restate the days before that. A day nothing has delivered shows a dash, not a zero.
CSV export
The stored figures at the granularity they were stored at — by day, by app, by country where the source broke it down — so a month can be tied to a payout statement.

What it does not do

  • Crashlytics detail. Play's own crash and ANR counts are read; stack traces and crash-free users are not, because Google publishes no read API for Crashlytics.
  • Retention and cohorts. Google Analytics' active users, sessions and engagement are read; its retention and cohort reports are not.
  • History before you connect. Apple generates an analytics report only from the day it is asked, so iOS impressions and product page views start then rather than reaching back.
  • Anything live. The newest figure is about two days old, which is when the stores publish it.

Built to be run by someone, not just deployed.

The parts that matter at three in the morning are the ones that usually get skipped: who did what, what it cost, and what to do when a provider goes dark.

Roles and invites
Admin, operator, developer and viewer, each seeing only what they may change.
Audit trail
Every credential, route and send recorded with the person behind it.
Scoped API keys
Public SDK keys that can only register devices; server keys that can send.
Notifications
A provider going offline reaches you before your users do.

Works with the providers you already pay.

You bring the accounts and the keys. Penstoke holds them server-side, routes to them in the order you set, and falls through to the next one when a provider throttles or goes dark.

AI gateway

  • OpenAI
  • Anthropic
  • Google Gemini
  • OpenRouter
  • Groq
  • Ollama
  • Any OpenAI-compatible API

One alias reaches GPT, Claude, Gemini, Llama, Mistral, DeepSeek, Qwen, Kimi and Grok — on your own provider accounts, or through OpenRouter on a single one.

Storage gateway

  • Cloudflare R2
  • AWS S3
  • Google Cloud Storage
  • Supabase Storage
  • MinIO
  • Backblaze B2
  • Cloudinary

Any S3-compatible endpoint works. Buckets are listed, registered and created from the dashboard, and public ones are served on a domain you own.

Push gateway

  • Apple APNs
  • Firebase FCM
  • iOS
  • Android
  • Web

Each app carries its own credentials. Reach every install by topic with no device registration, or target registered devices by platform and tag.

We hold your OpenAI key, your R2 secret and your .p8.

A gateway cannot route a call without them — so the question is what happens to them here. Your Anthropic key, your S3 secret, your Apple .p8, your Firebase service account and your App Store Connect key are all encrypted at rest with AES-256-GCM, under a key that is not in the database.

None of them is ever returned to a browser after you save it — only a hint of the last four characters. Your own apps hold a Penstoke key instead, scoped and revocable on its own. And the gateway records that a request happened — model, tokens, latency, cost — not the bytes of your files, which go straight from your client to your own bucket.

How credentials are held, and what we do not claim

A plan caps what you keep, not what you send.

Model calls, uploads and notifications run on provider accounts you own — OpenAI, R2, APNs, FCM — and those providers bill you directly, at their rates. The gateway never meters or marks up the traffic that passes through it. What a plan sets is how much you keep configured here: providers, buckets, apps, campaigns, schedules and seats.

Start here

Trial

$0for 14 days

 

Everything on Starter for 14 days, no card.

Start free trial
AI providers
2
Buckets
2
Push apps
1
Campaigns a month
20
Scheduled campaigns
3
Team members
3
Requests a second
10
Custom domain
—

Starter

$10a month

 

One app in production, with room to grow.

Choose Starter
AI providers
3
Buckets
5
Push apps
3
Campaigns a month
100
Scheduled campaigns
10
Team members
5
Requests a second
25
Custom domain
Included

Growth

$50a month

 

Several apps, a team, and failover across providers.

Choose Growth
AI providers
10
Buckets
25
Push apps
15
Campaigns a month
1,000
Scheduled campaigns
50
Team members
25
Requests a second
100
Custom domain
Included

Scale

$150a month

 

No limits, and someone to call.

Choose Scale
AI providers
Unlimited
Buckets
Unlimited
Push apps
Unlimited
Campaigns a month
Unlimited
Scheduled campaigns
Unlimited
Team members
Unlimited
Requests a second
Unlimited
Custom domain
Included

Every account starts on the trial: 14 days, no card, nothing to cancel. When it runs out your data stays and reads keep working — writes pause until you pick a plan.

Start free trial
What is Penstoke?
Penstoke is one API in front of three gateways: AI models, object storage and push notifications. Your app calls it the way it would call OpenAI, S3 or FCM; Penstoke resolves the call to a provider you have configured, fails over to the next one when that provider throttles or goes dark, and records what it cost. Alongside the three, on the same platform, is app analytics: a publisher's installs, store revenue, ad earnings and active users read from Google Play, App Store Connect, AdMob and Google Analytics.
Which providers does it support?
For AI: OpenAI, Anthropic, Google Gemini, Groq, OpenRouter, Ollama and any OpenAI-compatible API — which puts GPT, Claude, Gemini, Llama, Mistral, DeepSeek, Qwen, Kimi and Grok behind one alias. For storage: Cloudflare R2, AWS S3, Google Cloud Storage, Supabase Storage, MinIO, Backblaze B2 and Cloudinary. For push: Apple APNs and Firebase FCM, on iOS, Android and Web.
Does Penstoke charge for what I send through it?
No. You bring your own provider accounts and keys, and those providers bill you directly at their own rates. The subscription caps what you keep configured — providers, endpoints, buckets, apps, campaigns, schedules and seats — not the volume of traffic. Nothing passing through the gateway is metered or marked up.
Do I need my own domain?
No. Every account gets its own address on ours — acme.penstoke.com — serving public objects from the moment you sign up, with the certificate issued automatically and no DNS to configure. Point your own domain at the gateway whenever you want to; the object paths stay exactly the same, so nothing you have published breaks.
Where do my provider keys live?
Encrypted at rest on the gateway, and never returned to the browser or shipped to your apps. Your apps hold a scoped gateway key instead, which you can rotate or revoke on its own.
How does an app get its Firebase credentials for push?
Either way round, on the same screen. Sign in with Google and choose the Firebase project out of the ones that account can see — no file to download and nothing to paste — or paste the project's service account JSON, which is what Firebase hands out for servers. The difference is who the credential belongs to: a service account belongs to the project and keeps working after whoever added it has gone, while signing in borrows one person's access, so sends stop the day that Google account is closed or loses the project. The same sign-in can register the app for you, filling in its name, platforms, package name and bundle id from the project. APNs takes a .p8 key, a team ID and a key ID either way.
Do I have to use all three gateways?
No. Set up the ones you need and leave the rest; a plan covers all three either way, and the limits you do not spend simply go unused.
Is app analytics part of the gateway?
No, and that distinction is worth keeping: it is a separate product on the same platform, so nothing routes through it and there is no API to call. It reads a publisher's installs, store revenue and ad earnings from Google Play, App Store Connect and AdMob on a schedule, and the people behind those installs from Google Analytics, keeping each account on a screen of its own — Android, iOS, AdMob, Analytics — over an overview that crosses all four and a screen for any one app. Google Play, AdMob and Analytics are linked by signing in with Google; App Store Connect takes a team key: Sales and Reports reads the money, and Admin is needed as well for impressions and product page views, because only an Admin key may request an analytics report. The first read reaches back thirty days, and nothing older is backfilled.
Does it add up revenue from different currencies?
Never. Every money figure is one amount per currency, because App Store proceeds arrive in whatever the storefront charged in and AdMob pays in your own currency — a single total would be the sum of dollars and yen. A rate is averaged over the window rather than summed, a day no store has published yet shows a dash rather than a zero, and every total says which day it is good through, because both stores publish about two days behind and restate recent days. The stored figures export as CSV at the granularity they were stored at, which is what reconciling a month against a payout statement needs.
Does app analytics include crash reports or retention?
Only in part. What is read is what Google, Apple, AdMob and Google Analytics publish: installs, store revenue, ad earnings, Play's store-listing visitors and conversion rate, AdMob's impressions and rates, and Analytics' active users, new users, sessions, screen views and engagement. Play's own crash and ANR counts are read, but not Crashlytics detail — no stack traces and no crash-free users — because Google publishes no read API for Crashlytics. Analytics' retention and cohort reports are not read either. Apple's Analytics Reports are read alongside its sales ones, so iOS carries impressions, product page views and a conversion rate — from the day the report is requested, since Apple generates no history for it.
Can I change or cancel a plan?
Yes, from the dashboard. Pay monthly, or yearly for ten months' money, and a downgrade or cancellation takes effect at the end of the period you have already paid for. Paddle is the merchant of record: it takes the payment, is the name on your invoice, and processes a refund.

Three gateways and your store figures, one dashboard, one record of everything that happened.

Start free trial

14 days, no card. Pick a plan when you are ready, or let it lapse.