OptionalbaseExplicit base URL; overrides env.
OptionalcredentialReplace the default provider chain (explicit → env → store → metadata).
OptionalcredentialsExplicit credentials; otherwise resolved via the provider chain.
OptionalcredentialReplace the token store. Default: file-backed on Node (shared with the CLI), in-memory in browsers.
OptionalenvTarget stage; resolves the base URL. Default: env EDGIBLE_ENV, else 'prod'.
OptionalloggerReceive SDK diagnostics. Default: noopLogger (the SDK never uses console).
OptionalmiddlewareExtra middleware appended after the defaults.
OptionalretryRetry policy overrides (defaults: exponential backoff + jitter, 4 attempts).
OptionaltransportReplace the wire layer. Default: FetchTransport.
OptionalwsExplicit realtime wss/ws URL; overrides derivation from baseUrl. Used only by the agent/realtime client.
Options for
createClient(api-design.md §2). Everything is optional — the zero-config client targets prod and resolves credentials via the provider chain.