SKILL DETAIL
convex-env
get-convex/agent-skills/convex-env
This skill manages environment variables and secrets for Convex deployments. Store secrets as Convex deployment env vars using `npx convex env set`, read them with `process.env` in actions, and never commit them to the repository. Workflow: 1. Use `npx convex env set KEY value` per deployment. 2. Read via `process.env.KEY` inside actions (not queries or mutations). 3. Never hardcode or commit secrets; add to `.env.local` only for local development. 4. Confirm with `npx convex env list`. Rules: Secrets live in Convex env vars, never in code or git. `process.env` is only used in actions (use 'use node' if needed), not in queries or mutations. Different deployments need their own values.
Installation
npx skills add https://github.com/get-convex/agent-skills --skill convex-env
Skill files
SKILL.md
Last synced · Aug 29, 2026
SKILL.md›
---
name: convex-env
description: "Set and wire Convex deployment env vars / secrets for the app."
---
<!-- GENERATED from convex-agents content/capabilities/env.json — do not edit by hand. -->
# Manage 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
1. `npx convex env set KEY value` (per deployment).
2. Read via process.env.KEY inside actions (not queries/mutations).
3. Never hardcode or commit secrets; add to .env.local only for local.
4. 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.