> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cowagent.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# env_config - Environment

> Manage API keys and secrets

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

## Dependencies

| Dependency              | Install Command                    |
| ----------------------- | ---------------------------------- |
| `python-dotenv` ≥ 1.0.0 | `pip install python-dotenv>=1.0.0` |

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

## Parameters

| Parameter | Type   | Required | Description                                    |
| --------- | ------ | -------- | ---------------------------------------------- |
| `action`  | string | Yes      | Operation type: `get`, `set`, `list`, `delete` |
| `key`     | string | No       | Environment variable name                      |
| `value`   | string | No       | Environment 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>
  <img src="https://cdn.link-ai.tech/doc/20260202234939.png" width="800" />
</Frame>
