The economics of building AI-native applications have always been brutal: you either pass high API costs to users or sacrifice model quality to save margins. A new open-source library called BYOA (Bring Your Own Agent) attempts to break this deadlock by allowing end-users to power your app's AI features using their personal subscriptions. Launched via Hacker News on November 27, 2026, the tool enables developers to offload token costs entirely, shifting the billing from the appβs backend to the userβs existing plan.
The 'Battery Pack' Economy
The core philosophy behind BYOA is that AI subscriptions are the new battery packs for digital appliances. The developers argue that the future of AI apps relies on a model where every user already possesses a $20/month plan for Claude, ChatGPT, or Grok. By leveraging these existing subscriptions, developers can offer frontier-level models like Claude Opus 5.5 or GPT-6.2 Sol without incurring per-token API fees. The library acts as a harness, running jobs in sandboxes on the user's account while the developer only pays for the infrastructure, not the intelligence.
Technical Implementation and Support
BYOA integrates directly into Node, Bun, and Convex backends, with Cloudflare Workers support listed as planned. It currently supports major agent harnesses including Claude Code, Codex, and Grok Build, with OpenCode Go marked as 'soon.' The architecture is split between the app provider, who manages the product and sandbox environment, and the user, who provides the authentication tokens. Supported sandbox providers include E2B, Daytona, and Instabox, ensuring that each agent job runs in an isolated environment authenticated by the user's personal credentials.
Cost Comparison and Margins
The financial argument is stark. For 100 small agent tasks, using API keys with frontier models can cost between $24.50 and $49.00 per user per month. In contrast, BYOA users pay only the sandbox costβapproximately $1.38 on E2Bβplus their fixed subscription fee. This model protects developer margins from heavy users who might otherwise consume disproportionate API credits. While open-weight models like Kimi K3 are cheaper via API, the BYOA approach simplifies pricing by bundling inference into the user's existing monthly habit.
Key Takeaways
- BYOA shifts AI token costs from the developer's bill to the end-user's subscription plan.
- The library supports major backends including Node, Bun, and Convex.
- Current agent support includes Claude Code, Codex, and Grok Build.
- Sandbox providers like E2B and Daytona are integrated for isolated execution.
The Bottom Line
If you're building an AI app in 2026, fighting API costs is a losing battle. BYOA offers a pragmatic infrastructure shift that aligns developer incentives with user habits, letting the user's wallet handle the inference while you handle the product experience.