> ## 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

> The env_config tool manages API keys and other secrets in the workspace .env file through chat, with masking built in. Saved keys are injected into the bash tool's environment automatically.

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.

![](https://cdn.link-ai.tech/doc/20260202234939.png)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.