[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-71802":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},71802,"copilot-cli","github\u002Fcopilot-cli","github","GitHub Copilot CLI brings the power of Copilot coding agent directly to your terminal. ","",null,"Shell",10758,1607,210,1647,0,38,99,325,114,44.62,"Other",false,"main",true,[],"2026-06-12 02:02:54","# GitHub Copilot CLI\n\nThe power of GitHub Copilot, now in your terminal.\n\nGitHub Copilot CLI brings AI-powered coding assistance directly to your command line, enabling you to build, debug, and understand code through natural language conversations. Powered by the same agentic harness as GitHub's Copilot coding agent, it provides intelligent assistance while staying deeply integrated with your GitHub workflow.\n\nSee [our official documentation](https:\u002F\u002Fdocs.github.com\u002Fcopilot\u002Fconcepts\u002Fagents\u002Fabout-copilot-cli) for more information.\n\n![Image of the splash screen for the Copilot CLI](https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Ff40aa23d-09dd-499e-9457-1d57d3368887)\n\n\n## 🚀 Introduction and Overview\n\nWe're bringing the power of GitHub Copilot coding agent directly to your terminal. With GitHub Copilot CLI, you can work locally and synchronously with an AI agent that understands your code and GitHub context.\n\n- **Terminal-native development:** Work with Copilot coding agent directly in your command line — no context switching required.\n- **GitHub integration out of the box:** Access your repositories, issues, and pull requests using natural language, all authenticated with your existing GitHub account.\n- **Agentic capabilities:** Build, edit, debug, and refactor code with an AI collaborator that can plan and execute complex tasks.\n- **MCP-powered extensibility:** Take advantage of the fact that the coding agent ships with GitHub's MCP server by default and supports custom MCP servers to extend capabilities.\n- **Full control:** Preview every action before execution — nothing happens without your explicit approval.\n\nWe're still early in our journey, but with your feedback, we're rapidly iterating to make the GitHub Copilot CLI the best possible companion in your terminal.\n\n## 📦 Getting Started\n\n### Supported Platforms\n\n- **Linux**\n- **macOS**\n- **Windows**\n\n### Prerequisites\n\n- (On Windows) **PowerShell** v6 or higher\n- An **active Copilot subscription**. See [Copilot plans](https:\u002F\u002Fgithub.com\u002Ffeatures\u002Fcopilot\u002Fplans?ref_cta=Copilot+plans+signup&ref_loc=install-copilot-cli&ref_page=docs).\n\nIf you have access to GitHub Copilot via your organization or enterprise, you cannot use GitHub Copilot CLI if your organization owner or enterprise administrator has disabled it in the organization or enterprise settings. See [Managing policies and features for GitHub Copilot in your organization](http:\u002F\u002Fdocs.github.com\u002Fcopilot\u002Fmanaging-copilot\u002Fmanaging-github-copilot-in-your-organization\u002Fmanaging-github-copilot-features-in-your-organization\u002Fmanaging-policies-for-copilot-in-your-organization) for more information.\n\n### Installation\n\nInstall with the install script (macOS and Linux):\n\n```bash\ncurl -fsSL https:\u002F\u002Fgh.io\u002Fcopilot-install | bash\n```\n\nOr\n\n```bash\nwget -qO- https:\u002F\u002Fgh.io\u002Fcopilot-install | bash\n```\n\nUse `| sudo bash` to run as root and install to `\u002Fusr\u002Flocal\u002Fbin`.\n\nSet `PREFIX` to install to `$PREFIX\u002Fbin\u002F` directory. Defaults to `\u002Fusr\u002Flocal`\nwhen run as root or `$HOME\u002F.local` when run as a non-root user.\n\nSet `VERSION` to install a specific version. Defaults to the latest version.\n\nFor example, to install version `v0.0.369` to a custom directory:\n\n```bash\ncurl -fsSL https:\u002F\u002Fgh.io\u002Fcopilot-install | VERSION=\"v0.0.369\" PREFIX=\"$HOME\u002Fcustom\" bash\n```\n\nInstall with [Homebrew](https:\u002F\u002Fformulae.brew.sh\u002Fcask\u002Fcopilot-cli) (macOS and Linux):\n\n```bash\nbrew install copilot-cli\n```\n\n```bash\nbrew install copilot-cli@prerelease\n```\n\n\nInstall with [WinGet](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwinget-cli) (Windows):\n\n```bash\nwinget install GitHub.Copilot\n```\n\n```bash\nwinget install GitHub.Copilot.Prerelease\n```\n\n\nInstall with [npm](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@github\u002Fcopilot) (macOS, Linux, and Windows):\n\n```bash\nnpm install -g @github\u002Fcopilot\n```\n\n```bash\nnpm install -g @github\u002Fcopilot@prerelease\n```\n\n\n### Launching the CLI\n\n```bash\ncopilot\n```\n\nOn first launch, you'll be greeted with our adorable animated banner! If you'd like to see this banner again, launch `copilot` with the `--banner` flag.\n\nIf you're not currently logged in to GitHub, you'll be prompted to use the `\u002Flogin` slash command. Enter this command and follow the on-screen instructions to authenticate.\n\n#### Authenticate with a Personal Access Token (PAT)\n\nYou can also authenticate using a fine-grained PAT with the \"Copilot Requests\" permission enabled.\n\n1. Visit https:\u002F\u002Fgithub.com\u002Fsettings\u002Fpersonal-access-tokens\u002Fnew\n2. Under \"Permissions,\" click \"add permissions\" and select \"Copilot Requests\"\n3. Generate your token\n4. Add the token to your environment via the environment variable `GH_TOKEN` or `GITHUB_TOKEN` (in order of precedence)\n\n### Using the CLI\n\nLaunch `copilot` in a folder that contains code you want to work with.\n\nBy default, `copilot` utilizes Claude Sonnet 4.5. Run the `\u002Fmodel` slash command to choose from other available models, including Claude Sonnet 4 and GPT-5.\n\n### Experimental Mode\n\nExperimental mode enables access to new features that are still in development. You can activate experimental mode by:\n\n- Launching with the `--experimental` flag: `copilot --experimental`\n- Using the `\u002Fexperimental` slash command from within the CLI\n\nOnce activated, the setting is persisted in your config, so the `--experimental` flag is no longer needed on subsequent launches.\n\n#### Experimental Features\n\n- **Autopilot mode:** Autopilot is a new mode (press `Shift+Tab` to cycle through modes), which encourages the agent to continue working until a task is completed.\n\nEach time you submit a prompt to GitHub Copilot CLI, your monthly quota of premium requests is reduced by one. For information about premium requests, see [About premium requests](https:\u002F\u002Fdocs.github.com\u002Fcopilot\u002Fmanaging-copilot\u002Fmonitoring-usage-and-entitlements\u002Fabout-premium-requests).\n\nFor more information about how to use the GitHub Copilot CLI, see [our official documentation](https:\u002F\u002Fdocs.github.com\u002Fcopilot\u002Fconcepts\u002Fagents\u002Fabout-copilot-cli).\n\n## 🔧 Configuring LSP Servers\n\nGitHub Copilot CLI supports Language Server Protocol (LSP) for enhanced code intelligence. This feature provides intelligent code features like go-to-definition, hover information, and diagnostics.\n\n### Installing Language Servers\n\nCopilot CLI does not bundle LSP servers. You need to install them separately. For example, to set up TypeScript support:\n\n```bash\nnpm install -g typescript-language-server\n```\n\nFor other languages, install the corresponding LSP server and configure it following the same pattern shown below.\n\n### Configuring LSP Servers\n\nLSP servers are configured through a dedicated LSP configuration file. You can configure LSP servers at the user level or repository level:\n\n**User-level configuration** (applies to all projects):\nEdit `~\u002F.copilot\u002Flsp-config.json`\n\n**Repository-level configuration** (applies to specific project):\nCreate `.github\u002Flsp.json` in your repository root\n\nExample configuration:\n\n```json\n{\n  \"lspServers\": {\n    \"typescript\": {\n      \"command\": \"typescript-language-server\",\n      \"args\": [\"--stdio\"],\n      \"fileExtensions\": {\n        \".ts\": \"typescript\",\n        \".tsx\": \"typescript\"\n      }\n    }\n  }\n}\n```\n\n### Viewing LSP Server Status\n\nCheck configured LSP servers using the `\u002Flsp` command in an interactive session, or view your configuration files directly.\n\nFor more information, see the [changelog](.\u002Fchangelog.md).\n\n## 📢 Feedback and Participation\n\nWe're excited to have you join us early in the Copilot CLI journey.\n\nWe're building quickly. Expect frequent updates--please keep your client up to date for the latest features and fixes!\n\nYour insights are invaluable! Open an issue in this repo, join Discussions, and run `\u002Ffeedback` from the CLI to submit a confidential feedback survey!\n","GitHub Copilot CLI 是一个将 GitHub Copilot 编码助手直接引入终端的工具。它通过自然语言对话提供代码构建、调试和理解的智能辅助，同时与用户的 GitHub 工作流深度集成。该项目支持在命令行中直接与 AI 代理协作，无需切换上下文，并且能够访问仓库、问题和拉取请求等资源。此外，它还具备执行复杂任务的能力，支持自定义扩展，并确保用户对每个操作都有完全控制权。适用于需要在终端环境中高效编写和管理代码的开发者。",2,"2026-06-11 03:38:48","high_star"]