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

# VastAI.create_env_var

Create a new user environment variable.

## Signature

```python theme={null}
VastAI.create_env_var(name: str, value: str) -> str
```

## Parameters

<ParamField path="name" type="str" required>
  name
</ParamField>

<ParamField path="value" type="str" required>
  value
</ParamField>

## Returns

`str`, Result from the API call.

## Example

```python theme={null}
from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.create_env_var(name="...", value="...")
print(result)
```
