Back to Chatgpt On Wechat

env_config - Environment

docs/en/tools/env-config.mdx

2.0.81.0 KB
Original Source

Manage environment variables (API keys and secrets) in the workspace .env file, with secure conversational updates. Built-in security protection and desensitization.

Dependencies

DependencyInstall Command
python-dotenv ≥ 1.0.0pip install python-dotenv>=1.0.0

Included when installing optional dependencies: pip3 install -r requirements-optional.txt

Parameters

ParameterTypeRequiredDescription
actionstringYesOperation type: get, set, list, delete
keystringNoEnvironment variable name
valuestringNoEnvironment variable value (only for set)

Usage

Tell the Agent what key you need to configure, and it will automatically invoke this tool:

  • "Configure my BOCHA_API_KEY"
  • "Set OPENAI_API_KEY to sk-xxx"
  • "Show configured environment variables"

Configured keys are automatically injected into the bash tool's execution environment.

<Frame> </Frame>