Start the cordon proxy server. The proxy loads config, resolves secrets, and begins intercepting requests.Documentation Index
Fetch the complete documentation index at: https://docs.codezero.io/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Options
| Option | Default | Description |
|---|---|---|
--config, -c | — | Path to config file (mutually exclusive with --scope) |
--scope | project | project or user — selects which config file to load |
--log-level | info | Log level: trace, debug, info, warn, error |
--config and --scope are mutually exclusive — passing both is an error. Omitting both defaults to project scope ($CWD/cordon.toml).
Examples
Behavior
- Parses and validates the config file. Exits with an error if invalid. Relative
ca_cert_path/ca_key_pathvalues are resolved against the config file’s directory, so configs work correctly when the working directory differs (e.g., when running as a launchd/systemd service). - Validates all HTTP route secrets from configured sources. If multiple secrets fail, all failures are reported at once so you can fix them in a single pass.
- Resolves PostgreSQL listener credentials at startup (when PostgreSQL listeners are configured).
- Generates or loads TLS certificates (if TLS is enabled).
- Binds the listener on
127.0.0.1:<listen>. The health endpoint serves200from this point. - Begins accepting connections. Response bodies are streamed through without buffering, so SSE and chunked transfer encoding responses (e.g., streaming AI API calls) work correctly.
Ctrl+C to stop, or run as a background service.
Update checks
On every start, Cordon sends a background HTTPS request to check for newer releases. The first start creates an opaque install ID and sends aninstall event; subsequent starts send a start event. If a newer version is available, an update notice is printed to stderr. The response is cached so that cordon doctor and cordon status can display the notice offline without an additional network call.
See CLI telemetry and update checks for the full list of data sent and opt-out options.