OptionalbaseOverride the API base URL. Defaults to https://api.ledewire.com.
Buyer API key (e.g. bktst_abc123).
Obtain via client.user.apiKeys.create() after signing up as a buyer.
64-char hex secret paired with key.
Shown once at creation — store in a secrets manager, never in source code.
OptionalstorageCustom token storage. Defaults to MemoryTokenStorage.
Serverless / edge warning: MemoryTokenStorage resets on cold start.
In serverless environments the agent will re-authenticate on every
invocation. Provide a persistent adapter (Redis, KV store, encrypted
database column) to avoid the extra round-trip on each cold start.
Configuration options for the LedeWire agent client.
The agent client is a buyer-scoped client designed for autonomous (headless) agents. It authenticates automatically using a buyer API key + secret and exposes only the namespaces an agent needs:
auth,wallet,purchases,content,checkout, anduser.apiKeys.