Click to add balls. Drag to throw. Gravity shifts every 5 seconds.
Build AI-powered apps where users pay their own LLM costs.
Fork it. Customize it. Ship it.
An open-source template for building AI chat applications with built-in authentication and billing. Your users sign in with AI@YourService and pay for their own LLM usage - you focus on your app, not billing infrastructure.
Streaming responses, tool calling, multi-turn conversations. Powered by AI SDK v6.
Built-in speech-to-text transcription. Talk to your AI agent hands-free.
State persists in Durable Objects. Pick up where you left off on any device.
Deploy to Cloudflare Workers with wrangler. Global edge deployment included.
Built-in data portability. Users can export their data anytime.
Structured workflows: plan before acting, or let the agent execute directly.
When users sign in to your app, they authenticate via AI@YourService and get their own credits. Every LLM call is billed to their account, not yours.
New users get free credits to try your app. Power users can add more credits or bring their own API keys (BYOK).
You build the app. We handle auth, billing, and the LLM gateway.
# Clone the template
git clone https://github.com/atyourserviceai/app-agent-template
cd app-agent-template
# Install & configure
pnpm install
cp .dev.vars.example .dev.vars
# Start developing
pnpm run dev.dev.vars with AI@YourService credentialssrc/agent/pnpm run deployThis template includes a bouncing ball simulation to demonstrate AI-controlled interactions. Sign in to chat with the AI and control the simulation with natural language.
Build your AI-powered app today.
Open source under MIT license.