Daniel Brain
Portrait of Daniel Brain

Co-founder and CTO, OneTextFormerly Principal Staff Engineer, PayPalSan Jose, CA

Daniel Brain

Agentic AI, conversational payments and developer platforms. Hands-on CTO who builds agents that shop, pay and sell.

Profile

Experience

May 2022 – presentSan Jose, CA

Co-founder and CTO · OneText|OneCheckout

Conversational payments for e-commerce: text-to-pay turns a shopper's phone number into a wallet and their SMS or RCS thread into a sales channel, with customizable conversational flows for marketing, sales and payments. Y Combinator W23; $4.5M seed from Khosla Ventures, Coatue, Citi Ventures, Y Combinator, Pioneer Fund and Good Friends.

  • Built the text-to-pay platform that runs marketing, sales and payments by text for hundreds of merchants and has driven hundreds of millions of dollars in attributable revenue: payments vaulted against the phone number, consent-based reorders, customizable conversational flows, SMS and RCS delivery.
AI and agent systems
  • Designed and built OneCheckout (onecheckout.ai), the payments layer that will let AI agents buy anything online, routing across Mastercard Agent Pay, Visa Intelligent Commerce, PayPal and Stripe Shared Payment Tokens; a free MCP for Claude Code and Codex is live today and the platform API is in waitlist.
  • Designed its security model, now in two pending patent applications: cards and credentials are stored in a user-held keychain, trusted deterministic code fills card fields in the browser frame and decrypts once with a non-exportable in-browser key, so no agent, model or prompt injection can ever see a card number and the key never leaves the device.
  • Built the browser agent's learn-and-replay architecture: a frontier model learns a merchant's checkout once, then a fast executor built on Jev, a decision model that answers typed questions instead of generating text, replays it (repeat purchase in 15.7 seconds in testing, with no frontier-model calls), measured nightly by a benchmark gym of real checkouts.
  • Built the MCP servers that open the platform to agents: a OneText MCP through which a coding agent can sign a merchant up, pick a plan and pay with a secure card flow, and a wallet-agent API that stores cards, accounts and identities so an agent can use them anywhere online.
  • Shipped customer, merchant and internal facing agents. A few examples: a shopping agent that sells by text, orchestrating recommendation, cart, checkout, order and escalation sub-agents; a support agent that builds conversational automations and answers merchants' reporting questions; an engineering management agent that posts daily status per engineer, tracks every ticket, pull request and ETA, and chases stalled reviews; and an agent that turns production alerts into pull requests.
Platform and leadership
  • Wrote the first platform alone in TypeScript, Node.js and React on PostgreSQL and Redis: the phone-linked wallet, merchant dashboard, Shopify, Twilio, PayPal, Stripe and Authorize.net integrations and a JSON conversational-flow engine; first customer March 2022, nearly a year before the first engineering hire.
  • Grew the company to profitability: three consecutive profitable months by April 2026, revenue up 60% and SaaS revenue up 275% year over year, 100 million texts sent, hundreds of brands including Caden Lane, Hotel Collection and Ministry of Supply.
  • Hired nine engineers since 2023 and wrote the engineering handbook the team works by: plan before coding, small instrumented releases, tests through real interfaces, clear ownership, decisions made in writing.
  • Set the expectation that every engineer runs a team of agents: for gathering requirements, authoring code, review, cross-team communication, monitoring and observability, and paying down tech debt.
  • Designed the event-driven backend: webhooks acknowledged and handed to workers, task state in DynamoDB, priority SQS queues, EventBridge scheduling, ClickHouse for attribution, and EKS split into standard and PCI environments so card handling stays isolated; queued sends now deliver 5,000 distinct SMS and RCS messages per second at peak load.
  • Built and run payments, messaging and compliance: card vaulting through Spreedly on top of each merchant's own processor, SMS and RCS delivery through Twilio, the PCI DSS program for the payments agent, Stripe Connect onboarding completed by API inside a text conversation, and TCPA consent handling.
Apr 2012 – May 2022San Jose, CA

Principal Staff Engineer · PayPal Checkout

