Review Bot activity
Where to review a Klex Bot's activity and access its chats and memory.
In the Klex Cloud dashboard, you can see what your Bot is doing and chat with it.
Administrators can also review a Bot’s chats and skills through its Admin API. The Cloud dashboard provides a frontend to each Bot’s Admin API. For where that data is stored, see the data directory.
Review activity and diagnostics
In Klex Cloud, open your Bot and select Activity to review its recent work. Select an activity to see its details, and use Load older activity to see more when available. The activity view may not contain every earlier event.
In the interactive Klex app, open Settings → Logs to review recent runtime logs. Use the arrow keys to scroll, l to change the minimum displayed level, and v to change the display style. Changing the displayed level does not necessarily enable collection of additional logs.
The viewer keeps up to 500 captured entries in memory for the current process, so older entries may no longer be available. Runtime logs are not a complete record of Bot conversations or task results. In headless mode, Klex writes logs to the console instead of using the interactive viewer.
For version and connection details, open Settings → Debug Information. It shows the Klex version, data directory, and Cloud enrollment and tunnel status when available. Review logs and diagnostics for sensitive information before sharing them.
If a Bot does not respond
Check each part of the path, starting with the Bot and ending with the message source:
- Check the Bot is running. For a self-hosted Bot, check its process or service. If you enabled the optional health listener, check its readiness endpoint. A successful probe does not prove that the model or connections are working.
- Check model access. Confirm that a provider is configured and that a chat model is selected. Check the provider’s account and service if requests are failing. See Models.
- Check the connection and account. For a message from a connected app, check the MCP server’s status, required authorization, and the Bot account’s access to the conversation. Event delivery also depends on the server’s capabilities. See MCP and Klex Bots.
- Review available activity and logs. Look for errors around the time of the request. Use the Cloud dashboard where available, or the self-hosted diagnostics above. Logs and activity may be incomplete; a missing entry alone does not establish where delivery failed.
Review any diagnostics for sensitive information before sharing them. Do not include credentials in a support request.
Review activity with the Admin API
Administrators using the Admin API can:
- List persisted session instances with
GET /v1/sessions, then retrieve a session’s messages withGET /v1/sessions/{instanceId}/messages. FollownextCursorto retrieve older pages. Some older messages may have been trimmed; checktrimmedMessageCount. - Inspect live session activity with
GET /v1/introspect/sessions. Session information can includechildSessions, such as active memory-retrieval, memory-writer, or consultation sessions. Terminated children are omitted, so this is not a complete history. - Query recorded model-call usage with
GET /v1/usage. Results can be grouped by model or provider and aggregated over time. Token totals may be incomplete when a provider does not report usage; checktokenUsageUnreportedCount.
Use GET /v1/openapi.json for the API’s available routes and query parameters. Session messages and tool outputs can contain sensitive information; limit who can access and retain them.
Access activity data
Use the Klex Cloud dashboard to review a Bot’s activity and chat. The local listener below is for self-hosted Bots.
The self-hosted app does not expose a local Admin API port by default. Its optional listener is bound to 127.0.0.1 and has no authentication. Anyone who can reach it, including other local users and processes, can access sensitive Bot data and use management routes. Enable it only where those users and processes are trusted; do not expose or forward it to an untrusted network.
For example, to start an existing headless Bot with the local listener enabled:
klex --headless --data-dir /path/to/bot --dangerous-local-admin-api-port 2706Replace the path and port with your own. From the same computer, you can inspect the available routes:
curl http://127.0.0.1:2706/v1/openapi.jsonYou can set the port with KLEX_DANGEROUS_LOCAL_ADMIN_API_PORT instead; the command-line option takes precedence. When finished, stop the Bot and restart it without the option or environment variable to disable the listener.
To stop a Bot or change its connected access, see Control your Klex Bot.