Labsco
stripe logo

stripe-projects

✓ Official1,600

by stripe · part of stripe/ai

Provision third-party services and retrieve API keys/tokens using the Stripe Projects CLI plugin.

🔥🔥🔥✓ VerifiedFreeQuick setup
🧰 Not standalone. This skill ships with stripe/ai and only works together with that tool — install the tool first, then add this skill.

Provision third-party services and retrieve API keys/tokens using the Stripe Projects CLI plugin.

Inspect the full instructions your agent will receiveExpand

This is the exact playbook injected into your agent when the skill activates — shown here so you can audit it before installing. You don't need to read it to use the skill.

by stripe

Provision third-party services and retrieve API keys/tokens using the Stripe Projects CLI plugin. npx skills add https://github.com/stripe/ai --skill stripe-projects Download ZIPGitHub1.6k

Stripe Projects — Service Provisioning

Provision third-party services (databases, auth, hosting, analytics, caching, AI, observability) and retrieve API keys/tokens using the Stripe Projects CLI plugin.

Workflow

Step 1: Ensure Stripe CLI + Projects Plugin

Check if the Stripe CLI is available:

Copy & paste — that's it
which stripe && stripe --version

If not installed or below version 1.40.0:

Then ensure the Projects plugin is installed:

Copy & paste — that's it
stripe plugin install projects

Step 2: Search the Catalog

Confirm the requested provider/service exists:

Copy & paste — that's it
stripe projects search --json

If result_count is 0, inform the user the service was not found and stop.

If the user’s request is vague (for example, “I need a database”), browse the catalog to suggest options:

Copy & paste — that's it
stripe projects catalog --json

Step 3: Initialize a Project

Check if a project is already initialized:

Copy & paste — that's it
stripe projects status --json

If not initialized, run a preflight check first to reveal all blockers at once:

Copy & paste — that's it
stripe projects init --preflight --json

If all preflight checks pass (or the only failures are TOS_ACCEPTANCE_REQUIRED or Stripe session authenticated), proceed:

Copy & paste — that's it
stripe projects init --accept-tos --yes

Important: stripe projects init installs the stripe-projects-cli skill locally at .claude/skills/stripe-projects-cli. This skill contains the full post-init command reference.

Step 4: Hand Off to stripe-projects-cli

Verify the skill was installed:

Copy & paste — that's it
test -f .claude/skills/stripe-projects-cli/SKILL.md && echo "OK" || echo "MISSING"

If MISSING: re-run stripe projects init --accept-tos --yes — the skill is bundled with the Projects plugin and installed during init.

If OK: use the locally-installed stripe-projects-cli skill (invoke using the Skill tool with name stripe-projects-cli) to continue the workflow — adding services, managing credentials, and configuring the project.

Step 5: Summarize and Suggest

After a successful service addition, provide output in this format:

Field Value Provider <provider name> Service <service type> Tier <tier> Env vars <variable names only — never values>

Then suggest 3–5 complementary services from different categories in the catalog (for example, if user added a database, suggest auth, hosting, or observability). Only reference services that actually appear in stripe projects catalog --json output — never fabricate commands or provider names.

CLI as Source of Truth

The CLI manages all state under .projects/ and generates .env files. Don’t hand-edit these files. If you need to inspect project state, use the appropriate CLI command:

Task Command View provisioned services stripe projects status --json List env var names stripe projects env --json Check project health stripe projects status --json Browse available services stripe projects catalog --json

Only inspect .projects/ or .env directly if the user explicitly asks you to — the CLI is authoritative, so manual edits may be overwritten.

Error Handling

Error code Cause Recovery BROWSER_AUTH_REQUIRED No auth session and browser needed Tell user to run stripe login — you cannot fix this ACCOUNT_NOT_ELIGIBLE Account not onboarded for Projects Tell user to run stripe login or visit https://projects.dev TOS_ACCEPTANCE_REQUIRED Developer or provider terms not accepted Re-run with --accept-tos PROVIDER_NOT_LINKED Provider requires OAuth linking Run stripe projects link <provider> — may open a browser PLAN_REQUIRED Deployable needs a plan provisioned first Provision the plan listed in the error, then retry UNKNOWN_ERROR Unexpected failure Show the full error message to the user and suggest running with --debug for diagnostics Service not in catalog Query returned 0 results Inform user; suggest stripe projects catalog --json to browse alternatives CLI not found Stripe CLI not installed Install using Homebrew (macOS) or follow https://docs.stripe.com/stripe-cli/install