---
title: base | CodeWeaver Docs
description: API reference for codeweaver.providers.config.clients.base
url: "https://docs.knitli.com/api/providers/config/clients/base"
type: static
generatedAt: "2026-04-17T17:21:08.803Z"
---

# base
       [Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fclients%2Fbase%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%2Fproviders%2Fconfig%2Fclients%2Fbase%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[View in Markdown](/codeweaver/api/providers/config/clients/base.md)       [Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fclients%2Fbase%2F)[Share on X](https://x.com/intent/tweet?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fclients%2Fbase%2F&text=base)[Share on Threads](https://threads.net/intent/post?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fclients%2Fbase%2F&text=base)[Share on Bluesky](https://bsky.app/intent/compose?text=base%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fclients%2Fbase%2F)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fclients%2Fbase%2F)[Share on Reddit](https://reddit.com/submit?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fclients%2Fbase%2F&title=base)[Share on Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fclients%2Fbase%2F&t=base)[Share on Email](mailto:?subject=base&body=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fclients%2Fbase%2F)[Share on WhatsApp](https://wa.me/?text=base%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fclients%2Fbase%2F)[Share on Telegram](https://t.me/share/url?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fclients%2Fbase%2F&text=base)
# `codeweaver.providers.config.clients.base`
[Section titled “codeweaver.providers.config.clients.base”](#codeweaverprovidersconfigclientsbase)
Base ClientOptions for all provider clients.

## Class: `ClientOptions`
[Section titled “Class: ClientOptions”](#class-clientoptions)
A base class for provider client options.

Client options are specific to the underlying SDK client that’s used. They are not necessarily the same as the *provider*. The provider is who you pay, while the client if what you use to connect. For the most part, this is intuitive but there are some exceptions. The biggest exception is Azure, which does not have its own provider class, because it instead uses either Cohere or OpenAI providers. You’re connecting to and paying Azure, but using the correct provider class for what you’re trying to do.

The standard way to pass client options to a provider is with the `as_settings()` method, which provides a kwargs dictionary.

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

**

```
as_settings()
```

Return the client options as a dictionary suitable for passing as settings to the client constructor.

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

**

```
assemble_env_vars()
```

Apply environment variables to the client options.