anomalyco / anomalyco/opencode

[FEATURE]: Per-model cache efficiency and configuration diagnostics in Settings

Open
#49,335 0 comments 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Sep 16, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

Settings > Models currently shows model names and visibility toggles, but it does not help users understand cache efficiency or diagnose the configuration behind each model. Cache data is available elsewhere as raw token counts or through CLI flags, while custom provider details may require editing opencode.json manually.

Add a per-model diagnostics and configuration view in Settings > Models that shows:

  • cached input tokens and cache hit rate for a selectable time range
  • input/output token usage and estimated cost
  • provider, endpoint/protocol, and configuration source
  • actions to edit the model/provider configuration and test the connection
  • a clear "not reported by provider" state when cache metrics are unavailable

This would make it easier to compare models, verify that prompt caching is working, and fix provider configuration without switching between the UI, CLI statistics, and configuration files.

Related requests cover individual parts of this workflow: #42295 (session cache dashboard), #47481 (CLI cache statistics), #49319 (local model setup wizard), and #33704 (custom provider editing). This request is specifically for a unified per-model diagnostics and configuration surface in Settings.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.