# Convex Env

Set and wire Convex deployment env vars / secrets for the app.

- Repository: https://github.com/openclaw/clawhub (9543 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add openclaw/clawhub --skill convex-env -g -a claude-code -y`
Codex: `npx skills add openclaw/clawhub --skill convex-env -g -a codex -y`
Cursor: `npx skills add openclaw/clawhub --skill convex-env -g -a cursor -y`
Gemini CLI: `npx skills add openclaw/clawhub --skill convex-env -g -a gemini-cli -y`

## Description

Set and wire Convex deployment env vars / secrets for the app.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

<!-- 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.

