What problem does it solve?
Managing API keys and secrets for a Convex backend is error-prone: developers often hardcode credentials, commit them to git, or try to read them in the wrong function context. This Skill provides a clear, safe workflow for storing and accessing secrets via Convex deployment environment variables.
Core Features & Use Cases
- Secret Storage: Set secrets per deployment using
npx convex env set KEY value instead of committing them to source control.
- Correct Access Patterns: Read values with
process.env.KEY inside actions (with 'use node' when needed), avoiding misuse in queries and mutations.
- Multi-Deployment Management: Confirm configuration with
npx convex env list and maintain separate values per deployment.
- Use Case: When adding a third-party API key to your Convex app, use this Skill to store it as a deployment env var and access it safely inside a Node action.
Quick Start
Set up a new API key as a Convex environment variable and show me how to read it inside an action.