Loading...

Knowledge Base

How to Connect HostGator AI Credits to Open WebUI

Use your HostGator AI Credits balance to run Open WebUI chats. AI Credits flow through the HostGator AI Gateway, a single OpenAI-compatible endpoint that gives you access to GPT, Claude, Gemini, Grok, and other supported models. You skip the extra step of signing up with each model provider separately.

This article assumes you already have Open WebUI running on a HostGator Self-Managed VPS.

What You Need Before You Start

  • A running Open WebUI instance with an admin account created. (The first person to sign up becomes the global Admin automatically.)
  • Admin access to Open WebUI so you can open Admin > Settings > Connections.
  • A HostGator account with an AI Credits balance. AI Credits are required to use this connection method.
  • An AI Credits API key and your Gateway endpoint URL. Create a key in How to Manage Your HostGator API Keys. New to AI Credits? Start with Understanding AI Credits and How to Purchase HostGator AI Credits.

AI Credits deduct from your prepaid balance instead of billing you directly through the model provider, so you manage one balance and one key across every supported model.

First Time Setup

  1. Log in to Open WebUI. If this is your first time, select Get started to create your account.

    Open WebUI dashboard - Log in
     

  2. The first user to register automatically becomes the global Admin.

    Open WebUI - First Login -Admin
     

  3. Select your profile icon in the bottom-left corner, then select Admin Panel.

    Open WebUI dashboard - Log in - Admin
     

  4. Select Settings from the top menu, then select Connections from the sidebar.

    Open WebUI - Admin Panel - Connections
     

  5. Under OpenAI API, select the + icon to add a connection.

    Open WebUI - Admin Panel - Connections - Add
     

  6. Enter your Gateway endpoint in the URL field: https://gateway.ai.hostgator.com/

    Open WebUI - Admin Panel - Connections - Add - Enter Gateway URL
     

  7. Enter your AI Credits key in the Key field.
  8. Select the refresh/verify icon to confirm the connection, then select Save.
  9. Start a new chat, choose a model from the dropdown, and send a message.

    Open WebUI - Admin Panel - Test
     

Reset Your Open WebUI Password

Open WebUI (like most Linux systems) hashes passwords with bcrypt, so you can't just look up the old one. Instead, update it directly through the command line.

Step 1: Connect to your server

ssh root@your_server_ip

Step 2: Update the password (Docker installs)

Replace [email protected] and NEW_PASSWORD with your own values, then run:

docker exec -it open-webui python3 -c "
import sqlite3, bcrypt
conn = sqlite3.connect('/app/backend/data/webui.db')
cursor = conn.cursor()
hashed = bcrypt.hashpw('NEW_PASSWORD'.encode('utf-8'), bcrypt.gensalt()).decode('utf-8')
cursor.execute('UPDATE auth SET password=? WHERE email=?', (hashed, '[email protected]'))
conn.commit()
print('Password updated successfully!')"

Alternative: Start fresh with a new admin account

If you'd rather create a brand-new admin account, temporarily turn public sign-up back on.

Stop and remove the existing container:

docker stop open-webui && docker rm open-webui

Start a new one with sign-up enabled:

docker run -d -p 3000:8080 -e ENABLE_SIGNUP=True -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main

Open Open WebUI in your browser, select Sign Up, and create your new account.

docker stop open-webui && docker rm open-webui && docker run -d -p 3000:8080 -e ENABLE_SIGNUP=False -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main

Adding AI Credits to an Existing Open WebUI Install

If Open WebUI already points at another provider and you want to switch to (or add) AI Credits:

  1. Log in to Open WebUI and open Admin Panel > Settings > Connections.
  2. Under OpenAI API, select the + icon to add a new connection.

    Open WebUI - Admin Panel - Connections - Add
     

  3. Enter your Gateway endpoint in the URL field: https://gateway.ai.hostgator.com/

    Open WebUI - Admin Panel - Connections - Add - Enter Gateway URL
     

  4. Enter your AI Credits key, select the refresh/verify icon, then select Save.
  5. Open a new chat, pick a model from the connection you just added, and test it.

Confirm the Connection Works

  1. Open a new chat in Open WebUI.
  2. Select a model from the connection you just configured.
  3. Send a short test message, like “Good morning.”
  4. A reply confirms the connection is working.

    Open WebUI - Admin Panel - Test
     

Fix a Common Connection Problem

If your test message doesn't go through, the issue is usually one of a few things. Use the list below to match what you're seeing to the fix.

“Insufficient credits” error

Your AI Credits balance is empty. Check your balance on the AI Tooling page in the HostGator Portal and add more credits.

“Invalid API key” or the connection won't verify

The key is wrong, expired, or was deleted. Copy a fresh key from the HostGator Portal, re-enter it, and select the refresh/verify icon.

No models show up in the dropdown

The connection didn't save, or the URL is missing /v1. Go back to Admin > Settings > Connections and double-check the URL and key.

Chat sends but nothing comes back

No model is selected, or the model belongs to a disconnected provider. Reopen the model dropdown and pick a model from an active, verified connection.

Loading...