File size: 1,639 Bytes
cdc337a b886528 cdc337a 4ba35ae cdc337a b886528 cdc337a 4ba35ae cdc337a 4ba35ae cdc337a 4ba35ae cdc337a 4ba35ae cdc337a 4ba35ae cdc337a 4ba35ae | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | ---
title: Ipa2korg
emoji: ๐
colorFrom: green
colorTo: yellow
sdk: docker
app_port: 8000
pinned: false
license: mit
tags:
- openai
- api-gateway
- educational
- docker
---
# Ipa2korg (Educational API Gateway)
**Educational / research deployment** of an OpenAI- and Anthropic-compatible
API gateway that routes requests through **user-owned** upstream credentials.
This Space is a learning project for multi-account API gateway design:
routing, quota tracking, admin UI, and local SQLite persistence.
It is **not** intended for production abuse or third-party site scraping.
## Capabilities
- OpenAI-style `/v1` and Anthropic-style endpoints
- Browser admin UI for accounts, client keys, and runtime settings
- Local state under `/data` (enable HF Persistent Storage)
## Scope
- You supply and manage your own upstream credentials
- Optional egress proxies and session cookies are **manual / self-hosted**
configuration for your own accounts โ no challenge-solver sidecar is
started by this Space image by default
## Deploy notes (HF Spaces)
1. `app_port: 8000` matches the container listen address.
2. `config.yaml` is baked into the image at `/run/grok2api/config.yaml`.
On a **public** Space secrets are visible โ prefer a **Private** Space
and change the admin password after first login.
3. Enable **Persistent Storage** so `/data` survives restarts.
4. Default admin user is `admin`. Password is in `config.yaml`
(`bootstrapAdmin.password`).
## Configuration
All runtime config lives in `config.yaml`. Legacy Python-era environment
variables are **not** read by this Go binary.
## License
MIT
|