How to Use Copilot Without Signing In
In this article
You can’t use GitHub Copilot without signing in; it requires a GitHub account and an active subscription or trial. If you want to experiment without an account, use the free trial or switch to a local open‑source model.
Copilot Requires an Account
GitHub Copilot runs on servers that generate suggestions based on your code context. To access those servers, the product verifies your identity through GitHub’s authentication flow. The verification step ensures the service is used only by authorized users and allows GitHub to track usage for billing. Without a signed‑in session, the editor shows a placeholder icon but offers no code completions. The sign‑in requirement also protects your project data from unauthorized access.
When you launch an editor that has the Copilot extension installed, the status bar displays an icon that reads "Copilot". If the icon is grayed out or shows a lock, the extension is waiting for authentication. Clicking the icon will open a browser window that asks you to sign into GitHub. Once you grant permission, the extension stores a token locally and begins streaming suggestions. If you close the editor, the token remains cached for future sessions.
Starting a Free Trial
GitHub offers a 60‑day free trial for Copilot that does not require a paid plan. To begin the trial, open the Copilot sidebar in your editor and click the "Start free trial" button. A dialog will prompt you to sign in with your GitHub account if you are not already signed in. After signing in, the trial begins automatically and you receive a one‑time credit for usage. The trial credits last until the 60 days expire or the credit is exhausted, whichever comes first.
During the trial, all Copilot features are available, including inline suggestions, code explanations, and multi‑line completions. The trial does not restrict the number of times you can request suggestions, but the service may throttle requests if overall usage is unusually high. Once the trial ends, you will be prompted to upgrade to a paid plan to continue using Copilot. You can cancel the trial at any time from the GitHub billing page to avoid charges.
Managing Sign‑In Status
To view or change your sign‑in status, open the editor’s command palette and type "Copilot: Sign Out". Selecting this command removes the stored token and returns the status bar icon to a locked state. If you need to switch accounts, first sign out, then open the sign‑in dialog again. The dialog will ask you to authenticate with a different GitHub account or to grant permissions to a new repository.
If you are using Visual Studio Code, the sign‑in process involves the "Accounts" pane in the Settings menu. Open Settings, search for "Accounts", and click the GitHub icon to open the sign‑in window. After you log in, the editor automatically refreshes the Copilot extension. You can also manage token scopes from the GitHub website by visiting Settings > Developer settings > Personal access tokens.
Signs You’re Signed In
A signed‑in Copilot session is indicated by a green checkmark next to the Copilot icon in the status bar. When you type, suggestions appear in a light‑gray overlay with a small Copilot logo. The overlay includes a small icon that lets you accept or dismiss the suggestion. If you hover over the suggestion, a tooltip shows the source of the suggestion, typically "GitHub Copilot". These visual cues confirm that the extension is connected to the servers.
Another sign is the presence of the Copilot sidebar. Opening the sidebar displays a dashboard that shows your trial status, usage limits, and the latest suggestions. The sidebar also offers a button to open the Copilot settings, where you can adjust the frequency of suggestions and enable or disable certain features. If the sidebar is hidden or shows an error message, the extension is not authenticated.
Common Misconception
Some users believe that Copilot can run locally without an internet connection, similar to other language models. In reality, Copilot’s core engine is cloud‑based and requires a continuous connection to GitHub’s servers. The only way to use Copilot offline would be to download a pre‑built model, which GitHub does not provide. Therefore, attempting to use Copilot without signing in will result in a locked icon and no suggestions.
Another misconception is that a free trial can be extended indefinitely by repeatedly signing out and back in. The trial period is tied to the account and expires after 60 days. After the trial ends, you must either upgrade to a paid plan or stop using Copilot. Re‑signing in does not reset the trial period.
Switching to a Local Model
If you prefer not to sign in, you can use an open‑source language model that runs locally. Popular choices include CodeGeeX, Llama‑2, or GPT‑Neo. These models can be installed through a package manager like pip or conda and run inside a virtual environment. You will still need an editor extension that supports the model, such as the "Code Runner" or "AI Language Server" extension.
To set up a local model, download the model weights and place them in a directory accessible to your editor. Configure the extension to point to the local server by editing the settings file. The extension will then send your code to the local server and receive completions without needing a GitHub account. Keep in mind that local models may have slower response times and smaller knowledge bases compared to Copilot.
Troubleshooting Sign‑In Issues
If Copilot does not activate after signing in, check that your browser allows pop‑ups for the GitHub domain. Some browsers block the authentication window, preventing the token from being stored. Try disabling extensions that block pop‑ups or use a different browser to complete the sign‑in.
Another common issue is an expired or revoked token. Open the GitHub website, go to Settings > Developer settings > Personal access tokens, and delete any expired tokens. Then return to the editor and sign in again to generate a fresh token. If the problem persists, clear the editor’s cache or reinstall the Copilot extension.
Ensuring Continuous Access
Once you have signed in, the extension maintains a session for several months. The token is refreshed automatically, but you may need to re‑authenticate if you change your GitHub password. After changing your password, open the command palette and run "Copilot: Sign Out", then sign in again to update the token.
When working on a new machine, install the Copilot extension and sign in using the same GitHub account. The extension will automatically sync your preferences via the GitHub settings sync feature. This keeps your experience consistent across devices without needing to re‑configure each time.
Choosing the Right Plan
If you plan to use Copilot regularly, consider the paid plan that offers unlimited suggestions and priority support. The paid plan also includes advanced features like multi‑line completions and code explanations. You can review the plan details on the GitHub Copilot pricing page.
For occasional use, the free trial may suffice. Track your usage in the Copilot dashboard to ensure you stay within the trial limits. If you exceed the trial limits, you will be prompted to upgrade before you can continue receiving suggestions.
Alternatives to Copilot
Other AI coding assistants are available that do not require a GitHub account. Examples include Tabnine, Kite, and CodiumAI. These services often offer a free tier and can be integrated into popular editors. Evaluate each option based on your workflow, privacy preferences, and pricing structure.
Some editors have built‑in AI features that run locally, such as the IntelliCode feature in Visual Studio. IntelliCode uses a model trained on open‑source code and does not require an internet connection. It is a good alternative if you want AI assistance without signing into an external service.
Final Steps
After you have signed in and confirmed that suggestions appear, you can customize the Copilot experience. Open the Copilot settings and adjust the suggestion frequency, enable the inline explanation feature, or set a maximum number of suggestions per line. These settings help you tailor the tool to your coding style.
If you decide to stop using Copilot, simply sign out from the editor and remove the extension. This ensures that no residual tokens remain and that your GitHub account is no longer tied to the editor. You can always re‑enable Copilot later by installing the extension and signing in again.