Switch language한국어
Back to the list

How to Deploy Open WebUI with Secure OpenAI API Integration, Public Tunneling, and Browser-Based Chat Access

TL;DR AI

Key summary

2 min read
  1. Installs Open WebUI and helper packages via pip (open-webui, requests, nest_asyncio).

  2. Prompts for the OpenAI API key securely in Colab using getpass.

  3. Sets a default model (user can enter one); the default is gpt-4o-mini.

  4. Configures environment variables: ENABLE_OPENAI_API=True, OPENAI_API_KEY from input, OPENAI_API_BASE_URL=https://api.openai.com/v1, WEBUI_SECRET_KEY as a 32-byte hex token, WEBUI_NAME='Open WebUI on Colab', and DEFAULT_MODELS set to the chosen default.

  5. Creates data directory at /content/open-webui-data and sets DATA_DIR to that path.

Read the original