---
title: env | CodeWeaver Docs
description: API reference for codeweaver.core.types.env
url: "https://docs.knitli.com/api/core/types/env"
type: static
generatedAt: "2026-04-17T17:21:08.186Z"
---

# env
       [Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Ftypes%2Fenv%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Ftypes%2Fenv%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[View in Markdown](/codeweaver/api/core/types/env.md)       [Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Ftypes%2Fenv%2F)[Share on X](https://x.com/intent/tweet?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Ftypes%2Fenv%2F&text=env)[Share on Threads](https://threads.net/intent/post?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Ftypes%2Fenv%2F&text=env)[Share on Bluesky](https://bsky.app/intent/compose?text=env%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Ftypes%2Fenv%2F)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Ftypes%2Fenv%2F)[Share on Reddit](https://reddit.com/submit?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Ftypes%2Fenv%2F&title=env)[Share on Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Ftypes%2Fenv%2F&t=env)[Share on Email](mailto:?subject=env&body=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Ftypes%2Fenv%2F)[Share on WhatsApp](https://wa.me/?text=env%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Ftypes%2Fenv%2F)[Share on Telegram](https://t.me/share/url?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Ftypes%2Fenv%2F&text=env)
# `codeweaver.core.types.env`
[Section titled “codeweaver.core.types.env”](#codeweavercoretypesenv)
Types for environment variable definitions.

## Class: `EnvFormat`
[Section titled “Class: EnvFormat”](#class-envformat)
Supported data formats for MCP server inputs and outputs.

## Class: `EnvVarInfo`
[Section titled “Class: EnvVarInfo”](#class-envvarinfo)
Describes an environment variable and its description.

An optional variable name, if given, provides the key if the variable’s value is passed to the provider’s client (if different).

### Method: `as_docker_yaml`
[Section titled “Method: as_docker_yaml”](#method-as_docker_yaml)

**

```
as_docker_yaml()
```

TODO: Convert to Docker MCP Registry YAML format.

### Method: `as_kwarg`
[Section titled “Method: as_kwarg”](#method-as_kwarg)

**

```
as_kwarg()
```

Convert to a keyword argument string.

### Method: `as_mcp_info`
[Section titled “Method: as_mcp_info”](#method-as_mcp_info)

**

```
as_mcp_info()
```

Convert to MCP server JSON format.

## Class: `ProviderEnvVars`
[Section titled “Class: ProviderEnvVars”](#class-providerenvvars)
Provides information about environment variables used by a provider’s client that are not part of CodeWeaver’s settings.

You can optionally use these to configure the provider’s client, or you can use the equivalent CodeWeaver environment variables or settings.

Each setting is a tuple of the form `(env_var_name, description)`, where `env_var_name` is the name of the environment variable and `description` is a brief description of what it does or the expected format.

## Class: `VariableInfo`
[Section titled “Class: VariableInfo”](#class-variableinfo)
Describes a variable and its description.