GPT Auth provides a user-friendly solution to quickly setup oauth for your custom GPT and self-host it.
Tutorial -> https://youtu.be/naJCyASboTk
- Robust Security: Tailored for Custom GPTs, ensuring protection against unauthorized access.
- Access Control: Effective monitoring and management of user access by GPT owners.
- Easy Integration: User-friendly setup, comprehensive guide, and intuitive dashboard.
- Community & Support: Access to a supportive community and dedicated developer support.
- Interactive Demo & Documentation: Hands-on demo and extensive documentation available.
- Next.js
- Supabase
- Tailwind
- OpenAI
- Flask
Minimum requirements to run the project locally:
- Node.js v18
- Python3
- Supabase Account
1. Frontend (Next.js)
First, set up your environment variables. Copy the .env.example file to a new file named .env.local:
cp .env.example .env.localOpen .env.local and add your Supabase project's Publishable key (anon key).
Then, install dependencies and run the development server:
npm install
npm run dev2. Backend (Flask - Optional)
The Python server is separate and can be run if needed for custom backend logic.
cd server
pip install -r requirements.txt
python webserver.pyDeploying your GPT Auth frontend is easy with Vercel.
- Push to GitHub: Make sure your code is pushed to a GitHub repository.
- Import Project: Go to your Vercel dashboard and import the GitHub repository.
- Configure Project: Vercel will automatically detect that it's a Next.js project. The default settings should work perfectly.
- Add Environment Variables: In the project settings on Vercel, navigate to "Environment Variables" and add the following:
NEXT_PUBLIC_SUPABASE_URL: Your project's Supabase URL.NEXT_PUBLIC_SUPABASE_ANON_KEY: Your project's publishable anon key.
- Deploy: Click the "Deploy" button. Vercel will build and deploy your site.
If you don't want to setup locally and wish to use a hosted version, you can start from https://gpt-auth.thesamur.ai/
Here is a demo chatgpt plugin built with GPT Auth to test the entire flow of the app https://chat.openai.com/g/g-xx7FJpizE-gpt-auth