[PR #66] Add OpenCode Usage Badge extension #66

Open
opened 2026-11-07 17:52:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/SillyTavern/SillyTavern-Content/pull/66
Author: @Surdagon
Created: 11/3/2026
Status: 🔄 Open

Base: main ← Head: add-opencode-usage-badge


📝 Commits (2)

  • 8aef577 Add OpenCode Usage Badge extension
  • 8faedc7 Regenerate index.json

📊 Changes

2 files changed (+15 additions, -1 deletions)

View changed files

📝 extensions.json (+8 -1)
📝 index.json (+7 -0)

📄 Description

Adds OpenCode Usage Badge, a client-side SillyTavern extension that shows prompt-cache hit rate and per-message cost for OpenCode Go, OpenRouter, and other chat-completion providers that return a standard usage object.

The extension also keeps per-swipe usage and can show a chat summary above the chat.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/SillyTavern/SillyTavern-Content/pull/66 **Author:** [@Surdagon](https://github.com/Surdagon) **Created:** 11/3/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `add-opencode-usage-badge` --- ### 📝 Commits (2) - [`8aef577`](https://github.com/SillyTavern/SillyTavern-Content/commit/8aef577c92e4dd8e0609b529f4bf555202a73e16) Add OpenCode Usage Badge extension - [`8faedc7`](https://github.com/SillyTavern/SillyTavern-Content/commit/8faedc7995af96e9abd94bbd4036d63ea83afb3c) Regenerate index.json ### 📊 Changes **2 files changed** (+15 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `extensions.json` (+8 -1) 📝 `index.json` (+7 -0) </details> ### 📄 Description Adds **OpenCode Usage Badge**, a client-side SillyTavern extension that shows prompt-cache hit rate and per-message cost for OpenCode Go, OpenRouter, and other chat-completion providers that return a standard `usage` object. - Repository: https://github.com/Surdagon/st-opencode-usage-badge - License: MIT - No server plugin requirement; works entirely in the browser. - README includes installation, usage, settings, and OpenRouter notes. The extension also keeps per-swipe usage and can show a chat summary above the chat. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SillyTavern/SillyTavern-Content#66
No description provided.