Skip to content
Sign in with Google

The Bkper Platform

The Bkper Platform provides managed app hosting, shared private source, authentication, an AI gateway, managed agents, previews, logs, secrets, storage, and local event delivery.

The Bkper Platform is a complete managed environment for building, deploying, and hosting apps on Bkper. It removes infrastructure complexity so you can focus on business logic.

What the platform provides

Hosting

Apps are deployed to {appId}.bkper.app on a global edge network powered by Cloudflare Workers for Platforms. Your app runs close to your users, with zero infrastructure to manage.

Preview environments are built in — deploy to a preview URL to test before going to production.

App APIs

The same Worker can expose app-defined /api/* routes. Treat those routes as the reusable contract for your app behavior:

  • The bundled web client can call them.
  • Scripts, external clients, and agents can call them too.
  • The default template documents them with an app OpenAPI spec at /openapi.json.

AI gateway

Apps call Bkper AI models through the AI gateway, with no provider accounts or keys:

  • Language models — multi-provider models over the Open Responses protocol, for text and structured output.
  • Decision models — typed answers with calibrated confidence: yes or no, one of your options, or a level on a scale.

Usage counts against the user’s included Bkper AI allowance. An authenticated app API route or event establishes the user and app identity, and the platform adds authorization and usage attribution to the Worker’s requests. For inference used only by the UI, the client can also call Bkper AI directly with the signed-in user’s token.

See Add Bkper AI to an App for the authentication flow and SDK setup.

Managed agents

Build your own agent, such as a chat inside a Book or a Slack bot, on the Managed Agent API. Your app keeps its screens and instructions; Bkper runs the rest:

  • The agent loop — models, tool calls, and durable sessions that continue across apps, including Bkper Agent.
  • A dedicated sandbox machine for each user — the bkper CLI, Node, Python, and a persistent workspace for files and reports.
  • The user’s permissions — the agent acts as the user, and credentials never enter the machine.

See Add Bkper AI to an App → Run an agent.

Authentication

OAuth is pre-configured. No client IDs, no redirect URIs, no consent screens to build.

Services

Declare the services you need in bkper.yaml and the platform provisions them:

  • KV storage — Key-value storage for caching and state. Access via c.env.KV in your handlers.
  • Secrets — Securely stored environment variables. Set via bkper app secrets put, access via c.env.SECRET_NAME.

Developer experience

The project template composes the full development environment:

npm run dev

This runs two processes concurrently: vite dev for the client UI (HMR), and bkper app dev for the Worker runtime (Miniflare for /api/* and /events, plus a Cloudflare tunnel so Bkper can route webhook events to your laptop). Your entire development environment, running locally.

Shared app source

Bkper can host one private codebase for your app. Authorized teammates and coding agents can clone it, improve it locally, and continue building from the same shared history.

Source synchronization remains separate from deployment. A Git push stores source but never builds or deploys the app.

See Shared App Source for the collaboration workflow, access rules, and external Git options.

Deployment

Check and deploy the app template:

npm run check
npm run deploy

Your app is live at {appId}.bkper.app. The platform handles routing, SSL, and edge distribution.

What you’d build yourself without it

Without the platform, creating a Bkper app with a UI, event handling, and authentication requires:

ConcernWithout the platformWith the platform
HostingProvision servers, configure domains, SSL, CDNbkper app deploy
AuthenticationRegister OAuth client, build consent screen, handle token refresh, manage redirect URIsauth.getAccessToken()
Event webhooksSet up a public endpoint, configure DNS, handle JWT verificationDeclare in bkper.yaml, platform routes events
Local dev webhooksInstall ngrok or similar, manually configure tunnel URLbkper app dev starts tunnel automatically
SecretsSet up a secrets manager, configure accessbkper app secrets put
KV storageDeploy Redis/Memcached, manage connectionsDeclare KV in bkper.yaml
Preview environmentsBuild a staging pipelinebkper app deploy --preview
Shared app sourceOperate a separate private Git hostManaged source for app developers and agents
AI modelsOpen provider accounts, manage API keys, pay separate billsAI gateway with the included Bkper AI allowance
AgentsRun the agent loop and a sandbox for each user, persist sessions and files, keep credentials outManaged Agent API
Type safetyManually create type definitionsenv.d.ts auto-generated

The platform eliminates all of this. You write business logic, the platform handles infrastructure.

Getting started

# Create a new app from the template
bkper app init my-app
cd my-app
# Install dependencies and start developing
npm install
npm run dev

This gives you a working app with a client UI, server API routes, and /events handling in one Worker — all running locally with full HMR and webhook tunneling.

Next steps