proxy

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Command proxy is the lean, Apache-2.0 FinOps Proxy engine.

It runs the circuit-breaker reverse proxy from the public core module: a HashDetector for loop detection, a static (or remotely refreshed) price table, an in-memory or SQLite store, per-key budgets from an optional keys file, and standardized JSON logging to stdout. No enterprise dependency is pulled in — this is the whole open-source core in one binary.

Usage:

proxy -upstream http://localhost:11434/v1
proxy -upstream https://api.openai.com -db ./finops.db -keys ./keys.json

The proxy answers GET /healthz locally; every other request is hashed, loop-checked, budget-checked, and forwarded upstream.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL