Analysis updated 2026-06-24
Read the proxy code in apps/server/src/index.ts to learn how OpenAI and Anthropic shapes are translated
Inspect the React plus Vite plus Tailwind admin portal in apps/web-portal
Trace the upstream call chain from Supabase token refresh to Magai server actions
Study an account pool with round-robin rotation and per-request accountId override
| mooooooooner/myichuan | audemodo/audemodo-responsive-keepalive | cahn91/gpt-repo-mcp | |
|---|---|---|---|
| Stars | 28 | 28 | 28 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | moderate | easy | moderate |
| Complexity | 3/5 | 2/5 | 3/5 |
| Audience | researcher | developer | vibe coder |
Figures from each repo's GitHub metadata at analysis time.
Needs Node 20+, pnpm, a setup script that auto-registers Magai accounts, and browser console snippets pasted into beta.magai.co to export refresh tokens.
This repository is a TypeScript project that wraps the chat endpoints of a third-party service called Magai (beta.magai.co) so that they look like OpenAI and Anthropic API endpoints. The README opens by saying the project is meant for CTF and research scenarios. Once running, a local proxy listens on port 8787 and a small web management portal listens on port 5174. The proxy exposes the standard endpoints a developer would expect from an OpenAI-compatible service: POST /v1/chat/completions for chat, POST /v1/images/generations for image generation, plus Anthropic-style endpoints at /anthropic/v1/messages and /v1/messages. A client app pointed at the local proxy with a configured API key can therefore talk to Magai's models through familiar OpenAI or Anthropic client libraries. The default known model in the README is Claude Sonnet 4.6. A setup script takes the user through the process from scratch. It checks that Node 20 or newer is installed, generates an .env file, asks how many Magai accounts to auto-register, runs pnpm install, and writes the registered email and password into a file called accounts.json. The web portal then accepts the proxy API key and lets the operator view the account pool, import additional credentials, manage models, and run image generations. The README documents an account pool with round-robin rotation across multiple Magai logins, with optional per-request override using an accountId field. It explains the upstream call chain in detail, from refreshing a Supabase token to invoking Magai's internal server actions to streaming the response back as either OpenAI or Anthropic shaped output. There are also two browser console snippets the user is expected to paste into Magai's site to export refresh tokens and historical model identifiers from local storage. The proxy logic lives in apps/server/src/index.ts and the React plus Vite plus Tailwind admin UI lives in apps/web-portal. Files like accounts.json and .env are gitignored so credentials are not committed by accident.
A TypeScript proxy plus admin portal that re-exposes the third-party Magai chat service as OpenAI and Anthropic shaped endpoints for CTF and research use, with an auto-registered account pool and round-robin rotation.
Mainly TypeScript. The stack also includes TypeScript, Node.js, pnpm.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.