Visual Studio Code Copilot is an AI programming assistant from Microsoft integrated into the VS Code editor. It provides intelligent suggestions, auto-completion, and code generation as you write code. With AGIPower, you can use your own API key to power VS Code Copilot, enjoying a more flexible and cost-effective AI programming experience.
Ensure your VS Code version is up to date.
Have your AGIPower API key ready.
It is recommended to read the full guide first to understand the detailed configuration steps.
After selecting AGIPower, you will see an API Key input box.
Enter your AGIPower API Key (if you don’t have one, please visit https://agipower.ai to register and get one).
The API key will be securely encrypted and stored locally; it will not be uploaded to any server.
Your API key is stored only in the VS Code configuration on your local computer using an encrypted storage mechanism. Please keep your key safe and do not share it with others.
If you have questions or suggestions, feel free to provide feedback via GitHub Issues.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AGIPower Docs","colors":{"primary":"#111827","light":"#2563EB","dark":"#60A5FA"},"logo":{"light":"https://mintcdn.com/lovmix/W52qeMQ6FJqbguh4/logo-black.svg?fit=max\u0026auto=format\u0026n=W52qeMQ6FJqbguh4\u0026q=85\u0026s=7990fe3fbaeca03f15b8c63a644dfb71","dark":"https://mintcdn.com/lovmix/W52qeMQ6FJqbguh4/logo-white.svg?fit=max\u0026auto=format\u0026n=W52qeMQ6FJqbguh4\u0026q=85\u0026s=96a6bff98207d15c05b32a7b1d195557","href":"https://agipower.ai"},"favicon":"https://mintcdn.com/lovmix/u2PZUxdxpaCvgMRo/favicon.svg?fit=max\u0026auto=format\u0026n=u2PZUxdxpaCvgMRo\u0026q=85\u0026s=7b7a3c7d2b5c840d4931f627b4224edd","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","python","javascript"]}},"navbar":{"links":[{"href":"https://agipower.ai","label":"Home"},{"href":"https://agipower.ai/models","label":"Models"},{"href":"https://agipower.ai/text-generator","label":"Studio"},{"href":"https://agipower.ai/about","label":"About Us"}],"primary":{"type":"button","label":"AGIPower","href":"https://agipower.ai"}},"footer":{"socials":{}},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","default":true,"href":"en/about/intro"},{"language":"zh-Hans","href":"zh/about/intro"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lovmix","hasAudioNarration":false,"actualSubdomain":"lovmix","customDomains":["docs.agipower.ai"],"gitSource":{"type":"github","owner":"limilzeo-max","repo":"agipower-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae94602f56d237c825b9256:success","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"en","tag":"Best Practices","count":17},{"language":"zh-Hans","tag":"最佳实践","count":17},{"language":"default","tag":"API Reference","count":16},{"language":"en","tag":"Help Center","count":3},{"language":"zh-Hans","tag":"帮助中心","count":3},{"language":"default","tag":"Files API","count":3},{"language":"default","tag":"Platform API","count":3},{"language":"default","tag":"OpenRouter Compatible API","count":3},{"language":"default","tag":"OpenAI Compatible API","count":2},{"language":"default","tag":"Predictions API","count":2},{"language":"en","tag":"About AGIPower","count":1},{"language":"zh-Hans","tag":"关于 AGIPower","count":1},{"language":"default","tag":"Anthropic Compatible API","count":1},{"language":"default","tag":"Google Compatible API","count":1},{"language":"default","tag":"Images API","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"en/best-practices/github-copilot","slug":"/en/best-practices/github-copilot","pageMetadata":{"head":[["meta",{"name":"description","content":"Guide to Using VS Code Copilot with AGIPower"}],["meta",{"name":"keywords","content":"AGIPower, best practices, integration, copilot, API"}]],"title":null,"description":null,"href":"/en/best-practices/github-copilot"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,img:`img`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`guide-to-using-vscode-github-copilot-with-agipower`,children:`Guide to Using VSCode Github Copilot with AGIPower`}),`\n`,_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`Visual Studio Code Copilot is an AI programming assistant from Microsoft integrated into the VS Code editor. It provides intelligent suggestions, auto-completion, and code generation as you write code. With AGIPower, you can use your own API key to power VS Code Copilot, enjoying a more flexible and cost-effective AI programming experience.`}),`\n`,_jsx(Tip,{title:`Usage Tips`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Ensure your VS Code version is up to date.`}),`\n`,_jsx(_components.li,{children:`Have your AGIPower API key ready.`}),`\n`,_jsx(_components.li,{children:`It is recommended to read the full guide first to understand the detailed configuration steps.`}),`\n`]})}),`\n`,_jsx(Heading,{level:`2`,id:`quick-start`,children:`Quick Start`}),`\n`,_jsx(_components.p,{children:`Start your AGIPower Copilot journey in just a few simple steps:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Install `,_jsx(_components.a,{href:`https://code.visualstudio.com/`,children:`Visual Studio Code`}),` version 1.104.0 or higher.`]}),`\n`,_jsxs(_components.li,{children:[`📥 `,_jsx(_components.strong,{children:`Install Extension`}),`: Click `,_jsx(_components.a,{href:`https://marketplace.visualstudio.com/items?itemName=hugehardzhang.agipower-copilot`,children:`here`}),` to install the plugin.`]}),`\n`,_jsxs(_components.li,{children:[`💬 `,_jsx(_components.strong,{children:`Open Copilot`}),`: Open the GitHub Copilot Chat interface in VS Code.`]}),`\n`,_jsxs(_components.li,{children:[`⚙️ `,_jsx(_components.strong,{children:`Manage Models`}),`: Click the model selector below the chat input box and choose “Manage Models…”.`]}),`\n`,_jsxs(_components.li,{children:[`✅ `,_jsx(_components.strong,{children:`Select AGIPower`}),`: Click “Add Models” and select the “AGIPower” provider.`]}),`\n`,_jsxs(_components.li,{children:[`🔑 `,_jsx(_components.strong,{children:`Configure Key`}),`: Enter your AGIPower API Key (the key will be securely stored locally).`]}),`\n`,_jsxs(_components.li,{children:[`🎯 `,_jsx(_components.strong,{children:`Pick Model`}),`: Select the specific models you wish to use in the model selector.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`detailed-configuration-instructions`,children:`Detailed Configuration Instructions`}),`\n`,_jsx(Heading,{level:`4`,id:`1-version-requirements`,children:`1. Version Requirements`}),`\n`,_jsx(_components.p,{children:`Ensure your VS Code version is 1.104.0 or higher. You can check your current version in the following ways:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`GUI Method:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`macOS: Click menu bar `,_jsx(_components.strong,{children:`Code`}),` > `,_jsx(_components.strong,{children:`About Visual Studio Code`})]}),`\n`,_jsxs(_components.li,{children:[`Windows/Linux: Click menu bar `,_jsx(_components.strong,{children:`Help`}),` > `,_jsx(_components.strong,{children:`About`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Command Line Method:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`code`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --version`})]}),`\n`]})})}),`\n`]}),`\n`]}),`\n`,_jsx(Warning,{title:`Version Check`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`If the command line shows a version lower than 1.104.0`}),`\n`,_jsx(_components.li,{children:`Or the GUI shows a version that does not meet the requirements`}),`\n`,_jsxs(_components.li,{children:[`Please go to the `,_jsx(_components.a,{href:`https://code.visualstudio.com/`,children:`VS Code Official Website`}),` to download the latest version`]}),`\n`]})}),`\n`,_jsx(_components.p,{children:`If you cannot update directly, consider:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Updating using a package manager (like Homebrew)`}),`\n`,_jsx(_components.li,{children:`Downloading and manually installing the latest version`}),`\n`,_jsx(_components.li,{children:`Contacting your IT support team for assistance with the upgrade`}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`2-install-agipower-copilot-extension`,children:`2. Install AGIPower Copilot Extension`}),`\n`,_jsx(_components.p,{children:`There are two ways to install:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Method 1: Via VS Code Marketplace`})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Open VS Code.`}),`\n`,_jsxs(_components.li,{children:[`Click the Extensions icon in the left activity bar (or use shortcut `,_jsx(_components.code,{children:`Cmd+Shift+X`}),` / `,_jsx(_components.code,{children:`Ctrl+Shift+X`}),`).`]}),`\n`,_jsx(_components.li,{children:`Type “AGIPower” in the search box.`}),`\n`,_jsxs(_components.li,{children:[`Find the extension published by `,_jsx(_components.code,{children:`hugehardzhang`}),` and click `,_jsx(_components.strong,{children:`Install`}),`.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://cdn.marmot-cloud.com/storage/agipower/2025/12/20/jNchPhz/agipower-market.png`,alt:`Search and install AGIPower Copilot extension in VS Code Marketplace`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Method 2: Direct Link Installation`})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.a,{href:`https://marketplace.visualstudio.com/items?itemName=hugehardzhang.agipower-copilot`,children:`AGIPower Copilot Extension Page`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Click the `,_jsx(_components.strong,{children:`Install`}),` button; the browser will prompt to open VS Code.`]}),`\n`,_jsx(_components.li,{children:`Confirm installation in VS Code.`}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`3-open-copilot-chat-interface`,children:`3. Open Copilot Chat Interface`}),`\n`,_jsx(_components.p,{children:`After installation, you can open Copilot Chat in any of the following ways:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Click the Copilot Chat icon in the left activity bar.`}),`\n`,_jsxs(_components.li,{children:[`Use shortcut `,_jsx(_components.code,{children:`Cmd+Shift+I`}),` (macOS) or `,_jsx(_components.code,{children:`Ctrl+Shift+I`}),` (Windows/Linux).`]}),`\n`,_jsxs(_components.li,{children:[`Press `,_jsx(_components.code,{children:`Cmd+Shift+P`}),` / `,_jsx(_components.code,{children:`Ctrl+Shift+P`}),` to open the Command Palette and type “Chat: Focus on Chat View”.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.img,{src:`https://cdn.marmot-cloud.com/storage/agipower/2025/12/20/FrPnxs5/select-agipower-model.jpg`,alt:`Open VS Code Copilot Chat Interface`}),`\n`,_jsx(_components.img,{src:`https://cdn.marmot-cloud.com/storage/agipower/2025/12/20/NUnBhZm/vscode-manager-model.jpg`,alt:`Open VS Code Copilot Chat Interface Select manage models`})]}),`\n`,_jsx(Heading,{level:`4`,id:`4-manage-and-configure-models`,children:`4. Manage and Configure Models`}),`\n`,_jsx(_components.p,{children:`In the Copilot Chat interface:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Find the `,_jsx(_components.strong,{children:`Model Selector`}),` above the chat input box (usually displays the currently selected model name).`]}),`\n`,_jsxs(_components.li,{children:[`Click the model selector and choose `,_jsx(_components.strong,{children:`“Manage Models…”`}),` from the dropdown menu.`]}),`\n`,_jsxs(_components.li,{children:[`In the pop-up model management interface, click the `,_jsx(_components.strong,{children:`“Add Models”`}),` button.`]}),`\n`,_jsxs(_components.li,{children:[`Find and select `,_jsx(_components.strong,{children:`“AGIPower”`}),` from the provider list.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://cdn.marmot-cloud.com/storage/agipower/2025/12/20/XUB0icf/vscode-manager-select-agipower.jpg`,alt:`Manage models in Copilot Chat and add AGIPower provider`})}),`\n`,_jsx(Heading,{level:`4`,id:`5-configure-api-key`,children:`5. Configure API Key`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`After selecting AGIPower, you will see an `,_jsx(_components.strong,{children:`API Key`}),` input box.`]}),`\n`,_jsxs(_components.li,{children:[`Enter your AGIPower API Key (if you don’t have one, please visit `,_jsx(_components.a,{href:`https://agipower.ai`,children:`https://agipower.ai`}),` to register and get one).`]}),`\n`,_jsx(_components.li,{children:`The API key will be securely encrypted and stored locally; it will not be uploaded to any server.`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://cdn.marmot-cloud.com/storage/agipower/2025/12/20/2AbsJxq/insert-agipower-apikey.png`,alt:`Enter AGIPower API Key for configuration`})}),`\n`,_jsx(Tip,{title:`Security Note`,children:_jsx(_components.p,{children:`Your API key is stored only in the VS Code configuration on your local computer using an encrypted storage mechanism. Please keep your key safe and do not share it with others.`})}),`\n`,_jsx(Heading,{level:`4`,id:`6-select-available-models`,children:`6. Select Available Models`}),`\n`,_jsx(_components.p,{children:`After configuring the key, you can select the models you want to display in the model selector:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`✅ Check the models you want to use (multiple selection supported).`}),`\n`,_jsxs(_components.li,{children:[`Recommended models include:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`gpt-4o`}),`: Excellent comprehensive capabilities, fast response speed.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`gpt-4-turbo`}),`: More cost-effective, suitable for daily use.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`gemini-pro`}),`: Google’s advanced model with strong code understanding capabilities.`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.img,{src:`https://cdn.marmot-cloud.com/storage/agipower/2025/12/20/FrPnxs5/select-agipower-model.jpg`,alt:`Select AGIPower models to use in Copilot`}),`\n`,_jsx(_components.img,{src:`https://cdn.marmot-cloud.com/storage/agipower/2025/12/20/UJGgqnf/chat-select-agipower-model.png`,alt:`Select AGIPower models to use in Copilot`})]}),`\n`,_jsx(Heading,{level:`4`,id:`7-start-using`,children:`7. Start Using`}),`\n`,_jsx(_components.p,{children:`Once configured, you can:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Switch between different AGIPower models in the model selector.`}),`\n`,_jsx(_components.li,{children:`Get intelligent completion suggestions while typing code in the editor.`}),`\n`,_jsx(_components.li,{children:`Use the Chat interface to converse with AI and get programming help.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`keyboard-shortcuts`,children:`Keyboard Shortcuts`}),`\n`,_jsx(Tip,{title:`Shortcut Usage Instructions`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Shortcuts can greatly improve your coding efficiency.`}),`\n`,_jsx(_components.li,{children:`Shortcuts differ slightly between operating systems; please note the distinction.`}),`\n`]})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Action`}),_jsx(_components.th,{children:`macOS`}),_jsx(_components.th,{children:`Windows/Linux`}),_jsx(_components.th,{children:`Usage Scenario`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Open Chat`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Cmd+Shift+I`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Ctrl+Shift+I`})}),_jsx(_components.td,{children:`Quickly open the AI chat interface`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Inline Chat`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Cmd+I`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Ctrl+I`})}),_jsx(_components.td,{children:`Interact with AI directly in the current code line`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Accept Suggestion`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Tab`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Tab`})}),_jsx(_components.td,{children:`Accept code completion recommended by AI`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Reject Suggestion`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Esc`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Esc`})}),_jsx(_components.td,{children:`Cancel the current code suggestion`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Next Suggestion`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Option+]`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Alt+]`})}),_jsx(_components.td,{children:`View the next available code suggestion`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Previous Suggestion`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Option+[`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Alt+[`})}),_jsx(_components.td,{children:`View the previous available code suggestion`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Trigger Completion`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Option+\\\\`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Alt+\\\\`})}),_jsx(_components.td,{children:`Manually trigger AI code completion`})]})]})]}),`\n`,_jsx(Warning,{title:`Shortcut Notes`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Some shortcuts may conflict with system or other software shortcuts.`}),`\n`,_jsx(_components.li,{children:`If conflicts occur, you can customize shortcuts in VS Code settings.`}),`\n`]})}),`\n`,_jsx(Heading,{level:`2`,id:`resource-links`,children:`Resource Links`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://tbox.tech`,children:`AGIPower Official Website`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://docs.tbox.tech`,children:`AGIPower API Documentation`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://tbox.tech`,children:`Get API Key`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://code.visualstudio.com/docs/copilot/overview`,children:`VS Code Copilot Official Documentation`})}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`changelog`,children:`Changelog`}),`\n`,_jsxs(_components.p,{children:[`If you have questions or suggestions, feel free to provide feedback via `,_jsx(_components.a,{href:`https://github.com/agipower/agipower/issues`,children:`GitHub Issues`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"head":[["meta",{"name":"description","content":"Guide to Using VS Code Copilot with AGIPower"}],["meta",{"name":"keywords","content":"AGIPower, best practices, integration, copilot, API"}]],"title":null,"description":null,"href":"/en/best-practices/github-copilot"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Guide to Using VSCode Github Copilot with AGIPower","slug":"guide-to-using-vscode-github-copilot-with-agipower","depth":1,"children":[]},{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Quick Start","slug":"quick-start","depth":2,"children":[{"title":"Detailed Configuration Instructions","slug":"detailed-configuration-instructions","depth":3,"children":[]},{"title":"1. Version Requirements","slug":"1-version-requirements","depth":4,"children":[]},{"title":"2. Install AGIPower Copilot Extension","slug":"2-install-agipower-copilot-extension","depth":4,"children":[]},{"title":"3. Open Copilot Chat Interface","slug":"3-open-copilot-chat-interface","depth":4,"children":[]},{"title":"4. Manage and Configure Models","slug":"4-manage-and-configure-models","depth":4,"children":[]},{"title":"5. Configure API Key","slug":"5-configure-api-key","depth":4,"children":[]},{"title":"6. Select Available Models","slug":"6-select-available-models","depth":4,"children":[]},{"title":"7. Start Using","slug":"7-start-using","depth":4,"children":[]}]},{"title":"Keyboard Shortcuts","slug":"keyboard-shortcuts","depth":2,"children":[]},{"title":"Resource Links","slug":"resource-links","depth":2,"children":[]},{"title":"Changelog","slug":"changelog","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"lovmix","siteName":"AGIPower Docs","title":"Github copilot - AGIPower Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/best-practices/github-copilot","matchLevel":0},"zh-Hans":{"href":"/zh/best-practices/github-copilot","matchLevel":1}}},"lastModified":"2026-05-18T11:07:14.465Z","originalFileLocation":"en/best-practices/github-copilot.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"AGIPower Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lovmix/F-Iak7ziaePmgF-B/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/lovmix/F-Iak7ziaePmgF-B/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lovmix/F-Iak7ziaePmgF-B/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lovmix/F-Iak7ziaePmgF-B/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lovmix/F-Iak7ziaePmgF-B/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lovmix/F-Iak7ziaePmgF-B/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lovmix/F-Iak7ziaePmgF-B/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lovmix/F-Iak7ziaePmgF-B/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lovmix/F-Iak7ziaePmgF-B/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Github copilot - AGIPower Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AGIPower Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.agipower.ai/en/best-practices/github-copilot\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lovmix.mintlify.site/_mintlify/api/og/v2?division=Best+Practices\u0026amp;title=Github+copilot\u0026amp;theme=4c1b8b35936f93826616b632\u0026amp;signature=9acddf9141df2061fc43114cb718a9aa62189bb104a46baa966a7d8d17840219\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Github copilot - AGIPower Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lovmix.mintlify.site/_mintlify/api/og/v2?division=Best+Practices\u0026amp;title=Github+copilot\u0026amp;theme=4c1b8b35936f93826616b632\u0026amp;signature=9acddf9141df2061fc43114cb718a9aa62189bb104a46baa966a7d8d17840219\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/lovmix/F-Iak7ziaePmgF-B/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AGIPower Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#111827\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.agipower.ai/en/best-practices/github-copilot\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/best-practices/github-copilot.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.agipower.ai/en/best-practices/github-copilot\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://docs.agipower.ai/zh/best-practices/github-copilot\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.agipower.ai/en/best-practices/github-copilot\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.agipower.ai/#organization\",\"name\":\"AGIPower Docs\",\"url\":\"https://docs.agipower.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lovmix/W52qeMQ6FJqbguh4/logo-black.svg?fit=max\u0026auto=format\u0026n=W52qeMQ6FJqbguh4\u0026q=85\u0026s=7990fe3fbaeca03f15b8c63a644dfb71\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.agipower.ai#website\",\"name\":\"AGIPower Docs\",\"url\":\"https://docs.agipower.ai\",\"publisher\":{\"@id\":\"https://docs.agipower.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.agipower.ai/en/best-practices/github-copilot#webpage\",\"url\":\"https://docs.agipower.ai/en/best-practices/github-copilot\",\"name\":\"Github copilot\",\"dateModified\":\"2026-05-18T11:07:14.465Z\",\"isPartOf\":{\"@id\":\"https://docs.agipower.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.agipower.ai/en/best-practices/github-copilot#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.agipower.ai/en/best-practices/github-copilot#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Best Practices\",\"item\":\"https://docs.agipower.ai/en/best-practices/claude-code\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Github copilot\",\"item\":\"https://docs.agipower.ai/en/best-practices/github-copilot\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.agipower.ai/en/best-practices/github-copilot#article\",\"headline\":\"Github copilot\",\"name\":\"Github copilot\",\"url\":\"https://docs.agipower.ai/en/best-practices/github-copilot\",\"mainEntityOfPage\":{\"@id\":\"https://docs.agipower.ai/en/best-practices/github-copilot#webpage\"},\"dateModified\":\"2026-05-18T11:07:14.465Z\",\"publisher\":{\"@id\":\"https://docs.agipower.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.agipower.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AGIPower Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"AGIPower Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/best-practices/github-copilot.md","siteName":"AGIPower Docs","nav":{"global":null,"languages":[{"language":"en","default":true,"groups":[{"group":"About AGIPower","pages":[{"title":"About","href":"/en/about/intro"}]},{"group":"API Reference","icon":"route","pages":[{"group":"OpenAI Compatible API","pages":[{"title":"Create Chat Completion","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/chat/completions","href":"/api-reference/openai-compatible-api/create-chat-completion"},{"title":"Create a Model Response","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/responses","href":"/api-reference/openai-compatible-api/create-a-model-response"}]},{"group":"Files API","pages":[{"title":"Create a file","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/files","href":"/api-reference/files-api/create-a-file"},{"title":"List files","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/files","href":"/api-reference/files-api/list-files"},{"title":"Delete file","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/files/{file_id}","href":"/api-reference/files-api/delete-file"}]},{"group":"Images API","pages":[{"title":"Generate an image","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/images/generations","href":"/api-reference/images-api/generate-an-image"}]},{"group":"OpenRouter Compatible API","pages":[{"title":"Create Chat Completion","deprecated":null,"version":null,"openapi":"/openapi.json post /openrouter/v1/chat/completions","href":"/api-reference/openrouter-compatible-api/create-chat-completion"},{"title":"Create a Message","deprecated":null,"version":null,"openapi":"/openapi.json post /openrouter/v1/messages","href":"/api-reference/openrouter-compatible-api/create-a-message"},{"title":"Create a Response","deprecated":null,"version":null,"openapi":"/openapi.json post /openrouter/v1/responses","href":"/api-reference/openrouter-compatible-api/create-a-response"}]},{"group":"Anthropic Compatible API","pages":[{"title":"Create a Message","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/messages","href":"/api-reference/anthropic-compatible-api/create-a-message"}]},{"group":"Google Compatible API","pages":[{"title":"Generate Content","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/publishers/{provider}/models/{model}:generateContent","href":"/api-reference/google-vertex-ai-compatible-api/generate-content"}]},{"group":"Predictions API","pages":[{"title":"Create a prediction","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/predictions","href":"/api-reference/predictions-api/create-a-prediction"},{"title":"Get a prediction","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/predictions/{prediction_id}","href":"/api-reference/predictions-api/get-a-prediction"}]},{"group":"Platform API","pages":[{"title":"List Models","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/models","href":"/api-reference/models/list-models"},{"title":"Get Generation","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/management/generation","href":"/api-reference/platform-api/get-generation"},{"title":"Get PAYG Balance","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/management/payg/balance","href":"/api-reference/platform-api/get-payg-balance"}]}]},{"group":"Best Practices","icon":"computer","pages":[{"title":null,"href":"/en/best-practices/claude-code"},{"title":null,"href":"/en/best-practices/codex"},{"title":null,"href":"/en/best-practices/gemini-cli"},{"title":null,"href":"/en/best-practices/opencode"},{"title":null,"href":"/en/best-practices/cline"},{"title":null,"href":"/en/best-practices/cherry-studio"},{"title":null,"href":"/en/best-practices/obsidian"},{"title":null,"href":"/en/best-practices/sider"},{"title":null,"href":"/en/best-practices/open-webui"},{"title":null,"href":"/en/best-practices/dify"},{"title":null,"description":null,"href":"/en/best-practices/neovate-code"},{"title":null,"href":"/en/best-practices/github-copilot"},{"title":null,"description":null,"href":"/en/best-practices/openclaw"},{"title":null,"href":"/en/best-practices/openclaw-alibaba"},{"title":null,"href":"/en/best-practices/cc-switch"},{"title":null,"href":"/en/best-practices/cursor"},{"title":null,"href":"/en/best-practices/rikkahub"}]},{"group":"Help Center","icon":"magnifying-glass","pages":[{"title":null,"href":"/en/privacy"},{"title":null,"href":"/en/terms-of-service"},{"title":null,"href":"/en/help/contact"}]}]},{"language":"zh-Hans","pages":[{"title":"zh-Hans","href":"/zh/about/intro"}]}]},"basePath":"","title":"Github copilot - AGIPower Docs","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-C5F0mVLH.js","lightbox-handle-r17bVUz3.js"]}