An explicit option wins over its environment variable.
Which application
A key is attached to applications, one per plane: an agent that calls tools and models holds an MCP one and an LLM one behind the same key. The SDK picks the one of each plane the key reaches. When a key reaches two on the same plane, it refuses to guess and names them, and you pick one withmcp_consumer or
llm_consumer.
Hybrid gateways
A Hybrid gateway is served only by its own data plane, which runs in your environment. The NeuralTrust cloud holds its keys but not its traffic, so a Hybrid key sent to the default address is refused with a message that says so. Point the SDK at that data plane instead: the MCP host it is published on, with nothing after it.Regions and environments
The default address is the EU cloud. A key from another region is found only by that region’s entry point:Headers the SDK sends
Both are exported as constants,
API_KEY_HEADER and END_USER_HEADER, for code
that builds its own requests.