--flag value and --flag=value both work.
Flags
string
default:"0.0.0.0"
Bind address.
u16
default:"8080"
Listen port.
u64
default:"600"
Total deadline on an upstream request, in seconds. Matches the OpenAI SDK’s
default.
u64
Seconds a stream may go without a byte before it is abandoned. Unbounded by
default.
Print usage and exit 0.
Print the version and exit 0.
--port eighty) exits non-zero with a message naming
the flag.
Why unbounded by default
No stream read timeout is right for every deployment, and one set too tight cuts off a model that paused to think — a failure that looks like a provider problem and is not. The flag is opt-in for that reason. Set it once you have measured your slowest time-to-first-token.Environment
The gateway reads the same variables the SDKs do, one per provider, at startup. Set the ones you route to; the rest can stay unset.
This table is generated from the model registry, so it is exactly what the
gateway looks for.
The gateway builds its client with no
providers declaration, so every
provider talks to its own API and the whole roster is routable. Narrowing is
deliberately not a flag: a key on the command line would sit in ps for a
benefit the environment already provides.What is not configurable yet
Next
Connect a client
Point the official OpenAI SDKs at a running gateway.