Local OpenAI-compatible API that forwards requests to GPT via browser extension.
- Python (3.12 used while making)
- Firefox/Chromium extension in
chatgpt-bridge-ext - Logged-in GPT tab at https://chatgpt.com (Didn't test logged out case)
Open FireFox and type about:debugging". Click "This FireFox" and click "Load Temporary Add-on..." Browse and select "manifest.json" from the folder "chatgpt-bridge-ext" - this will load the temporary extension to youur FireFox.
pip install websockets openaipython openai_style_server.pyServer endpoints:
http://127.0.0.1:8000/healthhttp://127.0.0.1:8000/v1/modelshttp://127.0.0.1:8000/v1/chat/completions
python openai_style_receiver.pycd Example-Agent
python function_call_test.py- Use
base_url="http://127.0.0.1:8000/v1"in OpenAI client. - API key is not validated by this local backend.