Documentation
¶
Overview ¶
Package config loads shim configuration from a .env file and the process environment. Zero external dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
BindAddr string
Port int
Adapter string
UpstreamAPIKey string
UpstreamBaseURL string
UpstreamModel string // optional; catch-all for non-claude-* inputs
// Per-role overrides — empty means "use adapter default for this role."
// Claude Code sends claude-opus*/sonnet*/haiku* model names; the adapter
// maps those to upstream-specific models. These env vars override the
// adapter's per-role default.
UpstreamOpusModel string
UpstreamSonnetModel string
UpstreamHaikuModel string
LogLevel string
LogRedact bool
MaxRequestBytes int64
}
Config holds runtime configuration. Fields are populated from the process environment, optionally pre-seeded from a .env file.
Click to show internal directories.
Click to hide internal directories.