Req Llm Gateway
Description
OpenAI-compatible LLM proxy with telemetry and multi-provider routing
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
ReqLLMGateway
OpenAI-compatible HTTP proxy for LLM providers. Implemented as a Plug that can be mounted in any Phoenix or Plug-based application. Routes requests to multiple providers through ReqLLM.
Status
| Metric | Value |
|---|---|
| Version | 0.1.0 |
| Elixir | >= 1.14 |
| Runtime deps | 10 |
| Dev/test deps | 5 |
| Modules (.ex) | 12 |
| Test files | 5 |
| CI | No dedicated CI workflow (last run was a devcontainer update, failed) |
| Hex published | No (package metadata is configured in mix.exs) |
What it does
- Exposes an OpenAI-compatible
/v1/chat/completionsendpoint. - Delegates to ReqLLM for provider routing. Provider is selected by model string prefix (e.g.,
openai:gpt-4,anthropic:claude-3-sonnet). - Tracks usage in ETS (no database required).
- Emits telemetry events for request lifecycle.
- Includes a LiveDashboard page for usage stats.
- Rate limiting via Hammer.
- Model name parsing and cost estimation via built-in pricing tables.
Setup
git clone https://github.com/jmanhype/req_llm_gateway
cd req_llm_gateway
mix deps.get
mix test --no-start
Mount in a Phoenix app
# router.ex
scope "/v1" do
forward "/chat/completions", ReqLLMGateway.Plug
end
# Optional: LiveDashboard page
live_dashboard "/dashboard",
additional_pages: [req_llm: ReqLLMGateway.LiveDashboard]
Standalone demo
export OPENAI_API_KEY="sk-..."
mix run -e "ReqLLMGateway.Application.start(:normal, [])"
# or
mix demo
Modules
| Module | Purpose |
|---|---|
ReqLLMGateway.Plug |
Plug endpoint, request handling |
ReqLLMGateway.LLMClient |
ReqLLM wrapper |
ReqLLMGateway.ModelParser |
Parses provider:model strings |
ReqLLMGateway.Pricing |
Cost calculation per model |
ReqLLMGateway.Usage |
ETS-based usage tracking |
ReqLLMGateway.Telemetry |
Telemetry event definitions |
ReqLLMGateway.LiveDashboard |
Phoenix LiveDashboard page |
ReqLLMGateway.Application |
OTP appl |
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI