Ramp Built Its Own AI Stack: Seven Decisions That Made a Fintech AI-Native in Two Years
A Pragmatic Engineer deepdive with Ramp's CTO and engineers explains how the US fintech built a model router, agent harness, and coding agent in-house, what mechanisms drove 30% cost reduction and 99% adoption, and what honestly did not work.
Ramp, a US fintech with roughly 2,000 employees and 300 engineers, made a counterintuitive bet: build all its AI infrastructure in-house rather than buy it. The Pragmatic Engineer's Gergely Orosz traveled to Ramp's New York headquarters to understand how and why, producing a detailed account of seven decisions that shaped the transformation.
The head start came from an acquisition. In 2023, Ramp acqui-hired Cohere.io, a startup building customer support automation on GPT-3. Its cofounder, Rahul Sengottuvelu, became Ramp's CTO, and the deal injected engineers who had spent eighteen months building on LLMs before most companies started. With that team in place, Ramp's Applied AI group felt confident enough to own its intelligence layer rather than depend on third-party vendors.
The first major build was Ramp Router, a waterfall fallback system for LLM calls. In 2023, AI providers were unreliable, so routing around outages was practical necessity. But the router became something more: because Ramp's coding agent Inspect made all calls through it, per-request usage tracking became trivial. That observability enabled cost control (send requests to the cheapest model that fits the job), smart routing (pick the best model based on recent performance stats), and ongoing benchmarking. Ramp cut its AI bill by 30% through this mechanism. The company now sells the router publicly at router.com.
The second decision was building quality gates before going all-in on agents. Ramp's end-to-end test suite—3,500 tests running in about five minutes with 0.1% flakiness—predates the AI push. It was built around 2022 using HTTP request recording and replay, inspired by Ruby's VCR library. On top of these deterministic layers, Ramp added Testo, an AI-generated adversarial testing agent that reads a PR diff, builds its own test plan, executes it against staging, and reports findings with screenshots and video. Testo's tests are deliberately thrown away rather than added to the suite, because they would overlap with existing tests or overfit to specific scenarios.