[UNTESTED] [FenkoHQ/FrugalAI] 3 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,191 characters
Status: [UNTESTED]
Endpoints found:
http://localhost:8080/v1/chat/completions
http://localhost:8080/v1/models
http://localhost:8080/v1/messages
Source: https://github.com/FenkoHQ/FrugalAI
# FrugalAI - OpenRouter LLM Proxy
An intelligent LLM proxy that automatically routes requests to the best free model available on OpenRouter. Provides both OpenAI and Anthropic compatible API endpoints.

## Features
- **Automatic Model Selection**: Intelligently selects the best free model based on:
- Parameter count (model size)
- Popularity score
- Context length
- Architecture preferences
- **Dual API Compatibility**: Works with both OpenAI and Anthropic client libraries
- **Smart Caching**: Caches model list to reduce API calls
- **Configurable Constraints**: Set minimum parameter counts and popularity thresholds
- **Streaming Support**: Full support for streaming responses
## Vulpes Plugin
FrugalAI can also run as a Vulpes `upstream_provider` plugin from this repository:
```bash
go build -o bin/vulpes-frugalai-plugin ./cmd/vulpes-frugalai-plugin
```
See [`cmd/vulpes-frugalai-plugin/README.md`](cmd/vulpes-frugalai-plugin/README.md) for Vulpes config.
## Installation
```bash
go install github.com/mosajjal/frugalai/cmd/frugalai@latest
```
Or build from source:
```bash
git clone https://github.com/mosajjal/frugalai.git
cd frugalai
go build -o frugalai ./cmd/frugalai
```
## Usage
### Basic Usage
```bash
# Using environment variables
export FRUGALAI_API_KEY="your-openrouter-api-key"
frugalai
# Using CLI flags
frugalai -api-key "your-openrouter-api-key"
```
### Configuration Options
| Flag | Environment Variable | Default | Description |
|------|---------------------|---------|-------------|
| `-api-key`, `-k` | `FRUGALAI_API_KEY` | *required* | OpenRouter API key |
| `-port`, `-p` | `FRUGALAI_PORT` | `8080` | Server port |
| `-min-params` | `FRUGALAI_MIN_PARAMS` | `0` | Minimum parameter count |
| `-min-popularity` | `FRUGALAI_MIN_POPULARITY` | `0` | Minimum popularity score |
| `-enable-openai` | - | `true` | Enable OpenAI-compatible API |
| `-enable-anthropic` | - | `true` | Enable Anthropic-compatible AP