{"id":3282844,"date":"2025-08-11T04:32:28","date_gmt":"2025-08-11T02:32:28","guid":{"rendered":"http:\/\/nhub.news\/?p=3282844"},"modified":"2025-08-11T11:03:25","modified_gmt":"2025-08-11T09:03:25","slug":"how-to-use-gpt-5-in-vs-code-with-github-copilot","status":"publish","type":"post","link":"http:\/\/nhub.news\/de\/2025\/08\/how-to-use-gpt-5-in-vs-code-with-github-copilot\/","title":{"rendered":"How to use GPT-5 in VS Code with GitHub Copilot"},"content":{"rendered":"<p style=\"text-align: justify;\"><b>Learn how to unlock GPT-5 in VS Code using GitHub Copilot Pro. Here are the steps and how to bypass usage limits using your API key.<\/b><br \/>\nGitHub Copilot Pro now supports GPT-5 in VS Code.<br \/>A 30-day trial lets you test premium models for free.<br \/>Add your OpenAI key to bypass Copilot restriction.<br \/>GPT-5 is now available for use with Microsoft&#8217;s GitHub Copilot in VS Code. In this article, I&#8217;ll walk you through the steps of setting up the linkages between VS Code, Copilot, and GPT-5. This process will also work for most other supported large language models you want to use. Step 1: Enable GitHub Copilot Pro <br \/>You&#8217;ll need the Pro version of GitHub Copilot to use GPT-5 at this time. The new model might be available for Copilot&#8217;s free tier someday, but not yet. There is, however, a 30-day free trial. I&#8217;ll show you how to set that up here:<br \/>First, open VS Code. Click the little Copilot icon (1). That action will open the Copilot pane. Next, click whatever model is listed at (2). Mine is GPT-4.1. Finally, click Add Premium Models (3). <br \/>This will take you to a web page where you&#8217;ll be given the opportunity to try Copilot Pro for 30 days at no cost. Click the big green button. <br \/>Unfortunately, you&#8217;ll have to add your credit card info, although it won&#8217;t be charged for 30 days. To prevent abuse of the 30-day limit, Microsoft requires you to give your personal information and your credit card number:<br \/>Once you&#8217;ve done that, click the Activate Now button: Step 2: Enable GPT-5 <br \/>You&#8217;ll need to restart VS Code for the Pro mode to be made available. Once you do that, click the current model (in the screenshot, it&#8217;s GPT-4.1), and then scroll and choose GPT-5:<br \/>You will then need to issue a prompt. In my Deep Research dump of my repository, I was told about some references to a product I sold a few years ago that were still in the product&#8217;s code. I told GPT-5 to remove all such references. <br \/>That process resulted in the Enable button showing up. Basically, I think you can use any prompt with GPT-5 to trigger the Enable button. Then click it: Step 3: Bring your own key <br \/>By using the Pro account, you are given a certain number of times you can use the various models. It&#8217;s unclear how that usage limit is calculated, so I have reached out to Microsoft for clarification. I&#8217;ll update this article when I get more info. <br \/>If you want to bypass the possible restrictions and rate limitations, you can use your own API key as provided by your LLM service. You can learn more from Microsoft&#8217;s language models page. <br \/>With ChatGPT, you can get an OpenAI Platform Key by pointing your browser here. If you don&#8217;t already have an OpenAI account, you may need to give them some credit card information as well. Then click Create Key and follow the directions:<br \/>Once you have your key, go back to Manage Models (by clicking the current model you&#8217;re using and choosing Manage Models). Select OpenAI:<br \/>Type or paste in your key. Press Enter to confirm:<br \/>Congratulations, you&#8217;re now running GPT-5 in Copilot. Have you used Copilot? <br \/>Have you tried using GPT-4.1 or GPT-5 in VS Code yet? What do you think of the Copilot Pro experience so far? Does it feel like a worthwhile upgrade? Have you explored using your API key instead of relying on Microsoft&#8217;s allocation? <br \/>What kinds of tasks or prompts have you found AI particularly helpful for in your coding work? Let us know in the comments below. <br \/>You can follow my day-to-day project updates on social media. Be sure to subscribe to my weekly update newsletter, and follow me on Twitter\/X at @DavidGewirtz, on Facebook at Facebook.com\/DavidGewirtz, on Instagram at Instagram.com\/DavidGewirtz, on Bluesky at @DavidGewirtz.com, and on YouTube at YouTube.com\/DavidGewirtzTV.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to unlock GPT-5 in VS Code using GitHub Copilot Pro. Here are the steps and how to bypass usage limits using your API key. GitHub Copilot Pro now supports GPT-5 in VS Code.A 30-day trial lets you test premium models for free.Add your OpenAI key to bypass Copilot restriction.GPT-5 is now available for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3282843,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[93],"tags":[],"_links":{"self":[{"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/posts\/3282844"}],"collection":[{"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/comments?post=3282844"}],"version-history":[{"count":0,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/posts\/3282844\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/media\/3282843"}],"wp:attachment":[{"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/media?parent=3282844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/categories?post=3282844"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/tags?post=3282844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}