valve
OpenAI-compatible proxy with adaptive token budgeting, per-session dashboards, and optional metrics exporters.
Quick start
Create config.toml in ~/.config/valve/ (Linux/macOS) or %APPDATA%\valve\ (Windows):
[]
= "127.0.0.1"
= 7532
[]
= "openai"
[]
= "open_ai"
= "https://api.openai.com/v1"
= "sk-your-key"
[]
= ["telemetry"]
Run the proxy:
The terminal UI starts automatically. Use Tab, arrow keys, or h/l to move between tabs; 1-4 pick a history window; +/- cycle windows; Up/Down or j/k navigate sessions; r resets history; q quits. Append --headless for log-only mode.
Telemetry exporters
Add an optional Prometheus scrape endpoint or OTLP exporter in config.toml:
[]
= true
= "127.0.0.1:9898"
[]
= true
= "http://localhost:4317"
= "grpc"
= 60
Examples
Benchmarks
License
Dual-licensed under MIT or Apache-2.0. See LICENSE-MIT and LICENSE-APACHE for details.