{"id":13589965,"url":"https://github.com/fantasy-peak/cpp-freegpt-webui","last_synced_at":"2025-10-21T13:31:22.978Z","repository":{"id":181973844,"uuid":"621204600","full_name":"fantasy-peak/cpp-freegpt-webui","owner":"fantasy-peak","description":" GPT 3.5/4 with a Chat Web UI. No API key required. Web server developed with c++","archived":false,"fork":false,"pushed_at":"2024-03-13T04:54:41.000Z","size":728,"stargazers_count":243,"open_issues_count":5,"forks_count":49,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-01-29T23:08:08.707Z","etag":null,"topics":["chatgpt","chatgpt-clone","cpp20-coroutine","freegpt","gpt-3","gpt4","gpt4free","openai-api","openai-chatgpt","website"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fantasy-peak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-30T07:42:01.000Z","updated_at":"2025-01-17T13:56:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"d963fc65-0898-473d-ae8a-b723f353b021","html_url":"https://github.com/fantasy-peak/cpp-freegpt-webui","commit_stats":null,"previous_names":["fantasy-peak/chatgpt-html","fantasy-peak/cpp-freegpt-webui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fantasy-peak%2Fcpp-freegpt-webui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fantasy-peak%2Fcpp-freegpt-webui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fantasy-peak%2Fcpp-freegpt-webui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fantasy-peak%2Fcpp-freegpt-webui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fantasy-peak","download_url":"https://codeload.github.com/fantasy-peak/cpp-freegpt-webui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237494261,"owners_count":19319096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt","chatgpt-clone","cpp20-coroutine","freegpt","gpt-3","gpt4","gpt4free","openai-api","openai-chatgpt","website"],"created_at":"2024-08-01T16:00:36.995Z","updated_at":"2025-10-21T13:31:22.547Z","avatar_url":"https://github.com/fantasy-peak.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# Cpp FreeGPT WebUI\n\n[![](https://github.com/fantasy-peak/cpp-freegpt-webui/workflows/ubuntu-gcc13/badge.svg)](https://github.com/fantasy-peak/cpp-freegpt-webui/actions) [![](https://github.com/fantasy-peak/cpp-freegpt-webui/workflows/ubuntu-clang19/badge.svg)](https://github.com/fantasy-peak/cpp-freegpt-webui/actions) [![](https://img.shields.io/badge/language-C%2B%2B23-yellow.svg\n)](https://en.wikipedia.org/wiki/C%2B%2B17) [![Docker Pulls](https://img.shields.io/docker/pulls/fantasypeak/freegpt?logo=docker\n)](https://hub.docker.com/r/fantasypeak/freegpt/)\n\n## GPT 3.5/4\n\n\u003cstrong\u003eNOT REQUIRE ANY API KEY\u003c/strong\u003e ❌🔑\n\nThis project features a WebUI utilizing the [G4F API](https://github.com/xtekky/gpt4free). \u003cbr\u003e\nExperience the power of ChatGPT with a user-friendly interface, enhanced jailbreaks, and completely free.\n\n\n## Support this repository:\n\n-   ⭐ **Star the project:** Star this. It means a lot to me! 💕\n\n## Getting Started :white_check_mark:  \nTo get started with this project, you'll need to clone the repository and have g++ \u003e= 13.1 installed on your system.\n\n### Cloning the Repository :inbox_tray:\nRun the following command to clone the repository:  \n\n```\ngit clone https://github.com/fantasy-peak/cpp-freegpt-webui.git\n```\n\n## Compile And Running the Application :rocket:\nTo run the application, run the following command:\n\n```\n1. Check local g++ version, need g++ version \u003e= gcc version 13.1.0 (GCC)\n\n2. install xmake\ncurl -kfsSL https://xmake.io/shget.text | bash -s v2.8.6\nsource ~/.xmake/profile\n\n3. install libcurl-impersonate, ubuntu (apt-get install libcurl4-openssl-dev) centos7 (yum install libcurl-devel.x86_64)\nwget https://github.com/lwthiker/curl-impersonate/releases/download/v0.6.0-alpha.1/libcurl-impersonate-v0.6.0-alpha.1.x86_64-linux-gnu.tar.gz\nsudo mv libcurl-impersonate-v0.6.0-alpha.1.x86_64-linux-gnu.tar.gz /usr/lib64\ncd /usr/lib64\nsudo tar -xvf libcurl-impersonate-v0.6.0-alpha.1.x86_64-linux-gnu.tar.gz\nexport LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH\nexport LIBRARY_PATH=/usr/lib64:$LIBRARY_PATH\n\n4. Compiling\ngit clone https://github.com/fantasy-peak/cpp-freegpt-webui.git\ncd cpp-freegpt-webui\nxmake build -v -y\nxmake install -o .\ncd bin\n./cpp-freegpt-webui ../cfg/cpp-free-gpt.yml\n```\n\nAccess the application in your browser using the URL:\n```\nhttp://127.0.0.1:8858/chat\n```\n\n### Running the Docker\nPull the Docker image from Docker Hub:\n```\ndocker pull fantasypeak/freegpt:latest\n```\n\nRun the application using Docker:\n```\ndocker run -it --rm \\\n   -p 8858:8858 \\\n   --name freegpt \\\n   fantasypeak/freegpt:latest\n```\nRun the application(use http proxy) using Docker:\n```\ndocker run --rm -it \\\n   --net=host \\\n   --name freegpt \\\n   -e HTTP_PROXY=http://127.0.0.1:3128 \\\n   fantasypeak/freegpt:latest\n```\n\nConfigurable environment variables\n```\n01. CHAT_PATH=/chat\n02. HTTP_PROXY=http://127.0.0.1:8080\n03. PROVIDERS=\"[\\\"gpt-4-ChatgptAi\\\",\\\"gpt-3.5-turbo-stream-DeepAi\\\"]\"\n04. IP_WHITE_LIST=\"[\\\"127.0.0.1\\\",\\\"192.168.1.1\\\"]\"\n05. PORT=8858\n06. HOST=0.0.0.0\n07. WORK_THREAD_NUM=8\n08. INTERVAL=300\n09. ZEUS=http://127.0.0.1:8860\n10. FLARESOLVERR=http://127.0.0.1:8191/v1\n```\n\n### Start the Zeus Service [optional]\nThis is not necessary, Zeus is a cpp-freegpt-webui auxiliary service, because some provider needs to perform specific operations such as get cookies and refreshing web pages etc.\nIf you need to use these specific providers, you need to start it(Zeus Docker)\n\nStart zeus service\n```\ndocker run -d \\\n  --name=zeus \\\n  -p 8860:8860 \\\n  --rm \\\n  fantasypeak/freegpt-zeus:latest\n```\nStart the application\n```\ndocker run -it --rm \\\n   --net=host \\\n   --name freegpt \\\n   fantasypeak/freegpt:latest\n```\n\n### Start the flaresolverr docker [optional]\nThis is not necessary, The some provider(aivvm,gptChatly) is enabled Cloudflare challenges, so we need use flaresolverr to solve it.\n```\ndocker run -d \\\n  --name=flaresolverr \\\n  -p 8191:8191 \\\n  -e LOG_LEVEL=info \\\n  --restart unless-stopped \\\n  ghcr.io/flaresolverr/flaresolverr:latest\n```\n\n### Call OpenAi Api\nIt supports calling OpenAI's API, but need set API_KEY\n```\ndocker run --rm -it \\\n   -p 8858:8858 \\\n   --name freegpt \\\n   -e API_KEY=a40f22f2-c1a2-4b1d-a47f-55ae1a7ddbed \\\n   fantasypeak/freegpt:latest\n```\n\n### WebUI\nThe application interface was incorporated from the [chatgpt-clone](https://github.com/xtekky/chatgpt-clone) repository.\n\n\u003cimg src='chat.png'\u003e\n\n### API G4F\nThe free GPT-4 API was incorporated from the [GPT4Free](https://github.com/xtekky/gpt4free) repository.\n\n## Star History Chart:\n\n[![Star History Chart](https://api.star-history.com/svg?repos=fantasy-peak/cpp-freegpt-webui\u0026theme=light)](https://github.com/fantasy-peak/cpp-freegpt-webui/stargazers)\n\n## Legal Notice\nThis repository is _not_ associated with or endorsed by providers of the APIs contained in this GitHub repository. This\nproject is intended **for educational purposes only**. This is just a little personal project. Sites may contact me to\nimprove their security or request the removal of their site from this repository.\n\nPlease note the following:\n\n1. **Disclaimer**: The APIs, services, and trademarks mentioned in this repository belong to their respective owners.\n   This project is _not_ claiming any right over them nor is it affiliated with or endorsed by any of the providers\n   mentioned.\n\n2. **Responsibility**: The author of this repository is _not_ responsible for any consequences, damages, or losses\n   arising from the use or misuse of this repository or the content provided by the third-party APIs. Users are solely\n   responsible for their actions and any repercussions that may follow. We strongly recommend the users to follow the\n   TOS of the each Website.\n\n3. **Educational Purposes Only**: This repository and its content are provided strictly for educational purposes. By\n   using the information and code provided, users acknowledge that they are using the APIs and models at their own risk\n   and agree to comply with any applicable laws and regulations.\n\n4. **Copyright**: All content in this repository, including but not limited to code, images, and documentation, is the\n   intellectual property of the repository author, unless otherwise stated. Unauthorized copying, distribution, or use\n   of any content in this repository is strictly prohibited without the express written consent of the repository\n   author.\n\n5. **Indemnification**: Users agree to indemnify, defend, and hold harmless the author of this repository from and\n   against any and all claims, liabilities, damages, losses, or expenses, including legal fees and costs, arising out of\n   or in any way connected with their use or misuse of this repository, its content, or related third-party APIs.\n\n6. **Updates and Changes**: The author reserves the right to modify, update, or remove any content, information, or\n   features in this repository at any time without prior notice. Users are responsible for regularly reviewing the\n   content and any changes made to this repository.\n\nBy using this repository or any code related to it, you agree to these terms. The author is not responsible for any\ncopies, forks, or reuploads made by other users. This is the author's only account and repository. To prevent\nimpersonation or irresponsible actions, you may comply with the GNU GPL license this Repository uses.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantasy-peak%2Fcpp-freegpt-webui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffantasy-peak%2Fcpp-freegpt-webui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantasy-peak%2Fcpp-freegpt-webui/lists"}