RevenueCat API Key
Retrieve the public API key for SDK initialization.
Description
Quickly get the public API key needed to initialize the RevenueCat SDK in your app. This is the key you use in your client-side code.
Usage
code
/rc:apikey [platform] [project_name]
Arguments:
- •
platform(optional):ios,android,web, orall. Defaults toall. - •
project_name(optional): Name of the project to retrieve keys for. If not provided, shows keys for all projects.
Can be referenced as $ARGUMENTS in the skill.
Instructions
When the user invokes this skill, perform the following steps:
- •
Parse Arguments (from $ARGUMENTS)
- •Extract
platform(default:all) andproject_name(optional) - •Arguments can be in any order (e.g., "ios DuoCam" or "DuoCam ios")
- •Platform keywords:
ios,android,web,all - •Project name: any other text (case-insensitive match)
- •Extract
- •
Get Projects
- •Call
mcp_RC_get_projectto get all projects - •If
project_nameis specified, filter projects by name (case-insensitive partial match) - •If no matching project found, inform the user and list available projects
- •Call
- •
Get Apps for Each Project
- •For each selected project, call
mcp_RC_list_appsto get all apps
- •For each selected project, call
- •
Filter by Platform (if specified in arguments)
- •
ios→ filter forapp_storetype - •
android→ filter forplay_storetype - •
web→ filter forrc_billingtype - •
all→ show all apps
- •
- •
Get API Keys
- •For each matching app, call
mcp_RC_list_public_api_keyswith the project_id and app_id
- •For each matching app, call
- •
Present Results Format as copy-paste ready code snippets:
For iOS (Swift):
swiftPurchases.configure(withAPIKey: "{api_key}")For Android (Kotlin):
kotlinPurchases.configure(PurchasesConfiguration.Builder(context, "{api_key}").build())For Web:
javascriptPurchases.configure({ apiKey: "{api_key}" });
Example Output
Example 1: All keys for all projects
code
/rc:apikey
Shows API keys for all apps across all projects.
Example 2: iOS keys for a specific project
code
/rc:apikey ios "Fitness Tracker"
Output:
code
🔑 RevenueCat Public API Keys - Fitness Tracker
========================================
📱 iOS App (Fitness Tracker App Store)
API Key: appl_aBcDeFgHiJkLmNoPqRsTuVwXyZ
Swift:
Purchases.configure(withAPIKey: "appl_aBcDeFgHiJkLmNoPqRsTuVwXyZ")
⚠️ Remember: These are PUBLIC keys, safe to include in client code.
Never expose your SECRET API keys in client applications.
Example 3: All keys for a specific project
code
/rc:apikey "Recipe App"
Shows all API keys (iOS, Android, Web) for the Recipe App project only.
Notes
- •Public API keys are safe to include in your app's source code
- •Each platform (iOS, Android, etc.) has its own API key
- •Use the appropriate key for each platform in your app
- •Project name matching is case-insensitive and supports partial matches
- •If you have multiple projects, use the project name parameter to filter results