Zebratic 71cb4d3f72 feat: integrate Pulse Analytics tracking for LLM Proxy
- Add Pulse Analytics script tag to root layout (data-domain=llm.xmr.network)
- Add server-side tracking for successful API calls (chat completions,
  completions, embeddings) via /api/track/server endpoint
- Add lib/pulse.ts tracking utility (fire-and-forget)
2026-03-20 13:12:05 +00:00
2026-03-03 04:14:57 +01:00
2026-02-24 21:47:39 +01:00
2026-03-12 04:31:55 +01:00
2026-02-25 01:41:28 +01:00
2026-02-25 01:41:28 +01:00
2026-02-25 01:41:28 +01:00
2026-02-25 01:41:28 +01:00
2026-02-25 01:41:28 +01:00
2026-03-01 16:19:09 +01:00
2026-02-25 01:41:28 +01:00
2026-02-25 01:41:28 +01:00
2026-02-27 18:19:00 +01:00
2026-02-25 01:41:28 +01:00
2026-02-25 01:41:28 +01:00
2026-03-01 15:43:27 +01:00

LLM Proxy API

OpenAI-compatible gateway with user auth, API key management, usage analytics, and admin controls.

Quick Start

  1. Install dependencies:
npm install
  1. Create env file:
cp .env.example .env
  1. Run services (MongoDB + Redis), then seed:
npm run db:seed
  1. Start app:
npm run dev

App runs at http://localhost:3000.

API Documentation

Use the full interactive docs at:

  • http://localhost:3000/docs

Inside /docs you get:

  • Multi-page API reference and auth guide
  • Endpoint docs for:
    • GET /v1/models
    • POST /v1/chat/completions
    • POST /v1/completions
    • POST /v1/embeddings
  • Live endpoint testing with:
    • Account key dropdown when logged in
    • Manual API key input when logged out
  • Claude Code setup guide and troubleshooting

API Key Setup

  1. Register at /register
  2. Login and open /dashboard/api-keys
  3. Create a key and copy it (shown once)
  4. Use it in requests:
Authorization: Bearer lp_...

Claude Code Quick Example

claude \
  --model gpt-4.1-mini \
  --openai-api-base http://localhost:3000/v1 \
  --openai-api-key "$LLM_PROXY_API_KEY"
S
Description
No description provided
Readme
586 KiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 98.2%
Shell 1.1%
CSS 0.3%
JavaScript 0.3%