Skip to main content
The key is the only value the SDK requires. Everything else has a default or is asked of the gateway. 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 with mcp_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.
The data plane answers the same question the cloud does, and from then on the SDK talks to the addresses it names.

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.