/prompt-optimizer:env [list|reset|set KEY value]from prompt-optimizer
Inspect, set, or reset Claude Code environment variables in settings.json.
Ships in prompt-optimizer. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Manages the env block in ~/.claude/settings.json.
/env)Read ~/.claude/settings.json and display the current env block as a table:
| Variable | Value | Source |
|---|---|---|
| (each key) | (each value) | settings.json |
If the env block is empty or missing, say: "No custom environment variables set. All defaults active."
/env resetRemove the entire env block from ~/.claude/settings.json.
Confirm: "✅ Env block cleared. All variables reset to defaults. Restart Claude Code for changes to take effect."
/env set KEY valueMerge {"KEY": "value"} into the env block in ~/.claude/settings.json.
Always merge, never overwrite other keys.
Confirm: "✅ Set KEY=value in settings.json."
/env unset KEYRemove a single key from the env block without touching others.
Confirm: "✅ Removed KEY from settings.json."
env block for confirmation.7-day visitors to each command page
15 commands in this plugin
/build/build — Agent-Driven Build WorkflowFull agent-driven build workflow — explore, plan, implement, and verify in one command./chain/chain — Macro WizardInteractive macro wizard — chain multiple tuning profiles, modes, and flags in one shot./debug/debug — Debug Mode ControllerToggle full debug logging to disk (CLAUDE_DEBUG, OTEL_LOG_TOOL_DETAILS, CLAUDE_CODE_DUMP_AUTO_MODE)./flags/flags — Internal Feature Flag ControllerEnable or disable internal Claude Code feature flags via CLAUDE_INTERNAL_FC_OVERRIDES./inject/inject — API Injection ControllerManage CLAUDE_CODE_EXTRA_BODY and CLAUDE_CODE_EXTRA_METADATA injection into every API request./mode/mode — Model & Provider SwitcherSwitch Claude Code model or provider (Bedrock, Vertex, Opus, fast, custom).prompt-optimizer@aredes-marketplace is listed by cristianoaredes/aredes-marketplace — review the source before installing
npx claudepluginhub cristianoaredes/aredes-marketplace --plugin prompt-optimizerOther plugins' commands for the same job