About convex-env
convex-env is a skill for Convex developers managing deployment environment variables and secrets. It covers setting and reading values while keeping secrets out of code and version control.
Key features
- 01Set variables per deployment
- 02Read variables in actions
- 03Keep secrets out of commits
- 04List variables for verification
Use cases
- 01Configure secrets for separate deployments
- 02Use environment variables in actions
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ get-convex/ agent-skills --skill convex-envAfter installing, type/convex-envin Claude Code to confirm it loaded.
Details
From the project READMEManage env vars + secrets
Store secrets as Convex deployment env vars (npx convex env set), read them with process.env in actions, never commit them.
Workflow
npx convex env set KEY value(per deployment).- Read via process.env.KEY inside actions (not queries/mutations).
- Never hardcode or commit secrets; add to .env.local only for local.
- Confirm with
npx convex env list.
Rules
- Secrets live in Convex env vars, never in code or git.
- process.env only in actions ('use node' if needed), not queries/mutations.
- Different deployments need their own values.
Comments
Markdown supported