Engineer 2012 · Senior 2013 · Staff 2015 · Senior Staff 2016 · Principal Staff 2020

  • Principal engineer on the Checkout team of 40-50 engineers, reporting to its senior director. Led initiatives across web and native checkout, the web and native SDKs, the Orders and Payments REST APIs and the GraphQL layer, working with the Sales, Credit, Venmo, Identity and Honey teams.
  • Shipped Smart Payment Buttons, one integration that shows each shopper PayPal, Venmo, PayPal Credit or local payment methods: US launch June 2018, global rollout that September, covered by TechCrunch and PYMNTS. Built on the 2016 to 2017 re-architecture that moved thousands of merchant button integrations into one cross-domain iframe, so updates shipped centrally with no merchant re-integration.
  • Led Checkout's migration from Java to Node.js and its later move to React and GraphQL, after contributing to the earlier C++ to Java migration. Drove the 2014 Node.js rebuild, which reached conversion parity within weeks.
  • Created zoid, the cross-domain component framework behind that design, and post-robot, its cross-window messaging layer: more than 25 million npm downloads between them from 2017 to 2025, still dependencies of PayPal's JavaScript SDK today; by 2019 the suite also ran PayPal's login, merchant onboarding and hosted card fields.
  • Designed how PayPal's JavaScript SDK reaches merchants, presented at Node Summit 2018: bundles compiled on demand for each merchant and cached at the edge, configuration embedded through GraphQL, versioning pinned to each merchant's integration date, and releases activated by npm dist-tag so a bad release rolls back in minutes. Built the CDN release pipeline and the headless-browser test tooling behind it.
  • Designed the simplified PayPal and Braintree merchant integration (2017), one JavaScript API for both, and shipped the responsive Pay Later, Credit, Venmo and card buttons (2020).
  • Ran Kids in Tech summer coding camps for employees' children, teaching on a JavaScript game engine written for the camps.
Oct 2008 – Apr 2012United Kingdom

Web Developer · Freelance

  • Designed and built sites for Poleroid Theatre and Land Surveys Ltd, and Django sites for Durham's Law Review, Law Society and Mooting Society.

Open source

PayPal's cross-domain JavaScript suite, open-sourced in 2017 under the krakenjs and paypal organizations: the libraries that render and talk to PayPal Checkout inside merchant pages. Original author of zoid, post-robot and the suite's core libraries; a major contributor to the Checkout SDK.

zoidzoid-demo

Cross-domain components in iframes and popups, with a demo starter.

post-robot

Cross-window messaging, the transport under zoid.

fetch-robot

Cross-origin requests without CORS.

cross-domain-utilscross-domain-safe-weakmap

Window, origin and WeakMap utilities that survive cross-domain boundaries.

zalgo-promiseuniversal-serialize

Synchronous-when-possible promises and cross-window serialization.

beaver-logger

Buffered browser logging and metrics.

belterjsx-pragmaticmemcookiesjwt-csrf

Shared utilities, framework-agnostic JSX, client-carried cookies, CSRF middleware.

grumblergrabtharsdk-release

Build, test and release tooling, and the CDN release pipeline.

checkout-componentssmart-payment-buttons

The Checkout SDK merchants embed, and the server-rendered buttons.

Beyond PayPal

brainblockswoocommerce-brainblocksnode-raiblocks-client

BrainBlocks Nano payments: the checkout and wallet client, the WooCommerce plugin and the Node client.

bitcoin-javascript-demo

A teaching Bitcoin in JavaScript, built for the 2021 talk.

Side projects

2026

PeerTalk.ai

End-to-end encrypted messaging between AI agents over WebRTC, with room keys that never reach the server; an MCP server, Node and Python clients and a browser extension.

2018 – 2021

BrainBlocks

Co-founded a merchant-payments platform for the Nano cryptocurrency, letting stores accept fee-free payments at checkout; built the JavaScript checkout client and wallet popup, the Node RPC client and the WooCommerce integration; open-sourced in 2021.

2007 – 2013

EventScripts

Core contributor to the scripting platform for Valve's Source game servers; reimplemented its shell language in Python and built the EnemyDown match-admin plugin used daily by thousands of clans.

2026

Degen Trade Botunpublished

Multi-agent paper-trading system on the Claude Agent SDK and OpenAI Agents SDK, where agents make market forecasts that are Brier-scored every week, with an autonomous coding operator that improves the system in isolated workspaces.

2026

Plexify Media Sorterunpublished

Sorts a personal media library by having a model classify each file while deterministic code plans and executes the moves, with journaled recovery after crashes and a Swift tvOS client with Siri search.