{"_id":"@aaronsr-54/opencode-go-model-costs","_rev":"3-65601d73cb4a370be6b956f20bff1e90","name":"@aaronsr-54/opencode-go-model-costs","dist-tags":{"latest":"1.4.0"},"versions":{"1.3.4":{"name":"@aaronsr-54/opencode-go-model-costs","version":"1.3.4","license":"MIT","_id":"@aaronsr-54/opencode-go-model-costs@1.3.4","maintainers":[{"name":"aaronsr-54","email":"aaron541000@gmail.com"}],"homepage":"https://github.com/AaronSR-54/opencode-go-model-costs#readme","bugs":{"url":"https://github.com/AaronSR-54/opencode-go-model-costs/issues"},"dist":{"shasum":"523e28b3bdb7bd16f17d2d7c402e0a0874e57c4a","tarball":"https://registry.npmjs.org/@aaronsr-54/opencode-go-model-costs/-/opencode-go-model-costs-1.3.4.tgz","fileCount":5,"integrity":"sha512-ZJ3ahArk9UmqDw3Uh0Kehx8Ri8eADxCt1DSpCk5scb+vtrt/TI17e1FXLpc/TFMF5A0WNLpxowJra4eik0KBIw==","signatures":[{"sig":"MEQCIAG/sXJ/nfs/nqJkA+eesg8dXXNtsRmIk64FFMF3S+XhAiBukJWXGtD4XUC/7sFnseBzwU0zX/04gYpInjQ9WatlLA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14663},"type":"module","exports":{".":{"default":"./server.js"},"./tui":{"default":"./tui.js"}},"gitHead":"9614af5f5ed8ac1dcbfed7740376e6d41e3e8785","scripts":{"build":"node build-tui.mjs","prepublishOnly":"node build-tui.mjs"},"_npmUser":{"name":"aaronsr-54","email":"aaron541000@gmail.com"},"oc-plugin":["server","tui"],"repository":{"url":"git+https://github.com/AaronSR-54/opencode-go-model-costs.git","type":"git"},"_npmVersion":"12.0.1","description":"OpenCode TUI plugin that shows relative cost multipliers for Go provider models in the sidebar","directories":{},"_nodeVersion":"26.1.0","dependencies":{"solid-js":"^1.9.12","@opentui/solid":"^0.4.3"},"_hasShrinkwrap":false,"devDependencies":{"@babel/core":"^8.0.1","babel-preset-solid":"^1.9.12","@babel/preset-typescript":"^8.0.1"},"peerDependencies":{"@opencode-ai/plugin":"^1.4.3"},"_npmOperationalInternal":{"tmp":"tmp/opencode-go-model-costs_1.3.4_1784387616653_0.6860239175511089","host":"s3://npm-registry-packages-npm-production"}},"1.3.5":{"name":"@aaronsr-54/opencode-go-model-costs","version":"1.3.5","license":"MIT","_id":"@aaronsr-54/opencode-go-model-costs@1.3.5","maintainers":[{"name":"aaronsr-54","email":"aaron541000@gmail.com"}],"homepage":"https://github.com/AaronSR-54/opencode-go-model-costs#readme","bugs":{"url":"https://github.com/AaronSR-54/opencode-go-model-costs/issues"},"dist":{"shasum":"d42ef481ad5ba6b10ba755dce5291d0324e701ca","tarball":"https://registry.npmjs.org/@aaronsr-54/opencode-go-model-costs/-/opencode-go-model-costs-1.3.5.tgz","fileCount":5,"integrity":"sha512-ukSzyvObeWnJIh4fCsgs9Z8s02C0JreVczj8vDybL4XINY76c6J+1+5/9oBWHfaZVxQvqzH7uHm+4ZKYujVAxA==","signatures":[{"sig":"MEUCIAjYQqh5ZQnt+1IhFiLn/JQvzNr+clNQWjIzQSfyclGjAiEA24eJP3eZnYUNFtAYd5uJpHGBGyd77IL/Zc9PJUWbGwo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16364},"type":"module","exports":{".":{"default":"./server.js"},"./tui":{"default":"./tui.js"}},"gitHead":"7335577c193c157c1435cb9760c2be642596496b","scripts":{"build":"node build-tui.mjs","prepublishOnly":"node build-tui.mjs"},"_npmUser":{"name":"aaronsr-54","email":"aaron541000@gmail.com"},"oc-plugin":["server","tui"],"repository":{"url":"git+https://github.com/AaronSR-54/opencode-go-model-costs.git","type":"git"},"_npmVersion":"12.0.1","description":"OpenCode TUI plugin that shows relative cost multipliers for Go provider models in the sidebar","directories":{},"_nodeVersion":"26.1.0","dependencies":{"solid-js":"^1.9.12","@opentui/solid":"^0.4.3"},"_hasShrinkwrap":false,"devDependencies":{"@babel/core":"^8.0.1","babel-preset-solid":"^1.9.12","@babel/preset-typescript":"^8.0.1"},"peerDependencies":{"@opencode-ai/plugin":"^1.4.3"},"_npmOperationalInternal":{"tmp":"tmp/opencode-go-model-costs_1.3.5_1785872456143_0.4943243345923902","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"@aaronsr-54/opencode-go-model-costs","version":"1.4.0","description":"OpenCode TUI plugin that shows Go provider models ranked by plan-quota burn rate (cost relative to each model's usage limit)","license":"MIT","repository":{"type":"git","url":"git+https://github.com/AaronSR-54/opencode-go-model-costs.git"},"type":"module","exports":{".":{"default":"./server.js"},"./tui":{"default":"./tui.js"}},"oc-plugin":["server","tui"],"dependencies":{"@opentui/solid":"^0.4.3","solid-js":"^1.9.12"},"peerDependencies":{"@opencode-ai/plugin":"^1.4.3"},"scripts":{"build":"node build-tui.mjs","prepublishOnly":"node build-tui.mjs","start":"node server.js"},"devDependencies":{"@babel/core":"^8.0.1","@babel/preset-typescript":"^8.0.1","babel-preset-solid":"^1.9.12"},"_id":"@aaronsr-54/opencode-go-model-costs@1.4.0","gitHead":"a2f712726597992979aad3a965ecc6dee18d85f8","bugs":{"url":"https://github.com/AaronSR-54/opencode-go-model-costs/issues"},"homepage":"https://github.com/AaronSR-54/opencode-go-model-costs#readme","_nodeVersion":"22.23.2","_npmVersion":"10.9.8","dist":{"integrity":"sha512-ADEArkpMUEBnftSJgZ58g7GVSulM/IgTmWfR9CIeT2N2rANIas4dbEil8LOFGpiCagpr3yMG2bZHo2RKDqQRAg==","shasum":"eae48271d778bc3903e29c66400f47e6611a94b3","tarball":"https://registry.npmjs.org/@aaronsr-54/opencode-go-model-costs/-/opencode-go-model-costs-1.4.0.tgz","fileCount":5,"unpackedSize":21732,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCf3bnXyoAPYJeecllra5DggUu2tU9TK4ey7+wPj1T7PgIgc8oFrYhdJzJoug982RKBlJ7flSW96rN56Nu79CtWiLM="}]},"_npmUser":{"name":"aaronsr-54","email":"aaron541000@gmail.com"},"directories":{},"maintainers":[{"name":"aaronsr-54","email":"aaron541000@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/opencode-go-model-costs_1.4.0_1787559447714_0.2550957065349371"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-18T15:13:36.465Z","modified":"2026-08-24T08:17:28.099Z","1.3.4":"2026-07-18T15:13:36.782Z","1.3.5":"2026-08-04T19:40:56.348Z","1.4.0":"2026-08-24T08:17:27.872Z"},"bugs":{"url":"https://github.com/AaronSR-54/opencode-go-model-costs/issues"},"license":"MIT","homepage":"https://github.com/AaronSR-54/opencode-go-model-costs#readme","repository":{"type":"git","url":"git+https://github.com/AaronSR-54/opencode-go-model-costs.git"},"description":"OpenCode TUI plugin that shows Go provider models ranked by plan-quota burn rate (cost relative to each model's usage limit)","maintainers":[{"name":"aaronsr-54","email":"aaron541000@gmail.com"}],"readme":"# opencode-go-model-costs\n\nOpenCode TUI plugin that ranks OpenCode Go models by **plan-quota burn rate** — how fast each model consumes your Go usage windows (5h / weekly / monthly) — directly in the sidebar.\n\n![screenshot](screenshot.png)\n\n## Features\n\n- Ranks models by quota consumption, not raw price: a model with a $15 usage limit burns your plan 4x faster than one with a $60 limit at the same dollar cost\n- Shows each model's monthly usage allowance (`$15`, `$30`, `$60`) next to its name\n- Multiplier is relative to the baseline (`minimax-m2.7`): `1.0x` = burns quota at the same rate\n- Models without a documented limit fall back to raw price ranking, marked with `~`\n- Color-coded: green (≤1.5x), yellow (≤5x), red (>5x)\n- Marks models released in the last 30 days with a `✦` tag\n- Truncates long model names (`…`) so rows never overflow the sidebar\n- Highlights the currently active model\n- Toggle sidebar visibility via `/toggle-costs`\n\n## How it's calculated\n\nGo meters usage as `cost × (60 / model_usage_limit)` against shared dollar windows\n(see the [Usage column](https://opencode.ai/docs/go/#usage-limits) in the official docs).\nThe plugin therefore scores each model as:\n\n```\nburn = blended_cost_per_1M_tokens / usage_limit\nmult = burn / burn(minimax-m2.7)\n```\n\nwhere `blended_cost = input + output * 0.3` per 1M tokens.\n\n## Install\n\nAdd to your `~/.config/opencode/opencode.json`:\n\n```json\n{\n  \"plugin\": [\"@aaronsr-54/opencode-go-model-costs\"]\n}\n```\n\nRestart opencode and the sidebar will appear automatically.\n\n### Migration\n\n`@aaronsr-54/openode-go-model-costs` is deprecated. Replace it with\n`@aaronsr-54/opencode-go-model-costs` in your OpenCode configuration.\n\n## Usage\n\n- **Toggle**: Run `/toggle-costs` to show/hide the sidebar\n- **Colors**: Green = low quota burn, Yellow = moderate, Red = high\n- **$15/$30/$60 tag**: monthly usage included with that model\n- **~ prefix**: usage limit unknown, ranked by raw price instead\n- **✦**: model released in the last 30 days\n\n## Links\n\n- [npm](https://www.npmjs.com/package/@aaronsr-54/opencode-go-model-costs)\n- [GitHub Packages](https://github.com/AaronSR-54/opencode-go-model-costs/packages)\n- [GitHub](https://github.com/AaronSR-54/opencode-go-model-costs)\n","readmeFilename":"README.md"}