OpusX is a full-stack API proxy platform that issues custom sk-ox-* keys and proxies requests to Anthropic without exposing the real Anthropic API key to end users.
- Next.js App Router + TypeScript + Tailwind
- PostgreSQL + Prisma
- NextAuth (credentials + magic link)
- Recharts + react-hot-toast
- Copy
.env.exampleto.envand fill values. - Run
pnpm install. - Run Prisma migration and generation:
pnpm prisma:generatepnpm prisma:migrate
- Seed admin and sample key:
pnpm db:seed
- Start app:
pnpm dev
POST /api/v1/messages- Anthropic proxy routePOST /api/v1/chat/completions- OpenAI compatible routeGET /api/v1/models- model listPOST /api/key-check- public key status checkerGET/POST /api/user/keys- user key managementGET /api/user/usage- user usage logsGET /api/admin/stats- admin platform stats
Use:
ANTHROPIC_BASE_URL=http://localhost:3000/api
ANTHROPIC_API_KEY=sk-ox-your-key- Real Anthropic key is never exposed in responses.
- API routes return
{ error: string }on failures. - API keys are shown in full only once at creation time.