# Dodo Payments Engineering Blog

> Technical deep-dives from the Dodo Payments engineering team.

- **URL**: https://dodopayments.com/engineering

---

- [Describing Reality: How We Moved AWS, GCP and Cloudflare to OpenTofu](https://dodopayments.com/engineering/aws-gcp-cloudflare-opentofu): Our payments and billing infrastructure ran on three clouds and almost none of it was in code. Here's how we imported roughly two thousand live resources into OpenTofu without changing any of them, retired a stale CDK deployment, and the silent traps we hit on the way.
- [Open-Sourcing ContextChat: A Docs Assistant Is Only as Good as Its Context](https://dodopayments.com/engineering/context-chat-open-source): Our docs assistant kept giving wrong answers with no citations. The problem was never the model - it was context. Here's how we built Sentra with whole-corpus RAG and grounded, cited answers, and open-sourced it as ContextChat.
- [Shipping the Dodo Payments CLI: A Terminal-First Workflow for Payments](https://dodopayments.com/engineering/dodo-payments-cli-release): We rebuilt the Dodo Payments CLI from the ground up - an interactive TUI, a local AI assistant over MCP, encrypted credentials, and offline webhook testing. Here's why we built it, and how it works.
- [Introducing Dualmark: The AEO Infrastructure Your Marketing Site Is Missing](https://dodopayments.com/engineering/dualmark-aeo-infrastructure-open-source): Your blog ranks #1 on Google. ChatGPT cites your competitor. We built Dualmark to fix that - an open-source AEO toolkit with a public spec, six packages, a verifier CLI, and adapters for Astro, Next.js, and Cloudflare Workers.
- [How We Serve Markdown to AI Agents at the Edge](https://dodopayments.com/engineering/serving-markdown-ai-agents-edge): Every page on our website exists twice - HTML for humans, markdown for AI agents. Here's how we built a dual-format serving system on Cloudflare Workers that detects AI bots, serves pre-built markdown, and tracks consumption with Analytics Engine.
- [Why We Nuked Our Framer Site and Rebuilt in Astro](https://dodopayments.com/engineering/how-we-built-dodopayments-website-astro-decap-seo): We migrated dodopayments.com off Framer and rebuilt it from scratch in Astro with Decap CMS and Cloudflare Workers. Here's why, how we architected SEO and GEO as build-time infrastructure, and what we got wrong along the way.
- [Our MCP Server Just Got a Major Upgrade: Code Mode Is Here](https://dodopayments.com/engineering/mcp-server-code-mode-upgrade): The way AI agents interact with APIs is changing fast. For months, the standard MCP (Model Context Protocol) approach has been to expose every API endpoint as its own tool  -  give the agent a...
- [I Asked AI Agents to Build 8 Games. They One-Shotted Every Single One.](https://dodopayments.com/engineering/ai-agents-build-8-games): A year ago, Andrej Karpathy coined the term "vibe coding" and it became the word of the year. This year, he quietly nominated its successor: agentic engineering. I didn't fully grasp the difference...
- [AI Is Getting 1,000x Cheaper. Here's What That Means for Builders.](https://dodopayments.com/engineering/ai-getting-cheaper-what-it-means): *A plain-English breakdown of the most underrated trend in tech right now, and why it opens the biggest opportunity window for founders and developers in a generation.*
- [Motion feels productive. Clarity creates momentum.](https://dodopayments.com/engineering/clarity-creates-momentum): There is a specific kind of tired you only get in early-stage startups.
- [Building Webhooks That Never Fail: Our Journey to 99.99%+ Delivery Reliability](https://dodopayments.com/engineering/building-webhooks-never-fail): At Dodo Payments, webhooks are how our merchants know when money moves. A customer pays for a subscription, we fire a payment.succeeded webhook, and the merchant's system provisions access. Simple...
- [How We Built Our Deployment Pipeline: GitOps, ArgoCD, and Kubernetes at Dodo Payments](https://dodopayments.com/engineering/deployment-pipeline-gitops-argocd-kubernetes): It started with a question from our security compliance team: "Can you show me exactly what changed in production last Tuesday at 3 PM?"
- [Why We Built Our Own Context Layer for AI Agents](https://dodopayments.com/engineering/context-layer-ai-agents): At Dodo Payments, we've always believed in making payments simple. That's why we built Sentra, an AI agent that takes you from a prompt to a production ready payments setup.
- [Why We Moved from Nginx to Istio: Dodo Payments Journey to Service Mesh](https://dodopayments.com/engineering/nginx-to-istio-service-mesh): It started with a Slack message at 11 PM on a Thursday.
- [Cloud Infrastructure Costs Are Not the Enemy, Poor Planning Is !](https://dodopayments.com/engineering/cloud-infrastructure-costs-planning): Anytime I speak with startup founders or even groups from established businesses regarding their cloud infrastructure, the discussion tends to have an unexpected twist. We discuss active users,...
- [How Merchant Insights Drive Innovation at Dodo Payments](https://dodopayments.com/engineering/merchant-insights-drive-innovation): I'm Deep, and I lead Product at [Dodo Payments](https://dodopayments.com), a global payment solution that is revolutionizing online payment processing.

---

**Dodo Payments** -- The billing & payments platform for AI-first companies.
[Payments](https://dodopayments.com/payments) | [Billing](https://dodopayments.com/billing) | [Distribution](https://dodopayments.com/distribution) | [Pricing](https://dodopayments.com/pricing) | [Documentation](https://docs.dodopayments.com) | [Dashboard](https://app.dodopayments.com)