-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the Gatewayz Universal Inference API Developer Documentation Hub
This wiki provides comprehensive documentation for developers working on the Gatewayz backend. Use this as your central resource for setup, features, deployment, and operations.
- 🚀 Getting Started
- ⚙️ Setup & Configuration
- ✨ Features & Functionality
- 🚢 Deployment
- 📊 Monitoring & Observability
- 🔌 Integrations
- 🛠️ Operations & Maintenance
- 🔄 CI/CD & Workflows
- 📖 API Documentation
- 🐛 Troubleshooting
New to the project? Start here!
| Document | Description |
|---|---|
| README | Main project overview and quick start |
| CLAUDE.md | Comprehensive codebase context for AI assistants |
| Setup Guide | Local development setup instructions |
| Complete Setup Guide | End-to-end setup walkthrough |
| Environment Setup | Environment variables and configuration |
| Architecture Overview | System architecture and design patterns |
- ✅ Clone repository
- ✅ Install dependencies:
pip install -r requirements.txt - ✅ Set up environment variables (see Environment Setup)
- ✅ Configure Supabase (see Setup Guide)
- ✅ Run local server:
python src/main.py - ✅ Test endpoints:
http://localhost:8000/health
Environment configuration and service integrations
| Document | Description |
|---|---|
| Environment Variables | All environment variables explained |
| API Key Setup | API key generation and management |
| Branch Protection Setup | GitHub branch protection rules |
| Document | Description |
|---|---|
| Google OAuth2 JWT Setup | JWT authentication for Google services |
| Google OAuth2 Quick Start | Quick setup for Google authentication |
| Google Vertex Setup | Google Vertex AI configuration |
| Vertex AI Setup | Alternative Vertex AI setup guide |
Feature documentation and implementation guides
| Document | Description |
|---|---|
| Activity Logging | User activity tracking and audit logs |
| Referral System | Referral program implementation |
| Stripe Integration | Payment processing and subscriptions |
| Statsig Feature Flags | Feature flag management |
| Release Tracking | Version and release management |
| Document | Description |
|---|---|
| Model Health Overview | Model health tracking system |
| Model Health Quick Start | Quick setup for model health |
| Model Health API Spec | API specification |
| Model Health UI Mockups | Frontend UI designs |
| Model Sync | Model catalog synchronization |
| Model Sync Quickstart | Quick sync setup |
| Private Models Filter | Filtering private models |
| Health & Availability API | Model availability checking |
| Document | Description |
|---|---|
| Pricing System Index | Main pricing documentation hub |
| Pricing Quick Start | Quick pricing setup |
| Pricing Implementation Summary | Implementation details |
| Pricing Audit System | Audit and verification |
| Pricing Audit Comparison | Detailed comparison data |
| GPT-5 Pricing Reference | GPT-5 specific pricing |
| GPT-5.1 Implementation Guide | GPT-5.1 integration |
| Document | Description |
|---|---|
| Auto-Merge Implementation | Automated PR merging |
| Auto-Merge Quick Start | Quick setup for auto-merge |
| Legacy API Key Migration | Migrating old API keys |
Production deployment guides and configurations
| Document | Description |
|---|---|
| Railway Quick Start | ⭐ Start here for Railway |
| Railway Setup Checklist | Step-by-step checklist |
| Railway Initial Setup | First-time Railway setup |
| Railway Deployment Guide | Complete deployment guide |
| Railway Autonomous Deployment | Automated deployments |
| Railway Error Monitoring | Error monitoring setup |
| Railway Prometheus Setup | Metrics with Prometheus |
| Document | Description |
|---|---|
| Auto-Deploy Quick Start | ⭐ Quick deployment setup |
| Auto-Deployment Architecture | Architecture overview |
| Auto-Deployment Setup | Detailed setup guide |
| Auto-Deployment Getting Started | Getting started guide |
| Document | Description |
|---|---|
| Vercel Deployment | Serverless deployment on Vercel |
| General Deployment Guide | Platform-agnostic deployment |
| Deploy Migrations | Database migration deployment |
Monitoring, logging, and performance tracking
| Document | Description |
|---|---|
| Observability Quick Start | ⭐ Start here for monitoring |
| Error Monitoring Quick Start | Quick error tracking setup |
| Performance Monitoring Quick Start | Quick performance setup |
| Document | Description |
|---|---|
| Error Monitoring | Complete error monitoring guide |
| PostHog Error Tracking | PostHog integration |
| Sentry Error Capture | Sentry implementation |
| Sentry Quick Reference | Sentry quick reference |
| Document | Description |
|---|---|
| Performance Monitoring | Performance tracking system |
| Performance Optimization | Optimization strategies |
| Document | Description |
|---|---|
| OpenTelemetry Setup | OpenTelemetry integration |
| Prometheus Setup | Prometheus metrics |
| Grafana Setup | Grafana dashboards |
Third-party service integrations
| Document | Description |
|---|---|
| Integration Guide | General integration guide |
| Alibaba Cloud Integration | Alibaba Cloud setup |
| Google Vertex Migration | Migrating to Vertex AI |
| Frontend Model Health Integration | Frontend integration guide |
Day-to-day operations and maintenance
| Document | Description |
|---|---|
| Operations Guide | Operational procedures |
| Auth Timeout Fixes | Authentication timeout issues |
Continuous Integration and Deployment workflows
| Document | Description |
|---|---|
| Testing Workflows Locally | ⭐ Test with act locally |
| Testing Workflows Quick Guide | Quick reference card |
| Document | Description |
|---|---|
| Supabase Migrations CI | ⭐ Automated migrations setup |
| Supabase Migrations Setup | Setup checklist |
| Document | Description |
|---|---|
| Apidog Runner Quick Start | ⭐ API testing quick start |
| Apidog Runner Setup | Detailed setup guide |
| Apidog Runner Summary | Implementation summary |
API endpoints and usage
| Document | Description |
|---|---|
| API Reference | Complete API documentation |
| Architecture | API architecture and design |
Common issues and solutions
| Document | Description |
|---|---|
| Troubleshooting Guide | Common issues and fixes |
| Auth Timeout Fixes | Authentication timeouts |
Historical documentation (for reference)
| Document | Description |
|---|---|
| Implementation Summary | Historical implementation notes |
Finding what you need:
- Setup issues? → Check Setup & Configuration
- New feature? → Check Features & Functionality
- Deploying? → Check Deployment (start with Quick Starts)
- Errors/monitoring? → Check Monitoring & Observability
- CI/CD issues? → Check CI/CD & Workflows
- API questions? → Check API Documentation
- Something broken? → Check Troubleshooting
Most frequently accessed documents:
-
Testing Workflows Locally - Test GitHub Actions with
act - Supabase Migrations CI - Automated database migrations
- Railway Quick Start - Deploy to Railway
- Observability Quick Start - Set up monitoring
- Complete Setup Guide - Full development setup
- Model Health Quick Start - Model health tracking
- Pricing Quick Start - Pricing system setup
- API Reference - API endpoints documentation
Adding new documentation?
-
Create your
.mdfile in the appropriate subdirectory:-
docs/setup/- Setup and configuration -
docs/features/- Feature documentation -
docs/deployment/- Deployment guides -
docs/monitoring/- Monitoring and observability -
docs/integrations/- Third-party integrations
-
-
Add your document to this wiki index
-
Follow the existing documentation format
-
Include code examples where applicable
-
Add a "Quick Start" section for complex topics
When creating new docs:
- ✅ Use clear, descriptive titles
- ✅ Include a table of contents for long docs
- ✅ Add code examples with syntax highlighting
- ✅ Provide both detailed and quick-start versions
- ✅ Include troubleshooting sections
- ✅ Keep the wiki index updated
- ✅ Cross-reference related documents
- Total Documents: 76+ markdown files
- Categories: 10 main sections
- Quick Starts: 15+ quick reference guides
- Setup Guides: 12+ configuration guides
- Feature Docs: 25+ feature implementations
- Deployment Guides: 13+ platform-specific guides
- GitHub Repository: gatewayz-backend
- Supabase Dashboard: supabase.com/dashboard
- Railway Dashboard: railway.app
- Statsig Dashboard: statsig.com
- PostHog Dashboard: posthog.com
Last Updated: 2025-11-26 Maintained By: Gatewayz Development Team Questions? Open an issue or consult the relevant documentation section above.
Reading Path (start here, in order)
- Conceptual Model
- Stability Definition
- Conceptual Model Features
- Features
- Delta Report
- Features-Acceptance-Criteria
Testing
Security & Access
Billing
Monitoring
Features
Providers
Operations
Data References