Headless Provisioning via CLI for Twilio with Stripe Projects

April 29, 2026
Written by

Starting today, Twilio is available as a communications provider in Stripe Projects. With a single CLI command, developers can create a Twilio account, connect billing through their existing Stripe payment method, and get working email API credentials – all without opening a browser, entering a credit card, or leaving the command line interface.

We know that when you spin up a product or business, you start with email for sending billing receipts and notifications but very quickly want to message your customers or help them over a phone call. We’re ready for you - when you use Stripe Projects, we provision an account that is multi-channel from the start. So while your Email API credentials are passed to your CLI, you can always head on over to Twilio console for messaging and voice capabilities, too. And no, there’s no overhead of creating another account or re-entering your billing information for those products, either.

In this post, we'll walk you through the details of what’s available and how to get started in under five minutes.

The problem: provisioning is still stuck in the dashboard era

Building a new product means assembling a stack of services before writing a single line of your actual application. As software becomes more complex, it can take more than a dozen separate API integrations just to reach Day 1. Context switching and integration plumbing significantly slow down the development process, where developers spend most of their initial build time on the integration .

This friction is compounding. Machine-to-machine API calls are accelerating as AI coding agents increasingly provision infrastructure directly. IDC predicts that by 2027, the Global 2000’s agent usage will increase tenfold over 2025’s. These agents don't browse dashboards. They need a machine-readable way to provision the full stack, including communications, which is table stakes for virtually any application.

What we launched

We wanted to meet the developers where they are, and developers use Stripe. So, Twilio is now available under Public Beta as a provider in Stripe Projects, Stripe's CLI-based platform for provisioning and managing third-party services. Developers setting up their application infrastructure through Stripe can add Twilio communications in a unified workflow, along with other service providers they need to build the infrastructure.

Here's what happens under the hood when you run the add twilio/email command in the Stripe CLI:

  1. You select from the options of starting balance to deposit into your Twilio account
  2. Stripe passes your verified identity to Twilio and securely shares a payment token so Twilio can bill your card on file – you only need to set up your payment info once
  3. Twilio provisions and funds your account
  4. Your Twilio API credentials sync into your project's .env automatically
  5. You're ready to authenticate your domain and start sending email

Because the integration uses Stripe's provisioning protocol, the entire flow is machine-readable. An AI coding agent building on a Stripe Project can provision Twilio as its email layer through the exact same commands.

What you need to get started

Set up Twilio Email in Stripe Projects

Install the Projects plugin

If you haven't used Stripe Projects before, install the plugin first:

stripe plugin install projects

Initialize your project

Create a new project or initialize in an existing codebase:

stripe projects init [Your Project Name]

This creates a .projects/ directory that tracks your provider accounts, resources, and credentials.

Add Twilio Email

stripe projects add twilio/email

The CLI will prompt you to select your starting balance. All users also receive a block of free email credits to try out. Twilio Email is priced per email on a pay-as-you-go model.

After you select a tier, Stripe handles billing behind the scenes via a Shared Payment Token. If you have not saved a payment method yet, you will be prompted to add your card information and billing address only once across all providers. You will also be asked to set a per-provider monthly limit the first time you select a paid service in Stripe Projects. And after you set your spending limit, your Twilio API credentials are automatically synced into your project's .env file.

For Twilio, we recommend you set your spending limit to at least double your starting balance to prevent payment failure during auto-recharge.

Verify your credentials

Check that your Twilio credentials are available in your environment:

stripe projects env

You should see your Twilio API key and related environment variables listed alongside any other services in your project.

Authenticate your domain

To start sending email, you need to authenticate your sending domain. Open the Twilio Console directly from the CLI:

stripe projects open twilio

This opens your Twilio Console in the browser, where you can complete domain authentication. Once your domain is verified, you're ready to send.

Check your project status

At any point, you can review your full project setup:

stripe projects status

This shows your project name, Stripe account, all connected providers, provisioned resources, current tiers, and health status.

Managing your Twilio integration

Stripe Projects provides management commands for all your providers, including Twilio:

# Re-authenticate your Twilio account in Stripe CLI
stripe projects link twilio
# Rotate your API credentials
stripe projects rotate twilio/email

You can also log into the Twilio Console at any time to adjust billing details, top up your balance, or explore additional Twilio products beyond email.

Why this matters: headless provisioning for the agentic era

This integration is Twilio's first step toward headless provisioning – infrastructure that can be set up entirely through code, with no UI required. As AI coding agents become a primary interface for building software, the services those agents provision need to be available through the same programmatic workflows.

Stripe Projects already supports coding agent workflows out of the box. When you initialize a project, it writes agent-compatible context into your local directory. An AI agent can run the same stripe projects add twilio/email command, receive credentials, and start building – all within a single agent session.

Today's launch covers Twilio Email for US-based developers. We're actively working on expanding to additional Twilio channels, capabilities, and international availability.


"Twilio's mission has always been to make communications a first-class part of how developers build. Joining the Stripe Projects ecosystem means that for the first time, communications infrastructure can be provisioned at the same moment a developer sets up their payments stack. And as more businesses are built on code written by AI agents, we believe this headless, zero-UI experience is the foundation that the next generation of agentic applications will be built on."

- Khozema Shipchandler, CEO, Twilio Inc.

Conclusion

Twilio is now available in Stripe Projects. One CLI command provisions your account, connects billing, and delivers working API credentials – no signup forms, no dashboard hopping, no re-entering payment details. Authenticate your domain in the Twilio Console and you're sending email. Not just that, the amount you deposit can be used across other communications channels too e.g., messaging. We know the future is multi-channel and we want to ensure you begin multi-channel from the get go.

Get started today: install the Stripe Projects plugin and run stripe projects add twilio/email. Developers are also welcome to join us at Stripe Sessions (April 29-30) or Twilio Signal (May 6-7) to learn more about this partnership and what's coming next.

 


 

About Twilio Forward

Twilio Forward focuses on Horizon 2 and 3 initiatives that drive step-change innovation for builders and unlocks Twilio’s next era of growth. As an incubation lab, we explore bold new ideas, from the most advanced, almost unimaginable technologies to emerging solutions that address today’s real-world challenges. Our mission is to push boundaries, reimagine what’s possible, and build what comes next.

 


 

Seline Chen is a product manager based in Bay Area, California. At Twilio, she leads Horizon 2 initiatives with a focus on AI-driven developer experience. Outside of work, Seline enjoys Art Museums and travelling.

Ryan Ferguson is a Senior software engineer manager based in Boulder, Colorado. At Twilio, he helps lead engineering initiatives on the Emerging Technology and Innovation team, Twilio Forward. Outside of work, Ryan enjoys running ultra marathons.

Rikki Singh is a product and engineering leader based in Bay Area, California. At Twilio, she leads the Emerging Technology and Innovation group Twilio Forward. Outside of work, Rikki enjoys hiking and camping with her husband and toddler.