Files
2026-02-27 18:19:00 +01:00

1.2 KiB

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"