[PR #4795] Track calls made to LLM API within session (and optionally display with setting) #11119

Closed
opened 2026-02-16 18:15:54 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4795

State: closed
Merged: No


Per #4577, users are sometimes looking to track the number of service calls they are making to the LLM API in their session.

This update enables tracking this by displaying it next to the cost + context in the TUI header.

  • Note: there are usually multiple calls within one assistant response.
  • Note: this counter resets on session reset.

This is only enabled when the new setting in opencode.jsonc: { "llm_counter": true }

See video for visual preview of what this looks like:

https://github.com/user-attachments/assets/d483013f-0e33-4cfa-8d5c-669b46adefb4

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4795 **State:** closed **Merged:** No --- Per #4577, users are sometimes looking to track the number of service calls they are making to the LLM API in their session. This update enables tracking this by displaying it next to the cost + context in the TUI header. - Note: there are usually multiple calls within one assistant response. - Note: this counter resets on session reset. This is only enabled when the new setting in **opencode.jsonc**: ` { "llm_counter": true } ` See video for visual preview of what this looks like: https://github.com/user-attachments/assets/d483013f-0e33-4cfa-8d5c-669b46adefb4
yindo added the pull-request label 2026-02-16 18:15:54 -05:00
yindo closed this issue 2026-02-16 18:15:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11119