You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most teams run nginx or Traefik for HTTP traffic, then route AI requests through a separate LiteLLM or Portkey instance. SBproxy handles both in a single Go binary. One config file covers your entire traffic layer.
11
8
12
-
---
13
-
14
-
## Why SBproxy
15
-
16
-
Most teams run separate systems for HTTP proxying and AI traffic. SBproxy handles both in a single binary. One YAML config file covers your entire traffic layer: path-based routing, authentication, rate limiting, response caching, AI model routing with fallback chains, content safety guardrails, and more.
17
-
18
-
-**Single binary** with zero external dependencies. Works without Redis, a database, or a sidecar.
19
-
-**Sub-millisecond overhead** via compiled handler chains (no per-request config lookups).
20
-
-**200+ native LLM providers** with OpenAI-compatible API. See [docs/providers.md](docs/providers.md).
Returns an OpenAI-compatible response regardless of which provider handled it. See [examples/16-full-production.yml](examples/16-full-production.yml) for a production config with auth, WAF, caching, and routing combined.
98
71
99
-
Returns an OpenAI-compatible response regardless of which provider handled the request.
100
-
101
-
### Production Config
102
-
103
-
See [examples/16-full-production.yml](examples/16-full-production.yml) for a production-grade configuration combining API key auth, rate limiting, WAF, response caching, compression, CORS, security headers, path-based routing, and custom error pages.
72
+
---
73
+
## Why SBproxy
74
+
-**One binary, zero dependencies.** No Redis, no database, no sidecar required.
75
+
-**Sub-millisecond overhead.** Compiled handler chains with zero per-request config lookups.
-**Hot reload** without restarts or dropped connections.
104
79
105
-
All 16 examples in [examples/](examples/) use [test.sbproxy.dev](https://test.sbproxy.dev) as the backend and work out of the box.
80
+
See [docs/comparison.md](docs/comparison.md) for a side-by-side with LiteLLM, Portkey, Traefik, and Kong.
106
81
107
82
---
108
-
109
83
## Features
110
-
111
-
### Routing
112
-
113
-
| Feature | Description | Docs |
114
-
|---|---|---|
115
-
| Reverse Proxy | Forward requests to upstream servers with configurable timeouts |[Config](https://sbproxy.dev/docs/config#proxy)|
116
-
| Path-Based Routing | Route different paths to different backends via forward rules |[Config](https://sbproxy.dev/docs/config#forward-rules)|
117
-
| Load Balancing | 10 algorithms (round-robin, weighted, least-connections, IP hash, and more) with health checks |[Config](https://sbproxy.dev/docs/config#loadbalancer)|
118
-
| AI Gateway | OpenAI-compatible API with 200+ native providers, model routing, fallback chains |[AI Docs](https://sbproxy.dev/docs/ai)|
Full reference at [sbproxy.dev/docs](https://sbproxy.dev/docs).
178
93
94
+
---
179
95
## Architecture
180
-
181
-
SBproxy compiles each origin config into an 18-layer handler chain at startup. Requests execute the pre-compiled chain as a function call sequence with zero map lookups or config re-reads.
182
-
96
+
SBproxy compiles each origin config into an 18-layer handler chain at startup. Requests execute the pre-compiled chain with zero map lookups or config re-reads.
See [docs/architecture.md](docs/architecture.md) for the full startup flow, request flow, and package map.
198
108
199
109
200
110
## SBproxy Cloud
201
-
202
-
[cloud.sbproxy.dev](https://cloud.sbproxy.dev) provides enterprise features, managed hosting, and a configuration dashboard.
203
-
204
-
Enterprise capabilities include canary deployments, traffic shadowing, API versioning, geo-blocking, threat detection, AI guardrails, semantic caching, budget enforcement, WASM plugins, OAuth 2.0, A/B testing, orchestration pipelines, and more.
111
+
[cloud.sbproxy.dev](https://cloud.sbproxy.dev) provides managed hosting, a configuration dashboard, and enterprise capabilities including canary deployments, geo-blocking, AI guardrails, orchestration pipelines, and more.
205
112
206
113
---
207
-
208
-
## Documentation
209
-
210
-
| Resource | Link |
211
-
|---|---|
212
-
| Full Documentation |[sbproxy.dev/docs](https://sbproxy.dev/docs)|
0 commit comments