Traces
How HolaClaw records every step your assistant takes to answer a message, and how you read that record to see what it did and what it cost.
- Desktop
- Server
- Traces
A trace is the record of one answer: every step your assistant took between receiving a message and sending its reply. When an answer surprises you, the trace shows why. When a bill surprises you, it shows where the tokens went.
What a trace records
Each message that starts a turn gets a trace id. Every step along the way adds an event to it, with its timing:
- The message arrives on a channel.
- HolaClaw works out who sent it and which conversation it belongs to.
- It builds the context for the model: the system prompt, the conversation so far, and any memories it found.
- It sends the request to the model.
- The model calls tools, each one checked by the policy, and some waiting for an approval.
- The model answers.
- The reply goes out on the channel.
The model's responses, the tool calls and their results are kept with it, so you can follow the turn from end to end. Scheduled tasks get traces too, one per run.
What it costs
Every event that records a model call carries how many tokens went in and came out. When the provider reports a price, as OpenRouter does, the event carries the cost too, and the trace adds it up.
A call with no reported price is marked as unpriced, never as free. That covers a local model, a ChatGPT subscription and a direct OpenAI key. A model that really is free reports a cost of zero.
Traces also record the jobs that run alongside the chat model: summarising a long conversation, describing an image, checking a tool call with the guard model, and each step of a browser task. So the total includes everything a turn cost, not only the answer.
Reading traces
The app does not show traces yet. A chat's details panel lists the Links mentioned in it and, under Details, when it started, its last activity and its message count. Its Technical section shows the session's ids and the agent.
The traces are kept in the assistant's virtual machine. If you are comfortable with a terminal, open a shell in the VM and run holaclaw trace, which is safe at any time.
holaclaw trace opens a full-screen view:
- Left: the conversations.
- Middle: the traces of the selected conversation: when each started, what was asked, how many steps and tool calls it had, and whether it replied, was aborted or is still running.
- Right: the steps of the selected trace, with a strip on top that shows where the time went, the tokens it used and what the priced calls cost.
holaclaw trace <id> prints one trace, and --json prints it as JSON. holaclaw chat also shows the trace of each turn beside the reply, as it happens.
Who can read them
A trace holds what was said, what tools returned and what the model answered. Owners and admins can read any conversation's traces. A person signed in to a HolaClaw app reads only the traces of their own conversations.
Trace events are kept for 30 days by default. On Server, retention.events_days in config.toml changes that. Deleting a conversation deletes its traces with it. See Privacy and data.
Related
Was this page helpful?
