Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

docs(user_keys.md): add docs on configurable clientside auth credentials

Krrish Dholakiab2e80ecb8e20
diff --git a/docs/my-website/docs/proxy/user_keys.md b/docs/my-website/docs/proxy/user_keys.md
index e0227d390c9..92121fd6090 100644
--- a/docs/my-website/docs/proxy/user_keys.md
+++ b/docs/my-website/docs/proxy/user_keys.md
@@ -1145,11 +1145,32 @@ main();
</Tabs>
-### Pass User LLM API Keys
-Allows your users to pass in their OpenAI API key (any LiteLLM supported provider) to make requests
+### Pass User LLM API Keys / API Base
+Allows your users to pass in their OpenAI API key/API base (any LiteLLM supported provider) to make requests
Here's how to do it:
+#### 1. Enable configurable clientside auth credentials for a provider
+
+```yaml
+model_list:
+ - model_name: "fireworks_ai/*"
+ litellm_params:
+ model: "fireworks_ai/*"
+ configurable_clientside_auth_params: ["api_base"]
+```
+
+Specify any/all auth params you want the user to be able to configure:
+
+- api_base
+- api_key
+- base_url
+
+(check [provider docs](../providers/) for provider-specific auth params - e.g. `vertex_project`)
+
+
+#### 2. Test it!
+
```python
import openai
client = openai.OpenAI(