new Brickken() with no arguments is a valid anonymous sandbox client.
The constructor throws a
TypeError if no fetch implementation is available — use Node 20 or newer, or pass one explicitly.
Environments
Sandbox and production are separate deployments with separate databases. An API key issued for one does not work on the other.
An internal
forge environment exists for Brickken pre-release QA — contact tech@brickken.com for its base URL and pass it as baseUrl.
Read back what the client resolved:
From the environment
Brickken.fromEnv reads the same variables the CLI and MCP server already document, including the BKN_* aliases.
An empty string is treated as unset, and an unrecognised
BRICKKEN_ENV is ignored rather than guessed at.
BRICKKEN_PRIVATE_KEY is deliberately not read. Turning a key into a signer is an explicit choice, never an implicit one — pass it as an override:
.env file.
Injecting fetch
Useful for a proxy, for request logging, or for a test that must not touch the network:
Namespaces
Every method the configured client exposes.