Get credentials
Ask your Trelent admin for a client ID and secret, then pass them to theClient:
Environment variables
You can also read credentials from the environment:Custom API URL
Client defaults to https://agents.trelent.com. Override it when pointing at a different environment:
How it works
- The SDK calls
POST /tokenon the API with your credentials and the scope needed for the request (e.g.AgentOrchestrator:runs:create). - Tokens are short-lived and cached per scope for the lifetime of the
Client. - If a narrow scope is rejected, the SDK transparently retries with a broader one (
AgentOrchestrator:runs:*, thenAgentOrchestrator:*).