apikey
Retrieve public API keys for SDK initialization. Use when the user needs or asks for API keys for their iOS, Android, or web app.
From rcnpx claudepluginhub anthropics/claude-plugins-official --plugin rcThis skill uses the workspace's default tool permissions.
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
/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_storetypeandroidโ filter forplay_storetypewebโ filter forrc_billingtypeallโ 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):
Purchases.configure(withAPIKey: "{api_key}")For Android (Kotlin):
Purchases.configure(PurchasesConfiguration.Builder(context, "{api_key}").build())For Web:
Purchases.configure({ apiKey: "{api_key}" });
Example Output
Example 1: All keys for all projects
/rc:apikey
Shows API keys for all apps across all projects.
Example 2: iOS keys for a specific project
/rc:apikey ios "Fitness Tracker"
Output:
๐ 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
/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