Installation
The Hexr SDK is distributed via private PyPI. You need access credentials.
For Hexr Cloud users, hexr login configures this automatically.
Quick Example
What happens automatically:
- SPIFFE identity assigned to this process
- All cloud calls authenticated via 3-tier credential cache
- Every LLM call traced with model, tokens, latency, cost
- OpenTelemetry spans emitted for every operation
- A2A agent card served for inter-agent discovery
Module Map
How Loading Works
Only the core module (hexr_agent, hexr_tool, hexr_llm) loads at import time. All other modules are lazy-loaded — they only import when first accessed:
This keeps agent startup fast and avoids importing unnecessary dependencies.
Environment Variables
The SDK reads these environment variables (most are set automatically by hexr deploy):
Exceptions
All SDK exceptions inherit from HexrError: