All updates

Stripe Projects Integration

Provision Resend directly from the Stripe Projects CLI and start sending email.

Today, we are announcing Resend's Stripe Projects integration.

Stripe Projects lets you and your AI agents assemble a project's infrastructure from the Stripe CLI. A single command creates a Resend account, generates an API key, and adds it to your environment.

What's new

With this integration you can:

  • Provision a Resend account and API key with a single CLI command.
  • Access the Resend dashboard, signed in through Stripe.
  • Manage billing through Stripe.

When Stripe Projects provisions a Resend account, it uses the email address from your authenticated Stripe account. If that email address already has a Resend account, the CLI will use the team you own and the billing will remain with Resend. If you have more than one team, the CLI will ask you which you want to link.

Prerequisites

Before you begin, you'll need:

  1. A Stripe account.
  2. The Stripe CLI installed.

How to get started

1. Add Resend to your project

Install the Projects plugin and initialize within your project:

stripe plugin install projects
stripe projects init

Add Resend as a provider to your project by running:

stripe projects add resend/email

Stripe creates a Resend account, or connects to your existing one, generates an API key, and writes it to your .env file as RESEND_API_KEY.

When you initialize a project, Stripe Projects adds Agent Skills that teach your agent how to use the CLI. You can prompt your agent to add Resend and other providers to your project and it will use the Stripe Projects CLI itself.

2. Send your first email

Install the Resend SDK for your language, then send with the API key Stripe Projects added to your environment:

// npm install resend
import { Resend } from 'resend';
const resend = new Resend(process.env.RESEND_API_KEY);
await resend.emails.send({
from: 'onboarding@resend.dev',
to: ['delivered@resend.dev'],
subject: 'Hello from Stripe Projects',
html: '<strong>It works!</strong>',
});

You can get your agent to do this too; set it up for success with the Resend skill.

3. Manage your project

You can now:

Open the Resend dashboard from the CLI; you will be automatically signed in.

stripe projects open resend

Rotate your API key (the new one will replace the old one in your .env file).

stripe projects rotate resend/email

Upgrade your plan.

stripe projects upgrade resend/email

Conclusion

Stripe Projects means one less account to create and one less bill to track. It also empowers your agent to provision services like Resend for your application.

Learn more in the Stripe Projects integration docs.