selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Free-GPT4-WEB-API logo

Self-host Free-GPT4-WEB-API

1.1.3

Self-hosted API gateway for free LLM access

ReleaseOpen SourceGPL-3.0
Updated5 months ago
LanguagePython
Setup difficultyModerate
Stars
726
Port
5500 (HTTP API and Web GUI)
Docker
d0ckmg/free-gpt4-web-api
Install with Docker
Login page of the Web GUISettings page of the Web GUIProfile page of the Web GUI

What is Free-GPT4-WEB-API?

Free-GPT4-WEB-API aggregates several free LLM providers into one HTTP API that you can run yourself. It supports models such as GPT-4, GPT-4o, and DeepSeek-R1, and automatically falls back between providers when one fails. The project ships a Docker image and a docker-compose file, plus a Python installation method. An optional browser-based GUI lets you configure models, providers, cookies, and passwords. Extra features include proxy support, a private token mode, conversation history, file uploads, virtual users to spread load, and an Apple Shortcut for Siri voice queries. The server listens on port 5500 by default and requires Python 3.8 with Flask, g4f, aiohttp, and Werkzeug.

Should you self-host Free-GPT4-WEB-API?

Free-GPT4-WEB-API scores 51/100 on selfhost.directory (how scoring works) and ranks #25 of 69 in AI Chat. It has 726 GitHub stars.

It shipped 2 stable releases in the past year. The latest, 1.1.3, came out on 12 May 2026. New versions land roughly every 4 months.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is GPL-3.0-licensed and written mostly in Python.

Its closest alternative on selfhost.directory is LibreChat (85/100, 46 421 stars). It scores higher overall, so compare the two before you pick. See Free-GPT4-WEB-API vs LibreChat side by side.

Features

  • Configurable query keyword
  • Cookie-based Authentication
  • Custom system prompt
  • Docker and docker-compose support
  • File input support
  • Message History
  • Multi-provider LLM access
  • Password-protected settings
  • Private mode with token auth
  • Provider fallback and health monitoring
  • Proxy Support
  • Siri Integration
  • Smart timeout handling
  • Virtual Users
  • Web GUI for configuration

Free-GPT4-WEB-API README

How to install Free-GPT4-WEB-API

Install Free-GPT4-WEB-API with Docker

docker run -p 5500:5500 d0ckmg/free-gpt4-web-api:latest

Set a password for Web GUI in Docker environments

How to configure Free-GPT4-WEB-API

  • --cookie-fileUse a cookie file (e.g., /cookies.json)

    Use a cookie file (e.g., /cookies.json)

  • --enable-guifalseEnable graphical settings interface

    Enable graphical settings interface

    values: true/false

  • --enable-historyfalseEnable message history

    Enable message history

    values: true/false

  • --enable-proxiesfalseUse one or more proxies to reduce blocking

    Use one or more proxies to reduce blocking

    values: true/false

  • --enable-virtual-usersfalseEnable virtual users to divide requests among multiple users

    Enable virtual users to divide requests among multiple users

    values: true/false

  • --file-inputfalseEnable file-as-input support

    Enable file-as-input support

    values: true/false

  • --keywordtextChange input query keyword (default: text)

    Change input query keyword (default: text)

  • --modelgpt-4Model to use (default: gpt-4)

    Model to use (default: gpt-4)

    values: gpt-4, gpt-4o, deepseek-r1, and other modern LLMs

  • --passwordSet/change the password for the settings page

    Set/change the password for the settings page

  • --port5500HTTP port (default: 5500)

    HTTP port (default: 5500)

  • --private-modefalseRequire a private token to access the API

    Require a private token to access the API

    values: true/false

  • --providerBingProvider to use (default: Bing)

    Provider to use (default: Bing)

    values: Bing, DuckDuckGo, and other providers

  • --remove-sourcesfalseRemove sources from responses

    Remove sources from responses

    values: true/false

  • --system-promptSystem prompt to steer answers

    System prompt to steer answers

Free-GPT4-WEB-API releases & version history

More in LLM Integration

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…