env-manager

Store and manage persistent environment variables in .env files.

5.0k|548|Updated May 14, 2025
One-click install
npx skills add https://github.com/dtyq/magic --skill env-manager-dtyq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: env-manager
Source: https://github.com/dtyq/magic/tree/main/backend/super-magic/agents/skills/env-manager
Command: npx skills add https://github.com/dtyq/magic --skill env-manager-dtyq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-dotenv, and includes scripts (resource) components.

What problem does it solve?

Manage persistent environment variables across AI agent sessions by storing API keys and configuration values so they do not need to be re-entered every time.

Core Features & Use Cases

  • Persist and manage environment variables across sessions with set, list, and unset operations.
  • Merge variable sources from multiple locations to provide a unified view, while masking secrets in outputs.
  • Use cases include storing API keys, tokens, and configuration values that must survive restarts and be shared across tasks.

Quick Start

Set KEY_NAME to a value using the env.py script.

Frequently Asked Questions about env-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I persist API keys across sessions without re-entering them every time?

To persist environment variables across sessions, you use a script that writes API keys and configuration values to .env files. This ensures secrets survive restarts and are shared across tasks without re-entering them.

What is the best way to manage environment variables across multiple projects?

Managing environment variables across projects involves merging variable sources from multiple locations to provide a unified view. The Skill supports set, unset, and list operations while masking secret values in output.

Can I use python-dotenv to set and unset environment variables?

Yes, you can use python-dotenv to perform set and unset operations on environment variables. The Skill leverages python-dotenv to read and write to .env files, managing persistent configuration values for your sessions.

How are secret values masked when listing environment variables?

When listing environment variables, secret values are masked in the output. The Skill merges variable sources from multiple locations to provide a unified view while ensuring sensitive API keys and tokens are not exposed.

Does storing API keys in .env files work for AI agent sessions?

Storing API keys in .env files works for AI agent sessions by providing persistent environment variables that survive restarts. The Skill reads and writes these configuration values, ensuring they are available across different tasks and projects.