Recorder
xAI Grok
The xAI API is OpenAI-compatible, so the recorder reads its usage, including reasoning tokens.
- Wrap each call as in the OpenAI API panel.
- Add Grok models to
pricing.jsonwith their prices; until then their calls are counted but not priced, andcheck-logslists them.
Wrap a call
with run.agent("triage", model="xai/grok-5") as step:
resp = client.chat.completions.create(model="grok-5", messages=messages)
step.model_call(**usage_from(resp))Where the log lands
Wherever your service logs go, or a folder.
How it reaches the harness
You download the logs with your own access.