Skip to content

feat: initial OpenGateway setup#5

Open
johnnyhuy wants to merge 4 commits into
mainfrom
feat/initial-gateway-v2
Open

feat: initial OpenGateway setup#5
johnnyhuy wants to merge 4 commits into
mainfrom
feat/initial-gateway-v2

Conversation

@johnnyhuy
Copy link
Copy Markdown
Contributor

FastAPI-based AI gateway with OpenAI-compatible endpoints.

  • Virtual key auth with master key support
  • Provider routing (OpenAI adapter with streaming)
  • Config via env vars / .env file
  • Docker + docker-compose with PostgreSQL and Redis
  • Tests passing (4/4)
  • MIT licensed with DCO contribution model

Closes initial setup.

johnnyhuy added 4 commits May 5, 2026 05:40
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant