|
| 1 | +--- |
| 2 | +title: Usage limits for GitHub Copilot |
| 3 | +shortTitle: Usage limits |
| 4 | +allowTitleToDifferFromFilename: true |
| 5 | +intro: 'Learn about {% data variables.product.prodname_copilot %} usage limits and what to do if you hit a limit.' |
| 6 | +versions: |
| 7 | + feature: copilot |
| 8 | +redirect_from: |
| 9 | + - /copilot/troubleshooting-github-copilot/rate-limits-for-github-copilot |
| 10 | + - /copilot/how-tos/troubleshoot/rate-limits-for-github-copilot |
| 11 | + - /copilot/concepts/rate-limits |
| 12 | +contentType: concepts |
| 13 | +category: |
| 14 | + - Learn about Copilot |
| 15 | +--- |
| 16 | + |
| 17 | +Rate limiting is a mechanism used to control the number of requests a user or application can make in a given time period. {% data variables.product.github %} uses rate limits to ensure everyone has fair access to {% data variables.product.prodname_copilot %} and to protect against abuse. |
| 18 | + |
| 19 | +## Why does {% data variables.product.github %} use rate limits? |
| 20 | + |
| 21 | +{% data variables.product.github %} enforces rate limits for several reasons. |
| 22 | + |
| 23 | +* **Capacity:** There is a limited amount of computing power available to serve all {% data variables.product.prodname_copilot_short %} users. Rate limiting helps prevent the system from being overloaded. |
| 24 | +* **High usage:** Popular features and models may receive bursts of requests. Rate limits ensure no single user or group can monopolize these resources. |
| 25 | +* **Fairness:** Rate limits ensure that all users have equitable access to {% data variables.product.prodname_copilot_short %}. |
| 26 | +* **Abuse mitigation:** Without rate limits, malicious actors could exploit {% data variables.product.prodname_copilot_short %}, leading to degraded service for everyone or even denial of service. |
| 27 | + |
| 28 | +## Types of usage limits |
| 29 | + |
| 30 | +{% data variables.product.prodname_copilot %} has two limits: a **session** and a **weekly (7-day) limit**. |
| 31 | + |
| 32 | +* **Session limit.** If you hit the session limit, you must wait until it resets before you can resume using {% data variables.product.prodname_copilot_short %}. |
| 33 | +* **Weekly limit.** This limit caps the total number of tokens you can consume during a 7-day period. If you hit a weekly limit and you have {% data variables.product.prodname_prus %} remaining, you can continue using {% data variables.product.prodname_copilot_short %} with {% data variables.copilot.copilot_auto_model_selection_short_cap_a %}. Model choice will be re-enabled when the weekly period resets. |
| 34 | + |
| 35 | +## What you will see when approaching a limit |
| 36 | + |
| 37 | +{% data variables.product.prodname_vscode_shortname %} and {% data variables.copilot.copilot_cli %} both display a warning when you are approaching a limit. These indicators are designed to help you avoid hitting a limit unexpectedly. |
| 38 | + |
| 39 | +## What to do if you approach a limit |
| 40 | + |
| 41 | +If you are approaching a limit, the following steps can help reduce the chances of hitting it. |
| 42 | + |
| 43 | +* **Use a model with a smaller multiplier for simpler tasks.** The larger the multiplier, the faster you will reach the limit. |
| 44 | +* **Use plan mode.** In {% data variables.product.prodname_vscode_shortname %} and {% data variables.copilot.copilot_cli_short %}, plan mode can improve task efficiency and task success, reducing overall token consumption. |
| 45 | +* **Reduce parallel workflows.** Parallelized tools result in higher token consumption. Use them sparingly if you are nearing your limits. |
| 46 | +* **Upgrade your plan.** If you are on a {% data variables.copilot.copilot_pro_short %} plan, upgrading to {% data variables.copilot.copilot_pro_plus_short %} provides significantly higher usage limits. |
| 47 | + |
| 48 | +## What to do if you hit a limit |
| 49 | + |
| 50 | +If you receive a usage limit error when using {% data variables.product.prodname_copilot_short %}, you should: |
| 51 | + |
| 52 | +* **Wait until your limit time resets.** |
| 53 | +* **Switch to {% data variables.copilot.copilot_auto_model_selection %}.** If you hit a **weekly** usage limit, you can continue using {% data variables.product.prodname_copilot_short %} with {% data variables.copilot.copilot_auto_model_selection_short_cap_a %} until exhausting your premium requests. |
| 54 | +* **Upgrade your plan.** If you are on an individual {% data variables.product.prodname_copilot_short %} plan, upgrading your plan will allow for additional usage. |
| 55 | +* **Contact Support.** If you repeatedly hit usage limits and believe it’s impacting legitimate use, contact {% data variables.contact.contact_support_page %} for assistance. |
0 commit comments