Skip to content
Back to skills

1229 Custom Root Ui D8c2f9b8

ASecurity

πŸ’₯ Use this when you want to serve LiteLLM on a custom base url path like `https://localhost:4000/api/v1` :::info Requires v1.72.3 or higher. ::: Limitations: - This does not work in [litellm non-root](./deploy#non-root---without-internet-connection) images, as it requires write access to the UI files.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
devopsgoshellapi

Works with

  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 1229-custom_root_ui_d8c2f9b8 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1229 Custom Root Ui D8c2f9b8?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 1229 Custom Root Ui D8c2f9b8
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-1229-custom-root-ui-d8c2f9b8/badge)](https://www.skillsdirectory.com/skills/tools-only-1229-custom-root-ui-d8c2f9b8)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Image from '@theme/IdealImage';

# UI - Custom Root Path 

πŸ’₯ Use this when you want to serve LiteLLM on a custom base url path like `https://localhost:4000/api/v1` 

:::info

Requires v1.72.3 or higher.

:::

Limitations:
- This does not work in [litellm non-root](./deploy#non-root---without-internet-connection) images, as it requires write access to the UI files.

## Usage

### 1. Set `SERVER_ROOT_PATH` in your .env

πŸ‘‰ Set `SERVER_ROOT_PATH` in your .env and this will be set as your server root path

```
export SERVER_ROOT_PATH="/api/v1"
```

### 2. Run the Proxy

```shell
litellm proxy --config /path/to/config.yaml
```

After running the proxy you can access it on `http://0.0.0.0:4000/api/v1/` (since we set `SERVER_ROOT_PATH="/api/v1"`)

### 3. Verify Running on correct path

<Image img={require('../../img/custom_root_path.png')} />

**That's it**, that's all you need to run the proxy on a custom root path


## Demo

[Here's a demo video](https://drive.google.com/file/d/1zqAxI0lmzNp7IJH1dxlLuKqX2xi3F_R3/view?usp=sharing) of running the proxy on a custom root path

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.