Skip to content

Instantly share code, notes, and snippets.

@vrushankportkey
Last active October 1, 2025 19:54
Show Gist options
  • Save vrushankportkey/c2101b65ff14419236ee1ec2c5e176d9 to your computer and use it in GitHub Desktop.
Save vrushankportkey/c2101b65ff14419236ee1ec2c5e176d9 to your computer and use it in GitHub Desktop.

Step #0

Please paste your email addresses in this Teams chat window.


Step #1

You would be invited to your Portkey workspace. Please check your email and accept the invite.

You will land on "Shared Team Workspace". From the top left, switch to "PG&E Workshop" workspace.


Step #2

Open a clean new folder. Run the following two commands one after another (from here):

If your are on macOS OR Linux:

  • #1: curl -LsSf https://astral.sh/uv/install.sh | sh
  • #2: DATA_DIR=~/.open-webui uvx --python 3.11 open-webui@latest serve

If you are on Windows (Powershell):

  • #1: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
  • #2: $env:DATA_DIR="C:\open-webui\data"; uvx --python 3.11 open-webui@latest serve

This will spin up OpenWebUI internally.


Step #3

Visit http://localhost:8080/ to access your OpenWebUI setup and create an account.


Step #4

You will have an API key waiting for you here. Copy it.


Step #5

In OpenWebUI, go to "Admin Panel" --> "Settings" --> "Connections"

  1. Click on "Configure" for "OpenAI API"
  2. Change the "URL" to https://api.portkey.ai/v1
  3. In "Auth", keep it as Bearer and paste your Portkey API Key here.
  4. "Save" this.

Step #6

Click on "New Chat". You will see the list of models populated now.


Step #7

Ask any question!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment