Status: [UNTESTED] Endpoints found: http://localhost:8080/v1/chat/completions Source: https://github.com/spendmux/spendmux # SpendMux Community (open source) Product of [Perago Labs](https://peragolabs.com) · optional host `spendmux.peragolabs.com` Self-hostable **BYOK AI proxy**: one OpenAI-compatible base URL, your provider keys encrypted at rest, per-user bearer tokens, opt-in fallback, and usage logging. This is the **public / community** edition. Hosted billing, Stripe, and the usage observatory live in Spendmux Pro. ## What's included - `POST /v1/chat/completions` (incl. Anthropic adapter + streaming fallback) - `POST /v1/embeddings` - `GET /v1/models` (live list via your BYOK key, or suggestions) - `POST /v1/images/generations` - `POST /v1/audio/speech` · `POST /v1/audio/transcriptions` - `POST /v1/moderations` - Encrypted provider vault + virtual bearer keys (optional provider/model scope + daily/weekly token hard stops) - Opt-in fallback ladders (`/fallback`) - Usage event logging - Actor supervisor (panic → restart; HTTP keeps serving) - Playground chat UI (`/chat`) ## What's not included (Pro) - Usage observatory (charts / TTFT dashboards) - Hosted Stripe subscription / pricing pages ## Quickstart ```bash cp .env.example .env # Set COOKIE_SECRET and KEY_ENCRYPTION_SECRET: # openssl rand -base64 32 make frontend-install frontend # once / when UI changes make run # builds ./spendmux and starts (migrates) # → http://localhost:8080 ``` Useful targets: `make watch`, `make test`, `make docker-up` / `docker-down`. 1. Sign in → `/keys` (copy bearer token once; add provider keys) 2. Optional: `/fallback` ladder from live model list 3. Call the proxy — always send `provider` + `model`: ```bash curl http://localhost:8080/v1/chat/completions \ -H "Authorization: Bearer sk-YOUR_PLATFORM_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "provider": "groq", "model": "openai/gpt-oss-120b", "fallback": true, "messages": [{"role":"user","content":"hi"}] }' ``` ## Security notes before you deploy - Never commit `.e