Integrations · Your own proxy

When to use your own proxy

Run a thin service between your users and Pikeway. It authenticates your users, applies your prices and rules, and forwards approved calls to Pikeway with your key.

How it works

Your proxy exposes the same /v1/* (and optionally /gw/*) routes as Pikeway, so the Pikeway CLI, Skill, SDKs and your own agents work against it unchanged. Users authenticate with your credentials. The proxy checks them, decides whether the call is allowed, forwards it with your Pikeway key, and records the cost Pikeway reports so you can bill the user.

Who pays
You pay Pikeway from your balance. Your users pay you, on whatever terms you set: markup, credits, plans or free tiers.
Who owns the user
You, completely. Users sign in to your product, see your prices, and never need to know Pikeway exists.

Good fit

  • SaaS products that resell API access with their own pricing, credits or subscription plans.
  • Platforms that need per-user quotas, audit logs or compliance rules Pikeway doesn't know about.
  • Products that expose a curated subset of the catalog: only certain providers or endpoints, maybe with fixed parameters.
  • Enterprises that must route all outbound API traffic through their own gateway.

Pros and cons

Pros

  • Full control over pricing and margin: charge per call, per token, per seat or bundle it.
  • Your own auth: sessions, SSO, your existing API keys. No Pikeway account for users.
  • Allow-list exactly which providers and endpoints users can reach, and inject or strip parameters.
  • Exact reconciliation: every response carries X-Pikeway-Call-Id and X-Pikeway-Cost, matching your Pikeway ledger line by line.

Cons

  • Most work: you build, deploy, monitor and scale a service in the request path.
  • You carry the cost and the credit risk: if a user doesn't pay you, you've still paid Pikeway.
  • Extra latency from one more hop, and one more thing that can go down.
  • You must keep up with the Pikeway API surface you expose (new fields, streaming, async runs).

Compared with the other approaches

DirectSign in with PikewayYour own proxy
Who pays PikewayYou, from your balanceEach user, from their own balanceYou; you bill your users however you like
Owns the user relationshipYou. Users never see PikewayShared. Users have a Pikeway account and approve your appYou. Users never see Pikeway
User needs a Pikeway accountNoYesNo
Your own pricingBundle the cost into your productNo: users pay Pikeway list pricesYes: markup, credits, plans
Spend controlsPer-key limits, agent keys, IP allowlistUser picks a limit at consent; revocable any timeYour own rules, plus key limits as a backstop
What you runNothing extra: call from your backendAn OAuth client and token storageA proxy service you operate
Time to first callMinutesAbout an hourA day or more
Start with Direct behind a single endpoint of your own, and grow it into a full proxy only when you need custom pricing or a wider allow-list.