Credits and Subscription
How you get CodeDAG credits, when they're deducted, what to do when you run short, and the subscription's pricing, taxes, and management rules.
Using CodeDAG consumes CodeDAG credits. When a workflow starts running, credits are deducted for the tasks this run will execute, at 1 credit per task. Submitting a workflow and waiting in the queue cost nothing. Every new account comes with 800 credits, with no credit card required, valid for 30 days. A subscription costs $12 per month on monthly billing or $96 per year on yearly billing, and either way you get 800 credits per month. Prices don't include tax. When you don't have enough credits, you can't submit new workflows, and a workflow that's already queued stops when its turn comes and waits for you to restore your credits before it continues. To estimate and reduce what a workflow costs, see Control Cost.
Free credits
Every new account comes with 800 CodeDAG credits, and no credit card is required. The credits are valid for 30 days from the moment you sign up. Whatever is left when they expire is forfeited, and each account gets free credits only once. CodeDAG creates your account the first time you sign in, and the credits arrive with it. See Sign in. You can use exactly the same features during the free period as you can with a subscription. The only difference is where the credits come from.
Accounts invited to the private beta get private beta credits instead: 3,000 credits per month, reset every month counting from the moment they're issued. Credits you don't use in a month don't carry over to the next. Private beta credits can be used until the private beta ends, and the private beta notice gives the exact date. If an account still has no subscription when the private beta ends, its credits are set to 800 and expire 30 days after the private beta ends.
As long as you have free credits, you can subscribe at any time, without waiting for them to run out. When the subscription takes effect, any free credits that are neither used up nor expired are rolled into the first paid period, so that period's total is more than 800 credits. That's the end of the free credits: from then on, the account has only the subscription's credits, which reset each subscription period.
After your free credits run out or expire
Once your free credits are used up, have expired, or aren't enough for a submission, new submissions are rejected, and a workflow that's already queued stops at on-hold when its turn comes, with no credits deducted. At that point, you need to subscribe to keep using CodeDAG.
If you have private beta credits and this month's credits run short, you can also wait for the next reset instead of subscribing. If the private beta ends before the next reset, that reset never comes, and your credits are set to 800 when the private beta ends.
Once your subscription takes effect or your private beta credits reset, new submissions go through as usual, but you have to recover the queued workflows that were held back yourself. See Not enough credits or no subscription.
Subscription
CodeDAG has a single subscription plan: $12 per month on monthly billing, or $96 per year on yearly billing, which works out to $8 per month and saves 33% compared with monthly billing. Neither price includes tax; see Tax and billing regions. Both options give you exactly the same credits: 800 per month, reset once a month. Credits you don't use in a month don't carry over to the next. Prices are also listed on the pricing page.
On monthly billing, credits reset with each renewal. On yearly billing, you pay only once a year, but credits are still issued monthly: counting from the day the subscription starts, they reset every month, to the same 800 credits each time.
A subscription doesn't cover third-party AI model costs. CodeDAG drives the Claude Code or Codex you've installed and signed in to yourself, and their usage counts against your own accounts as usual. See Control Cost.
To subscribe, start from the Billing page of the web console (app.codedag.com) and pay on the checkout page it takes you to. The payment form is provided by Stripe, so your card number goes straight to Stripe and never passes through CodeDAG's servers.
Tax and billing regions
Prices don't include tax. Tax is calculated from the billing region on the checkout page, and CodeDAG also uses the billing region to determine whether you can pay. Renewals keep the billing region you subscribed with, and once you've subscribed, you can't change it on the Billing page yourself. To change it, email us at hi@codedag.com. So before you pay, check the billing region the checkout page has filled in: if you haven't chosen or paid with a region before, it's inferred from your network location and may be wrong if you're using a proxy.
Payments aren't available yet in some countries and regions. If your billing region is one of them, you can't subscribe, but your free credits still work as usual. If you'd like to subscribe from one of these regions, let us know at hi@codedag.com.
When credits are deducted
Credits are deducted at exactly one moment: when a workflow reaches the head of the queue, right before it actually starts running. The full amount is deducted at once based on the number of tasks this run will execute, at 1 credit per task. Nothing is deducted when you submit or while the workflow waits in the queue, and nothing more is deducted after it starts running.
%%{init: {"flowchart": {"padding": 10, "nodeSpacing": 30, "rankSpacing": 28}}}%%flowchart LR submit["Submit<br/>credits checked,<br/>not deducted"] --> queue["Wait in<br/>the queue<br/>not deducted"] queue --> head{"Its turn<br/>to start<br/>running"} head -->|Enough credits| charge["Deducted by<br/>task count<br/>1 credit per task"] charge --> run["Execution<br/>and review<br/>not deducted again"] head -->|Not enough credits<br/>or no subscription| hold["Stops at on-hold<br/>not deducted"] hold -->|cdg dag recover after<br/>you restore credits| headAt submission, cdg dag submit only checks whether your remaining credits are enough. If you submit several workflows at once, it looks at the total number of tasks they'll execute, and if you don't have enough, none of them is submitted. The check neither deducts credits nor reserves them for the workflow. So if a workflow is canceled before it starts running, no credits are deducted. But other workflows may use up the credits while it waits, including workflows the same account runs in other projects or on other computers, so you may still come up short when its turn arrives. For what happens then, see Not enough credits or no subscription.
The amount is fixed at submission: 1 credit is deducted for each task in the workflow that's set to run at that point. Tasks you reviewed with cdg task review before submitting keep their review results, don't run this time, and aren't counted. See Review tasks before you submit. Once the amount is set, it doesn't depend on how many tasks actually run: tasks that are canceled partway through, and downstream tasks that never run because an upstream task was canceled, are already counted. The flip side is that a run's credits are deducted in full the moment it starts. Pausing and unpausing, recovering after a kill, and requesting changes or a rework during review don't use any more credits. A run that's underway also doesn't stop if your credits run out or your subscription expires.
Running the same workflow again is a new run, and it uses credits again. If you clear the review and resubmit a workflow whose review is already finished, credits are deducted by task count once more when it starts running. If you write the unfinished tasks into a separate workflow and continue from there, credits are deducted for the number of tasks in that new workflow.
Credits that have been deducted aren't returned automatically. Once a workflow starts running, the deducted credits aren't returned, whether a task fails, you cancel it, or the result isn't what you hoped for. If a problem in CodeDAG itself kept the workflow from running properly, contact us as described in Collect information to get help.
Not enough credits or no subscription
When you don't have enough credits, a workflow is held back at one of two points. At submission, it's rejected outright and doesn't enter the queue. If it's already queued, it stops at on-hold when its turn comes to start running, with no credits deducted, and you continue it with cdg dag recover after you restore your available credits.
When a submission is rejected, the terminal explains why. When a queued workflow is held back, cdg dag status <name> shows the reason and what to do about it. How you restore your available credits depends on the reason:
| Situation | How to restore your available credits |
|---|---|
| Your subscription's credits for the current period are used up | Wait until the reset time shown in the message. If your monthly credits often aren't enough, you can subscribe again with another account: each account has its own subscription and credits, which aren't combined with your existing account. There are currently no credit top-up packs to buy, and switching between monthly and yearly billing doesn't give you new credits. |
| Your subscription is set to cancel at the end of the period, and the credits for its last period are used up | There's no next reset in this case. Restore the subscription on the Billing page. Your credits reset only after the current period ends and the subscription renews. |
| Your subscription has ended or a renewal payment failed, and the account has neither an active subscription nor any available free credits | Subscribe on the Billing page. If a renewal payment failed, update your payment method and complete the payment. |
| Your free credits are used up or have expired | Subscribe on the Billing page. If it's your private beta credits for the month that are used up, you can also wait for the reset. For the details, see After your free credits run out or expire. |
After you restore your available credits, a queued workflow that was held back doesn't retry on its own. You have to recover it manually:
cdg dag recover <name>This makes the workflow try to start running again, and credits are deducted only at that point. No matter how many times you recover the same run, they're deducted at most once. A workflow that's held back stays at the head of the queue, and the workflows queued behind it wait too, so remember to recover it once you've sorted things out.
Check credits and usage
On the command line, use cdg auth status to check the current account's credits. In the web console (app.codedag.com), you can view your usage history and manage your subscription. Both show the same data.
cdg auth statusBoth show where your credits come from, how many you've used, how many remain, and when those credits reset or expire. The command line shows these times in UTC, and the web console shows them in your computer's local time. If the account has neither an active subscription nor available free credits, and its free credits have already ended, both places show when the free credits ended. If the free credits were rolled into a subscription when you subscribed, that time is when they were rolled in, not the date the free period would originally have expired.
The Usage page of the web console shows the current period's usage and lists your full usage history. Each entry corresponds to one workflow that started running. The credits deducted equal the number of tasks that run was going to execute, which doesn't include tasks that were reviewed before submission. The Workflow content hash column shows the first 12 characters of the hash of the workflow file's contents at submission, not the file name.
Subscription details
You manage everything about your subscription in the Stripe customer portal, which you open from the Billing page. Each account can have only one subscription. Switching the billing interval and restoring a subscription both modify the existing subscription, so you don't need to buy a new one.
Switch between monthly and yearly billing
Switching changes only the billing interval. It doesn't give you new credits. The credits you've already used in the current period stay counted as used, and the next reset time is recalculated from the new billing interval. You can check it with cdg auth status.
Cancel and restore
A cancellation takes effect only at the end of the current billing period. Until then, the subscription is still active and your remaining credits work as usual. cdg auth status shows an extra line with the time the subscription ends, and you can restore the subscription at any time before that. A yearly subscription that you cancel likewise runs to the end of the year, and credits are still issued monthly in the meantime. Once the subscription ends, the account has no active subscription. New submissions are rejected, and queued workflows are held back when their turn comes to start running. See Not enough credits or no subscription.
Refunds
If you ask within 14 days of the first payment of your first subscription or of any yearly payment, such as when you switch to yearly billing or a yearly subscription renews, you can get a full refund, no reason needed. The subscription then ends right away. Other payments are refunded only in the cases set out in the Refund Policy, such as charges made in error. Canceling only stops future renewals. Except in those cases, it doesn't refund the current billing period, and if you cancel a yearly subscription partway through, the remaining months aren't refunded pro rata. For how to ask and the full rules, see the Refund Policy.
Failed renewal payments
When a renewal payment fails, the subscription is temporarily unavailable, and the Billing page of the web console shows the subscription status as Past due. During this time, CodeDAG treats the account as having no subscription: submissions are rejected, and queued workflows stop at on-hold when they try to start running. Select Update payment method on the Billing page to open the Stripe customer portal, and update your payment method there. Once the payment succeeds, the subscription is available again, and you can use cdg dag recover to continue the workflows that were held back.
Short delay after payment
After you pay, you're taken back to the Billing page. The subscription usually takes effect within a few seconds, and the page updates on its own. Until then, cdg dag submit and cdg auth status still see your previous credits: either your free credits or a message that no credits are available. Wait a moment and try again.
Email language
After you pay, CodeDAG and Stripe send you emails such as the subscription confirmation, receipts, and renewal reminders, and all of them follow the language saved to your account. The language saved to your account follows your most recent choice in the web console's language menu. If you've never chosen one, it's the language the page was shown in when your account was created.
Invoices
The Billing page of the web console lists this account's most recent payments. Select View on a payment to open its Stripe invoice page, where you can download the invoice and the receipt. For earlier payments, go to the Stripe customer portal, which you open with Manage subscription on the Billing page.
Known limitations
- No credit top-up packs. Once your subscription's credits for the month are used up, this account has to wait for the next reset.
- No shared team credits. Credits belong to a single account, and there's no credit pool shared by a team or organization. When you use the same account on several computers, they share that one account's own credits.
- Payments aren't available in some countries and regions. If your billing region is one of them, you can't subscribe, but your free credits still work as usual. See Tax and billing regions.
- Only credit and debit cards are accepted. Wallets such as Apple Pay and Google Pay aren't supported yet.
Last updated on