Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

docs: add docs for app connection and secret rotation

adilsonbfef8582654e
diff --git a/docs/api-reference/endpoints/app-connections/litellm/available.mdx b/docs/api-reference/endpoints/app-connections/litellm/available.mdx
new file mode 100644
index 0000000000..7490329cee
--- /dev/null
+++ b/docs/api-reference/endpoints/app-connections/litellm/available.mdx
@@ -0,0 +1,4 @@
+---
+title: "Available"
+openapi: "GET /api/v1/app-connections/litellm/available"
+---
diff --git a/docs/api-reference/endpoints/app-connections/litellm/create.mdx b/docs/api-reference/endpoints/app-connections/litellm/create.mdx
new file mode 100644
index 0000000000..7ba8e579b6
--- /dev/null
+++ b/docs/api-reference/endpoints/app-connections/litellm/create.mdx
@@ -0,0 +1,62 @@
+---
+title: "Create"
+openapi: "POST /api/v1/app-connections/litellm"
+---
+
+<Note>
+ Check out the configuration docs for [LiteLLM Connections](/integrations/app-connections/litellm) to learn how to obtain the required credentials.
+</Note>
+
+Creates a LiteLLM app connection using a management-capable API key. The connection can then be used for [LiteLLM API Key secret rotations](/documentation/platform/secret-rotation/litellm-api-key).
+
+## Request body
+
+| Field | Type | Required | Description |
+|-------|------|----------|-------------|
+| `name` | string | Yes | A unique name for the connection. |
+| `method` | string | Yes | Must be `"api-key"`. |
+| `projectId` | string (UUID) | Yes | The project ID to attach the connection to. |
+| `credentials.apiKey` | string | Yes | A management-capable LiteLLM API key (the proxy master key or an admin/management key). |
+| `credentials.instanceUrl` | string | Yes | The base URL of your LiteLLM instance (e.g. `https://litellm.example.com`). |
+
+## Sample request
+
+```bash
+curl --request POST \
+ --url https://app.infisical.com/api/v1/app-connections/litellm \
+ --header 'Content-Type: application/json' \
+ --header 'Authorization: Bearer <ACCESS_TOKEN>' \
+ --data '{
+ "name": "my-litellm-connection",
+ "method": "api-key",
+ "projectId": "<project-id>",
+ "credentials": {
+ "apiKey": "<YOUR-LITELLM-MANAGEMENT-API-KEY>",
+ "instanceUrl": "https://litellm.example.com"
+ }
+ }'
+```
+
+## Sample response
+
+```json
+{
+ "appConnection": {
+ "id": "<connection-id>",
+ "name": "my-litellm-connection",
+ "projectId": "<project-id>",
+ "description": null,
+ "version": 1,
+ "orgId": "<org-id>",
+ "createdAt": "<ISO8601>",
+ "updatedAt": "<ISO8601>",
+ "isPlatformManagedCredentials": false,
+ "credentialsHash": "...",
+ "app": "litellm",
+ "method": "api-key",
+ "credentials": {
+ "instanceUrl": "https://litellm.example.com"
+ }
+ }
+}
+```
diff --git a/docs/api-reference/endpoints/app-connections/litellm/delete.mdx b/docs/api-reference/endpoints/app-connections/litellm/delete.mdx
new file mode 100644
index 0000000000..83ec2d02be
--- /dev/null
+++ b/docs/api-reference/endpoints/app-connections/litellm/delete.mdx
@@ -0,0 +1,4 @@
+---
+title: "Delete"
+openapi: "DELETE /api/v1/app-connections/litellm/{connectionId}"
+---
diff --git a/docs/api-reference/endpoints/app-connections/litellm/get-by-id.mdx b/docs/api-reference/endpoints/app-connections/litellm/get-by-id.mdx
new file mode 100644
index 0000000000..1b43cc9fab
--- /dev/null
+++ b/docs/api-reference/endpoints/app-connections/litellm/get-by-id.mdx
@@ -0,0 +1,4 @@
+---
+title: "Get by ID"
+openapi: "GET /api/v1/app-connections/litellm/{connectionId}"
+---
diff --git a/docs/api-reference/endpoints/app-connections/litellm/get-by-name.mdx b/docs/api-reference/endpoints/app-connections/litellm/get-by-name.mdx
new file mode 100644
index 0000000000..ee494e53dc
--- /dev/null
+++ b/docs/api-reference/endpoints/app-connections/litellm/get-by-name.mdx
@@ -0,0 +1,4 @@
+---
+title: "Get by Name"
+openapi: "GET /api/v1/app-connections/litellm/connection-name/{connectionName}"
+---
diff --git a/docs/api-reference/endpoints/app-connections/litellm/list.mdx b/docs/api-reference/endpoints/app-connections/litellm/list.mdx
new file mode 100644
index 0000000000..af239f574b
--- /dev/null
+++ b/docs/api-reference/endpoints/app-connections/litellm/list.mdx
@@ -0,0 +1,4 @@
+---
+title: "List"
+openapi: "GET /api/v1/app-connections/litellm"
+---
diff --git a/docs/api-reference/endpoints/app-connections/litellm/update.mdx b/docs/api-reference/endpoints/app-connections/litellm/update.mdx
new file mode 100644
index 0000000000..78e4c49a3f
--- /dev/null
+++ b/docs/api-reference/endpoints/app-connections/litellm/update.mdx
@@ -0,0 +1,8 @@
+---
+title: "Update"
+openapi: "PATCH /api/v1/app-connections/litellm/{connectionId}"
+---
+
+<Note>
+ Check out the configuration docs for [LiteLLM Connections](/integrations/app-connections/litellm) to learn how to obtain the required credentials.
+</Note>
diff --git a/docs/api-reference/endpoints/secret-rotations/litellm-api-key/create.mdx b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/create.mdx
new file mode 100644
index 0000000000..07edfc384b
--- /dev/null
+++ b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/create.mdx
@@ -0,0 +1,86 @@
+---
+title: "Create"
+openapi: "POST /api/v2/secret-rotations/litellm-api-key"
+---
+
+<Note>
+ Check out the configuration docs for [LiteLLM API Key Rotations](/documentation/platform/secret-rotation/litellm-api-key) to learn how to obtain the required parameters.
+</Note>
+
+Creates a LiteLLM API Key secret rotation. Infisical will create and rotate API keys via your [LiteLLM connection](/integrations/app-connections/litellm) and write them to the specified secret path.
+
+## Request body
+
+| Field | Type | Required | Description |
+|-------|------|----------|-------------|
+| `name` | string | Yes | A unique name for the rotation (max 100 characters). |
+| `projectId` | string (UUID) | Yes | The project ID. |
+| `connectionId` | string (UUID) | Yes | ID of the LiteLLM app connection (management-capable API key). |
+| `environment` | string | Yes | Environment slug (e.g. `dev`, `prod`). |
+| `secretPath` | string | Yes | Path where the generated API key secret will be stored. |
+| `isAutoRotationEnabled` | boolean | Yes | Whether to rotate automatically on the schedule. |
+| `rotationInterval` | number | Yes | Days between rotations (e.g. `30`). |
+| `rotateAtUtc` | object | Yes | Time of day (UTC) to run rotation: `{ "hours", "minutes" }`. |
+| `parameters.name` | string | Yes | Name for the generated key in LiteLLM (max 100 characters). Infisical appends a timestamp to keep each key unique. |
+| `parameters.userId` | string | No | LiteLLM user ID to associate the generated key with. |
+| `parameters.teamId` | string | No | LiteLLM team ID to associate the generated key with. |
+| `parameters.models` | string[] | No | Model names the key is allowed to access. An empty list allows all models. |
+| `parameters.additionalOptions` | string (JSON) | No | A JSON object of additional `/key/generate` options (e.g. `max_budget`, `tpm_limit`, `rpm_limit`, `metadata`). |
+| `secretsMapping.apiKey` | string | Yes | Secret key name to store the generated API key (e.g. `LITELLM_API_KEY`). |
+| `description` | string | No | Optional description. |
+
+## Sample request
+
+```bash
+curl --request POST \
+ --url https://us.infisical.com/api/v2/secret-rotations/litellm-api-key \
+ --header 'Content-Type: application/json' \
+ --header 'Authorization: Bearer <ACCESS_TOKEN>' \
+ --data '{
+ "name": "my-litellm-rotation",
+ "projectId": "<project-id>",
+ "description": "LiteLLM API key rotation",
+ "connectionId": "<litellm-connection-id>",
+ "environment": "dev",
+ "secretPath": "/",
+ "isAutoRotationEnabled": true,
+ "rotationInterval": 30,
+ "rotateAtUtc": { "hours": 0, "minutes": 0 },
+ "parameters": {
+ "name": "my-app-key",
+ "userId": "<litellm-user-id>",
+ "teamId": "<litellm-team-id>",
+ "models": ["gpt-4o"],
+ "additionalOptions": "{\"max_budget\": 100}"
+ },
+ "secretsMapping": {
+ "apiKey": "LITELLM_API_KEY"
+ }
+ }'
+```
+
+## Sample response
+
+```json
+{
+ "secretRotation": {
+ "id": "<rotation-id>",
+ "name": "my-litellm-rotation",
+ "description": "LiteLLM API key rotation",
+ "secretsMapping": { "apiKey": "LITELLM_API_KEY" },
+ "isAutoRotationEnabled": true,
+ "activeIndex": 0,
+ "connectionId": "<litellm-connection-id>",
+ "rotationInterval": 30,
+ "rotateAtUtc": { "hours": 0, "minutes": 0 },
+ "type": "litellm-api-key",
+ "parameters": {
+ "name": "my-app-key",
+ "userId": "<litellm-user-id>",
+ "teamId": "<litellm-team-id>",
+ "models": ["gpt-4o"],
+ "additionalOptions": "{\"max_budget\": 100}"
+ }
+ }
+}
+```
diff --git a/docs/api-reference/endpoints/secret-rotations/litellm-api-key/delete.mdx b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/delete.mdx
new file mode 100644
index 0000000000..e3923033d5
--- /dev/null
+++ b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/delete.mdx
@@ -0,0 +1,4 @@
+---
+title: "Delete"
+openapi: "DELETE /api/v2/secret-rotations/litellm-api-key/{rotationId}"
+---
diff --git a/docs/api-reference/endpoints/secret-rotations/litellm-api-key/get-by-id.mdx b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/get-by-id.mdx
new file mode 100644
index 0000000000..7972c4f102
--- /dev/null
+++ b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/get-by-id.mdx
@@ -0,0 +1,4 @@
+---
+title: "Get by ID"
+openapi: "GET /api/v2/secret-rotations/litellm-api-key/{rotationId}"
+---
diff --git a/docs/api-reference/endpoints/secret-rotations/litellm-api-key/get-by-name.mdx b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/get-by-name.mdx
new file mode 100644
index 0000000000..5fb25e00ea
--- /dev/null
+++ b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/get-by-name.mdx
@@ -0,0 +1,4 @@
+---
+title: "Get by Name"
+openapi: "GET /api/v2/secret-rotations/litellm-api-key/rotation-name/{rotationName}"
+---
diff --git a/docs/api-reference/endpoints/secret-rotations/litellm-api-key/get-generated-credentials-by-id.mdx b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/get-generated-credentials-by-id.mdx
new file mode 100644
index 0000000000..3cb34aebd6
--- /dev/null
+++ b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/get-generated-credentials-by-id.mdx
@@ -0,0 +1,4 @@
+---
+title: "Get Credentials by ID"
+openapi: "GET /api/v2/secret-rotations/litellm-api-key/{rotationId}/generated-credentials"
+---
diff --git a/docs/api-reference/endpoints/secret-rotations/litellm-api-key/list.mdx b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/list.mdx
new file mode 100644
index 0000000000..7c12d4e591
--- /dev/null
+++ b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/list.mdx
@@ -0,0 +1,4 @@
+---
+title: "List"
+openapi: "GET /api/v2/secret-rotations/litellm-api-key"
+---
diff --git a/docs/api-reference/endpoints/secret-rotations/litellm-api-key/rotate-secrets.mdx b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/rotate-secrets.mdx
new file mode 100644
index 0000000000..31ad625d58
--- /dev/null
+++ b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/rotate-secrets.mdx
@@ -0,0 +1,4 @@
+---
+title: "Rotate Secrets"
+openapi: "POST /api/v2/secret-rotations/litellm-api-key/{rotationId}/rotate-secrets"
+---
diff --git a/docs/api-reference/endpoints/secret-rotations/litellm-api-key/update.mdx b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/update.mdx
new file mode 100644
index 0000000000..331e662859
--- /dev/null
+++ b/docs/api-reference/endpoints/secret-rotations/litellm-api-key/update.mdx
@@ -0,0 +1,8 @@
+---
+title: "Update"
+openapi: "PATCH /api/v2/secret-rotations/litellm-api-key/{rotationId}"
+---
+
+<Note>
+ Check out the configuration docs for [LiteLLM API Key Rotations](/documentation/platform/secret-rotation/litellm-api-key) to learn how to obtain the required parameters.
+</Note>
diff --git a/docs/docs.json b/docs/docs.json
index 88586297c9..a07ec6a06b 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -147,6 +147,7 @@
"integrations/app-connections/external-infisical",
"integrations/app-connections/laravel-forge",
"integrations/app-connections/ldap",
+ "integrations/app-connections/litellm",
"integrations/app-connections/ssh",
"integrations/app-connections/mssql",
"integrations/app-connections/mongodb",
@@ -494,6 +495,7 @@
"documentation/platform/secret-rotation/datadog-application-key-secret",
"documentation/platform/secret-rotation/dbt-service-token",
"documentation/platform/secret-rotation/ldap-password",
+ "documentation/platform/secret-rotation/litellm-api-key",
"documentation/platform/secret-rotation/mongodb-credentials",
"documentation/platform/secret-rotation/mssql-credentials",
"documentation/platform/secret-rotation/mysql-credentials",
@@ -1784,6 +1786,18 @@
"api-reference/endpoints/app-connections/ldap/delete"
]
},
+ {
+ "group": "LiteLLM",
+ "pages": [
+ "api-reference/endpoints/app-connections/litellm/list",
+ "api-reference/endpoints/app-connections/litellm/available",
+ "api-reference/endpoints/app-connections/litellm/get-by-id",
+ "api-reference/endpoints/app-connections/litellm/get-by-name",
+ "api-reference/endpoints/app-connections/litellm/create",
+ "api-reference/endpoints/app-connections/litellm/update",
+ "api-reference/endpoints/app-connections/litellm/delete"
+ ]
+ },
{
"group": "Microsoft SQL Server",
"pages": [
diff --git a/docs/documentation/platform/secret-rotation/litellm-api-key.mdx b/docs/documentation/platform/secret-rotation/litellm-api-key.mdx
new file mode 100644
index 0000000000..424c538fd8
--- /dev/null
+++ b/docs/documentation/platform/secret-rotation/litellm-api-key.mdx
@@ -0,0 +1,152 @@
+---
+title: "LiteLLM API Key"
+description: "Learn how to automatically rotate LiteLLM API keys."
+---
+
+<Note>
+ **Rotation Type: Dual-Phase**
+
+ This rotation maintains two active credential sets with overlapping validity, ensuring zero-downtime during rotation cycles.
+</Note>
+
+## Prerequisites
+
+- Create a [LiteLLM Connection](/integrations/app-connections/litellm) using a **management-capable API key**. That connection is used to create and delete API keys on your behalf during rotation.
+
+## Create a LiteLLM API Key Rotation in Infisical
+
+<Tabs>
+ <Tab title="Infisical UI">
+ 1. Navigate to your Secret Manager Project's Dashboard and select **Add Secret Rotation** from the actions dropdown.
+
+ ![Secret Manager Dashboard](/images/secret-rotations-v2/generic/add-secret-rotation.png)
+
+ 2. Select the **LiteLLM API Key** option.
+
+ ![Select LiteLLM API Key](/images/secret-rotations-v2/litellm-api-key/select-litellm-api-key.png)
+
+ 3. Configure the rotation behavior, then click **Next**.
+
+ ![Rotation Configuration](/images/secret-rotations-v2/litellm-api-key/configuration.png)
+
+ - **LiteLLM Connection** – The connection (with a management-capable API key) that will create and delete API keys during rotation.
+ - **Rotation Interval** – The interval, in days, after which a rotation is triggered.
+ - **Rotate At** – The local time of day when rotation runs once the interval has elapsed.
+ - **Auto-Rotation Enabled** – Whether to rotate automatically on the interval. Turn off to rotate only manually or pause rotation.
+
+ 4. Set the LiteLLM API key parameters, then click **Next**. The parameters are split across two tabs, **General** and **Advanced**.
+
+ ![Rotation Parameters](/images/secret-rotations-v2/litellm-api-key/parameters.png)
+
+ **General**
+
+ - **Key Name** (required) – A descriptive name for the generated key. Infisical appends a timestamp so each rotated key stays unique and records its creation time.
+ - **User** (optional) – Associate the generated key with a LiteLLM user.
+ - **Team** (optional) – Associate the generated key with a team the selected user belongs to. Select a user first; teams are scoped to the chosen user.
+ - **Models** (optional) – Restrict the generated key to specific models. Leave empty to allow all models.
+
+ **Advanced**
+
+ - **Additional Key Options (JSON)** (optional) – A JSON object of additional `/key/generate` options (e.g. `max_budget`, `tpm_limit`, `rpm_limit`, `metadata`). See [Advanced key options](#advanced-key-options) below.
+
+ 5. Specify the secret name that the rotated API key will be mapped to. Then click **Next**.
+
+ ![Rotation Secrets Mapping](/images/secret-rotations-v2/litellm-api-key/secrets-mapping.png)
+
+ - **API Key** – The name of the secret in Infisical where the rotated API key value will be stored.
+
+ 6. Give your rotation a name and description (optional). Then click **Next**.
+
+ ![Rotation Details](/images/secret-rotations-v2/litellm-api-key/details.png)
+
+ - **Name** – A slug-friendly name for this rotation configuration.
+ - **Description** (optional) – Notes about this rotation.
+
+ 7. Review your configuration, then click **Create Secret Rotation**.
+
+ ![Rotation Review](/images/secret-rotations-v2/litellm-api-key/review.png)
+
+ 8. Your **LiteLLM API Key** rotation is created. The current API key is available as a secret at the mapped path. Rotations will create a new key, switch the active secret to it, then revoke the previous key for zero-downtime rotation.
+
+ ![Rotation Created](/images/secret-rotations-v2/litellm-api-key/created.png)
+ </Tab>
+ <Tab title="API">
+ To create a LiteLLM API Key rotation, call the [Create LiteLLM API Key Rotation](/api-reference/endpoints/secret-rotations/litellm-api-key/create) API endpoint.
+
+ ### Sample request
+
+ ```bash Request
+ curl --request POST \
+ --url https://us.infisical.com/api/v2/secret-rotations/litellm-api-key \
+ --header 'Content-Type: application/json' \
+ --data '{
+ "name": "my-litellm-rotation",
+ "projectId": "<project-id>",
+ "description": "LiteLLM API key rotation",
+ "connectionId": "<litellm-connection-id>",
+ "environment": "dev",
+ "secretPath": "/",
+ "isAutoRotationEnabled": true,
+ "rotationInterval": 30,
+ "rotateAtUtc": {
+ "hours": 0,
+ "minutes": 0
+ },
+ "parameters": {
+ "name": "my-app-key",
+ "userId": "<litellm-user-id>",
+ "teamId": "<litellm-team-id>",
+ "models": ["gpt-4o"],
+ "additionalOptions": "{\"max_budget\": 100}"
+ },
+ "secretsMapping": {
+ "apiKey": "LITELLM_API_KEY"
+ }
+ }'
+ ```
+
+ `userId`, `teamId`, `models`, and `additionalOptions` are optional and may be omitted.
+
+ ### Sample response
+
+ ```bash Response
+ {
+ "secretRotation": {
+ "id": "<rotation-id>",
+ "name": "my-litellm-rotation",
+ "description": "LiteLLM API key rotation",
+ "secretsMapping": {
+ "apiKey": "LITELLM_API_KEY"
+ },
+ "isAutoRotationEnabled": true,
+ "activeIndex": 0,
+ "connectionId": "<litellm-connection-id>",
+ "rotationInterval": 30,
+ "rotateAtUtc": { "hours": 0, "minutes": 0 },
+ "type": "litellm-api-key",
+ "parameters": {
+ "name": "my-app-key",
+ "userId": "<litellm-user-id>",
+ "teamId": "<litellm-team-id>",
+ "models": ["gpt-4o"],
+ "additionalOptions": "{\"max_budget\": 100}"
+ }
+ }
+ }
+ ```
+ </Tab>
+</Tabs>
+
+## Advanced key options
+
+The **Additional Key Options (JSON)** field lets you pass extra parameters to LiteLLM's `/key/generate` endpoint when each rotated key is created. It must be a JSON object. Common fields include:
+
+- **`max_budget`** (number) – Maximum spend allowed for the key.
+- **`tpm_limit`** / **`rpm_limit`** (numbers) – Tokens-per-minute and requests-per-minute rate limits.
+- **`metadata`** (object) – Arbitrary metadata to attach to the key.
+
+For the full list of supported fields, see the [LiteLLM key generation API](https://docs.litellm.ai/docs/proxy/virtual_keys).
+
+<Note>
+ The following options are managed by Infisical and cannot be set here: `key_alias`, `auto_rotate`, `rotation_interval`, `duration`, `send_invite_email`, `key_type`, `user_id`, `team_id`, and `models`. Use the dedicated **User**, **Team**, and **Models** fields in the General tab to scope the key instead.
+</Note>
diff --git a/docs/integrations/app-connections/litellm.mdx b/docs/integrations/app-connections/litellm.mdx
new file mode 100644
index 0000000000..0ee17968f3
--- /dev/null
+++ b/docs/integrations/app-connections/litellm.mdx
@@ -0,0 +1,92 @@
+---
+title: "LiteLLM Connection"
+description: "Learn how to configure a LiteLLM connection for Infisical."
+---
+
+[LiteLLM](https://www.litellm.ai/) is an open-source LLM gateway that exposes a unified, OpenAI-compatible API in front of hundreds of large language models. Infisical supports connecting to a self-hosted LiteLLM proxy using an **API Key**. This connection is used to manage and rotate LiteLLM API keys via [Secret Rotation](/documentation/platform/secret-rotation/litellm-api-key).
+
+## Prerequisites
+
+- A running **LiteLLM proxy** that Infisical can reach over the network, along with its base URL (e.g. `https://litellm.example.com`).
+- A **management-capable API key** for that proxy. Infisical uses this key to create, list, and delete keys on your behalf, so it must be the proxy **master key** or an admin/management key with key-management permissions. A standard virtual key limited to model completions will not work.
+
+<Tip>
+ See LiteLLM's [Virtual Keys](https://docs.litellm.ai/docs/proxy/virtual_keys) documentation for details on the proxy master key and key management.
+</Tip>
+
+## Create LiteLLM Connection in Infisical
+
+<Tabs>
+ <Tab title="Infisical UI">
+ <Steps>
+ <Step title="Navigate to App Connections">
+ In your Infisical dashboard, go to **Organization Settings** → **App Connections** (or the **Integrations** → **App Connections** tab in your project).
+
+ ![App Connections Tab](/images/app-connections/general/add-connection.png)
+ </Step>
+ <Step title="Select LiteLLM Connection">
+ Click **Add Connection** and choose **LiteLLM** from the list of available connections.
+
+ ![Select LiteLLM Connection](/images/app-connections/litellm/litellm-app-connection-option.png)
+ </Step>
+ <Step title="Fill out Connection Form">
+ Complete the form with:
+ - A **name** for the connection (e.g. `litellm-prod`)
+ - An optional **description**
+ - Your **LiteLLM Instance URL** (e.g. `https://litellm.example.com`)
+ - Your **LiteLLM API Key** (a management-capable key, as described above)
+
+ ![LiteLLM Connection Form](/images/app-connections/litellm/litellm-app-connection-form.png)
+ </Step>
+ <Step title="Connection Created">
+ After clicking **Create**, Infisical validates the credentials against your LiteLLM instance. Your **LiteLLM Connection** is then ready to use for [LiteLLM API Key Secret Rotation](/documentation/platform/secret-rotation/litellm-api-key).
+
+ ![LiteLLM Connection Created](/images/app-connections/litellm/litellm-app-connection-created.png)
+ </Step>
+ </Steps>
+ </Tab>
+ <Tab title="API">
+ Create a LiteLLM connection via the [Create LiteLLM Connection](/api-reference/endpoints/app-connections/litellm/create) API endpoint.
+
+ ### Sample request
+
+ ```bash Request
+ curl --request POST \
+ --url https://app.infisical.com/api/v1/app-connections/litellm \
+ --header 'Content-Type: application/json' \
+ --data '{
+ "name": "my-litellm-connection",
+ "method": "api-key",
+ "projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",
+ "credentials": {
+ "apiKey": "<YOUR-LITELLM-MANAGEMENT-API-KEY>",
+ "instanceUrl": "https://litellm.example.com"
+ }
+ }'
+ ```
+
+ ### Sample response
+
+ ```bash Response
+ {
+ "appConnection": {
+ "id": "e5d18aca-86f7-4026-a95e-efb8aeb0d8e6",
+ "name": "my-litellm-connection",
+ "projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",
+ "description": null,
+ "version": 1,
+ "orgId": "6f03caa1-a5de-43ce-b127-95a145d3464c",
+ "createdAt": "2025-04-23T19:46:34.831Z",
+ "updatedAt": "2025-04-23T19:46:34.831Z",
+ "isPlatformManagedCredentials": false,
+ "credentialsHash": "...",
+ "app": "litellm",
+ "method": "api-key",
+ "credentials": {
+ "instanceUrl": "https://litellm.example.com"
+ }
+ }
+ }
+ ```
+ </Tab>
+</Tabs>
diff --git a/frontend/public/images/integrations/LiteLLM.png b/frontend/public/images/integrations/LiteLLM.png
new file mode 100644
index 0000000000..36bf40264d
Binary files /dev/null and b/frontend/public/images/integrations/LiteLLM.png differ
diff --git a/frontend/public/images/integrations/LiteLLMOld.png b/frontend/public/images/integrations/LiteLLMOld.png
new file mode 100644
index 0000000000..6f71480bd1
Binary files /dev/null and b/frontend/public/images/integrations/LiteLLMOld.png differ
diff --git a/frontend/public/images/integrations/LiteLLMwrong.jpeg b/frontend/public/images/integrations/LiteLLMwrong.jpeg
new file mode 100644
index 0000000000..c2aec9ca3d
Binary files /dev/null and b/frontend/public/images/integrations/LiteLLMwrong.jpeg differ
diff --git a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/LiteLLMApiKeyRotationParametersFields.tsx b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/LiteLLMApiKeyRotationParametersFields.tsx
index 58e7dbc7c3..dc59f13466 100644
--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/LiteLLMApiKeyRotationParametersFields.tsx
+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/LiteLLMApiKeyRotationParametersFields.tsx
@@ -188,7 +188,7 @@ export const LiteLLMApiKeyRotationParametersFields = () => {
isError={Boolean(error)}
errorText={error?.message}
label="Additional Key Options (JSON)"
- tooltipText="Common fields: max_budget (number), tpm_limit / rpm_limit (numbers), metadata (object). user_id, team_id and models are set via the fields above; key_alias, auto_rotate, rotation_interval, duration, send_invite_email and key_type are managed by Infisical and cannot be set here."
+ tooltipText="Common fields: max_budget (number), tpm_limit / rpm_limit (numbers), metadata (object). user_id, team_id and models are set on the general tab; key_alias, auto_rotate, rotation_interval, duration, send_invite_email and key_type are managed by Infisical and cannot be set here."
>
<TextArea
{...field}