feat: initial OpenGateway setup#5
Open
johnnyhuy wants to merge 4 commits into
Open
Conversation
FastAPI-based AI gateway with OpenAI-compatible endpoints. Virtual key auth, provider routing, streaming support. MIT licensed with DCO contribution model. Includes Docker, docker-compose, tests.
- Remove Developer Certificate of Origin (DCO) requirement - Remove signed-off-by commit requirement - Switch from pip to uv for dependency management
- Key format: sk-og-{token} (32 chars, 190 bits entropy)
- Follows OpenAI/Stripe conventions with OpenGateway branding
- Includes test key variant and format validator
- ADR documents decision and alternatives considered
- config.py: master_key -> root_key - auth.py: self.master_key -> self.root_key, key_id=master -> root - main.py: pass root_key to AuthService - tests/test_proxy.py: test_master_key -> test_root_key, sk-master -> sk-root - .env.example: MASTER_KEY -> ROOT_KEY - README.md: MASTER_KEY -> ROOT_KEY Avoids loaded terminology. Clearer intent — root key is the admin bootstrap key.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FastAPI-based AI gateway with OpenAI-compatible endpoints.
Closes initial setup.