[Feature] Support Venice USD and DIEM balances and automatic model pricing for custom provider aliases
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with the Venice quota probe in src/providers/quota/vendor-probes-key.ts, which currently runs only for the exact provider ID venice, calls /billing/balance, and reads balance or balance_usd. Check how providers using the official Venice base URL are matched, then switch the probe to GET /api/v1/api_keys/rate_limits and read data.balances.USD and data.balances.DIEM. Done when custom-named Venice providers show both balances in the dashboard and in ocx provider quota --json; the automatic pricing part is a separate, larger change.
索引モデルが issue の本文から書いたものです。
説明
Area
Multiple areas
What are you trying to accomplish?
I use Venice through OpenCodex with a custom provider name. I want to see the remaining USD and DIEM balances in the Providers dashboard and have OpenCodex use Venice's current catalog prices for cost estimates in Logs and Usage. If I configure multiple Venice providers, I want each balance report to appear under its configured provider name.
What prevents this today?
On OpenCodex Desktop 2.100.6 for Windows, inference works with a custom Venice provider such as venice-custom, but the provider has no balance entry in the dashboard or in ocx provider quota --json.
The balance probe only runs for the exact provider ID venice. It calls /billing/balance, which requires an Admin key, and looks for balance and balance_usd. Venice's current documentation shows balances.diem and balances.usd for that endpoint.
When automatic model pricing is unavailable, I have to look up and enter the rates manually, then repeat the process when Venice changes its prices.
What should OpenCodex do?
- Show the remaining USD and DIEM balances separately for providers using the official Venice API URL, including providers with custom names. Reuse each provider's existing Inference key.
- If feasible, populate and refresh cost estimates from Venice's published model prices when its catalog is refreshed. Match models by exact upstream ID and include input, output, cache read/write, and long-context rates where Venice publishes them.
- Keep manually configured prices as overrides.
Example usage or interface
- Configure
venice-customwith the base URLhttps://api.venice.ai/api/v1and a Venice Inference key. - Open the provider in the dashboard. Its balance section shows separate rows such as
USD 25.00andDIEM 90.50when Venice reports those values. (internally the values could be aggregated in case a single USD balance is needed) - Run
ocx provider quota --json. The quota report includesvenice-custom. - Refresh the model catalog. An enabled Venice model with published pricing shows an estimated cost in Logs and Usage without manual price entry. An existing manual price still takes precedence.
Alternatives or workarounds
I can check the actual balances in Venice's API settings and manually enter per-model prices in OpenCodex. I also considered using the canonical venice ID, but that only covers one configured provider and still leaves the Admin-key requirement and response-format mismatch in v2.100.6.
Additional context
- Venice documents that
GET /api/v1/api_keys/rate_limitsaccepts both Inference and Admin keys. It returns balances underdata.balances.USDanddata.balances.DIEM. API key guide · Rate Limits and Balances API - Each staked DIEM provides $1 in Venice API credit per day. Venice DIEM guide
- The public
GET /api/v1/models?type=textendpoint returns model IDs and pricing undermodel_spec.pricing. List Models API · Venice model catalog and prices - OpenCodex v2.100.6 Venice quota probe · Venice Billing Balance API
Checks
- I searched existing issues and documentation.
- This request describes a concrete OpenCodex workflow rather than merely naming a desired technology.
- I removed secrets and personal data.
- 主要言語
- TypeScript
- スター
- 16.9k
- フォーク
- 1.3k
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 844
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
lidge-jun/opencodex のほかの issue
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offersオープンcatalog provider provider-compatibility
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
lidge-jun/opencodex#9037 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Polish Spanish documentation wording and product names対応中かも @federicorv25 が 7 日前に担当しました。 オープンdocumentation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug cli platform service
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
メンテナーはふだん 1 日以内に返信
-
[Bug] Anthropic pool: one 429 leaves the active account rate limited with a fake weekly 100%, and background refresh skips it (2.100.7)対応中かも @samirmedani が今日担当しました。 オープンaccount-pool bug
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
lidge-jun/opencodex#9032 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug cli platform service
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
lidge-jun/opencodex#9026 · コメント 4 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
lidge-jun/opencodex の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
slavakurilyak/awesome-ai-agents#1005 ·
-
kind/bug triage/unresolved
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
メンテナーはふだん 1 日以内に返信
-
effort:S P3 refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nightscout/nocturne#3735 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
wpilibsuite/systemcore-blocks-interface#641 ·
メンテナーはふだん 2 日以内に返信
-
[Site] Active section detection should respect scroll-margin-top対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea/web reproduced type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
anomalyco/opencode#65384 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信