> ## Documentation Index
> Fetch the complete documentation index at: https://runcrate.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Auto-Recharge

> Automatically top up credits when your balance gets low.

export const RuncrateStyles = () => {
  if (typeof document !== 'undefined' && !document.getElementById('runcrate-overrides')) {
    const s = document.createElement('style');
    s.id = 'runcrate-overrides';
    s.textContent = `
      /* Match Runcrate's rounding scale (--radius: 0.75rem) */
      .rounded-sm { border-radius: 0.5rem !important; }   /* 8px */
      .rounded-md { border-radius: 0.625rem !important; } /* 10px */
      .rounded-lg { border-radius: 0.75rem !important; }  /* 12px */
      .rounded-l-sm { border-top-left-radius: 0.5rem !important; border-bottom-left-radius: 0.5rem !important; }
      .rounded-r-sm { border-top-right-radius: 0.5rem !important; border-bottom-right-radius: 0.5rem !important; }
      .rounded-l-md { border-top-left-radius: 0.625rem !important; border-bottom-left-radius: 0.625rem !important; }
      .rounded-r-md { border-top-right-radius: 0.625rem !important; border-bottom-right-radius: 0.625rem !important; }
      .rounded-l-lg { border-top-left-radius: 0.75rem !important; border-bottom-left-radius: 0.75rem !important; }
      .rounded-r-lg { border-top-right-radius: 0.75rem !important; border-bottom-right-radius: 0.75rem !important; }

      /* Cards: never pure white in light mode */
      .card { background-color: #fcfcfc !important; border-radius: 0.75rem !important; }
      html.dark .card { background-color: #141414 !important; }

      /* Docs hero box */
      .rc-hero { background-color: #fcfcfc; border: 1px solid #e0e0e0; }
      html.dark .rc-hero { background-color: #141414; border-color: #242424; }
      html.dark .rc-hero h1 { color: #f5f5f5; }

      /* Runcrate scrollbar — thin, transparent track, hide-until-hover thumb */
      ::-webkit-scrollbar { width: 6px; height: 6px; background-color: transparent; }
      ::-webkit-scrollbar-track { background-color: transparent; }
      ::-webkit-scrollbar-thumb { background-color: rgba(155, 155, 155, 0.5); border-radius: 10px; transition: opacity 0.3s ease; opacity: 0; }
      ::-webkit-scrollbar-thumb:hover { background-color: rgba(155, 155, 155, 0.7); }
      *:hover::-webkit-scrollbar-thumb,
      *:focus::-webkit-scrollbar-thumb,
      *:active::-webkit-scrollbar-thumb { opacity: 1; }
      * { scrollbar-width: thin; scrollbar-color: rgba(155, 155, 155, 0.5) transparent; }
    `;
    document.head.appendChild(s);
  }
  return null;
};

<RuncrateStyles />

Auto-recharge automatically adds credits to your account when your balance drops below a threshold you set. This prevents unexpected instance termination during long-running workloads.

## How It Works

1. You set a **threshold** — the credit balance that triggers a recharge
2. You set a **recharge amount** — how many credits to add when triggered
3. When your balance drops below the threshold, Runcrate automatically charges your default payment method and adds credits

## Setup

<Steps>
  <Step title="Go to Billing">
    Navigate to **Dashboard → Billing**.
  </Step>

  <Step title="Find the Auto-Recharge Section">
    Look for the auto-recharge banner at the top of the billing page.
  </Step>

  <Step title="Enable Auto-Recharge">
    Toggle auto-recharge **on**.
  </Step>

  <Step title="Set Threshold">
    Enter the credit balance that should trigger a recharge (e.g., \$10).
  </Step>

  <Step title="Set Recharge Amount">
    Enter how many credits to add each time (e.g., \$50).
  </Step>

  <Step title="Save">
    Click **Save** to activate.
  </Step>
</Steps>

<Note>
  You must have a **default payment method** set before enabling auto-recharge.
</Note>

## Configuration Tips

| Setting             | Recommendation                           | Why                                             |
| ------------------- | ---------------------------------------- | ----------------------------------------------- |
| **Threshold**       | Set to at least 2x your hourly burn rate | Gives enough buffer for the recharge to process |
| **Recharge amount** | Set to cover at least 24 hours of usage  | Avoids frequent small charges                   |
| **Payment method**  | Use a card with sufficient limit         | Failed charges will not retry automatically     |

## Example Configurations

| Usage Level                  | Threshold | Recharge Amount | Scenario                                 |
| ---------------------------- | --------- | --------------- | ---------------------------------------- |
| **Light** (1 instance)       | \$5       | \$25            | Single RTX 4090 instance, occasional use |
| **Moderate** (2–3 instances) | \$10      | \$50            | Multiple instances for training jobs     |
| **Heavy** (5+ instances)     | \$25      | \$100           | Team with multiple concurrent workloads  |
| **API-heavy**                | \$10      | \$50            | High-volume Models API usage             |

## Disabling Auto-Recharge

To turn off auto-recharge:

1. Go to **Dashboard → Billing**
2. Toggle auto-recharge **off**
3. Click **Save**

Your existing credit balance will not be affected. Credits will simply deplete without automatic replenishment.

## Troubleshooting

<AccordionGroup>
  <Accordion title="Auto-recharge did not trigger">
    Check that your default payment method is valid and has sufficient funds. Also verify that the threshold is set correctly — the recharge triggers when your balance drops **below** the threshold, not at exactly the threshold.
  </Accordion>

  <Accordion title="Charged multiple times in a short period">
    If your usage rate is very high, your balance may drop below the threshold again shortly after a recharge. Increase your recharge amount to cover a longer period.
  </Accordion>

  <Accordion title="Payment failed">
    If the auto-recharge payment fails, check your default payment method in the billing settings. Update or replace the card if needed. Failed auto-recharges do not retry automatically — you may need to add credits manually.
  </Accordion>

  <Accordion title="Cannot enable auto-recharge">
    Make sure you have at least one payment method saved and set as default. Add a payment method first, then enable auto-recharge.
  </Accordion>
</AccordionGroup>
