CLI quickstart
Install the SDK, copy the example, and make your first call -- the identity whoami lookup. It is read-only, so it is safe to run as-is.
Prerequisites
You need an AgentRouter API key and the API base URL.
- Create an API key with the Platform API type -- it is shown once, as
<keyid>.<secret>. Copy it now. - Base URL
https://api.tetrate.ai(or your tenant's). SetAGENTROUTER_API_KEYand optionallyAGENTROUTER_BASE_URLin your environment.
Install
Install the tare CLI from the SDKs page, then authenticate with the API key you created above. Open the SDKs page
Install
# Set the key you created (printed once as <keyid>.<secret>):
export AGENTROUTER_API_KEY=<keyid>.<secret>
export AGENTROUTER_BASE_URL=https://api.tetrate.ai # optional; defaults to prod
Your first call -- whoami
Resolve the identity behind your API key with a read-only GET /v1/me call. Copy the file below. Run the command below to call the API.
tare api whoami