Billing source

Choose whether DCode draws on your plan or on prepaid API credits.

On this page

DCode draws its usage from one of two places, and you choose which: your subscription plan (a Raven plan or the DCode Coding Plan) or your prepaid API credits. A plan is the default.

Choose the billing source

  1. In the desktop app, open Settings, then Model settings.
  2. On the panel with DCode Coding Plan, Raven Subscription Plan and API credits, find Billing source.
  3. Choose Use Subscription Plan or Use API Credits.

You can switch at any time; the change applies to new messages. The same panel shows whether each plan is active, your credit balance and what you have spent, with Manage, Subscribe and Buy credits buttons that open your account in the browser.

On a plan

  • With the DCode Coding Plan, DCode draws the Coding Plan. Each model has its own 6-hour and weekly windows, and both models together have one more budget on top. Your Raven allowance is left for everything else.
  • With a Raven plan and no Coding Plan, DCode draws your Raven allowance at a 30% rate, because coding work reuses a lot of context: every 1,000 tokens DCode uses count as 300 against your Raven windows.

When a window is used up, DCode shows the message it gets back: which limit it is, when it resets and where to move up a plan. You can wait for the reset or move up a plan (Switch plans).

On API credits

With Use API Credits, DCode pays for each request from your prepaid credit balance at the per-token API prices. We set up the API key for DCode on your account ourselves, so there is nothing to paste.

  • It keeps your coding work apart from your plan allowance.
  • Each request and its cost is on your dashboard, like any other API call (API credits).
  • Prices per model are on API Credits.

In the CLI, a sign-in with an API key is paid from your credits in the same way (Sign in with an API key).

See your usage

  • Desktop app. Settings, Usage stats shows Plan limits: how much of the 6-hour window and the week you have used, and when each resets. The rings in the sidebar show the same, with the reset times.
  • CLI. /usage prints both windows and their reset times, and the status line shows them as you work.
  • Dashboard. Your dashboard shows your usage for every product (Where to see it).