> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.agentphone.to/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.agentphone.to/_mcp/server.

# Stripe Projects

> Provision an AgentPhone number and API key from the command line with Stripe Projects

[Stripe Projects](https://projects.dev) 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](https://projects.dev/developers/), initialize your project with `stripe projects init`, and inspect `stripe projects catalog` before adding the service:

```bash
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](/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](/documentation/sdks/python), the [MCP server](/mcp), or the REST API immediately:

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

## Manage

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

See the [Stripe Projects docs](https://projects.dev) for the full CLI.