Skip to navigation

Stripe Projects

Stripe Projects lets you — and your AI coding agents — add services, generate credentials, and manage billing from the command line. No dashboards, no manual signup. AgentPhone is an official provider, so an agent can give itself a phone number in one command.

Provision AgentPhone

Install the Stripe CLI and Projects plugin, initialize your project with stripe projects init, and inspect stripe projects catalog before adding the service:

stripe projects add agentphone/number

This provisions an AgentPhone number, generates an API key, and syncs the credentials into your project’s .env (as AGENTPHONE_API_KEY). You pay AgentPhone directly at standard rates through your Stripe billing. Review the CLI’s purchase details; provisioning is a real purchase, and outbound messaging still needs SMS registration.

Why it’s useful

  • One command instead of signing up, copying an API key, and wiring env vars by hand.
  • Agent-friendly — paste it into Claude Code, Cursor, or Codex and your coding agent can provision its own phone number mid-build.
  • Portable & secure — credentials live in your project vault and sync across machines, teammates, and agents.

Use it

Once provisioned, load AGENTPHONE_API_KEY from your project’s environment file into the server process or shell. Writing .env does not automatically export a variable into an existing shell — use any SDK, the MCP server, or the REST API immediately:

curl https://api.agentphone.ai/v1/numbers \
-H "Authorization: Bearer $AGENTPHONE_API_KEY"

Manage

stripe projects catalog # browse all providers
stripe projects env --pull # sync project environment values

See the Stripe Projects docs for the full CLI.