{"meta":{"title":"Administering Copilot CLI for your enterprise","intro":"Control the use of Copilot CLI within your enterprise.","product":"GitHub Copilot","breadcrumbs":[{"href":"/en/enterprise-cloud@latest/copilot","title":"GitHub Copilot"},{"href":"/en/enterprise-cloud@latest/copilot/how-tos","title":"How-tos"},{"href":"/en/enterprise-cloud@latest/copilot/how-tos/copilot-cli","title":"Copilot CLI"},{"href":"/en/enterprise-cloud@latest/copilot/how-tos/copilot-cli/administer-copilot-cli-for-your-enterprise","title":"Administer for enterprise"}],"documentType":"article"},"body":"# Administering Copilot CLI for your enterprise\n\nControl the use of Copilot CLI within your enterprise.\n\nCopilot CLI brings agentic capabilities to developers' command line. When Copilot CLI is enabled, developers can use it to ask Copilot to work on tasks locally or delegate work to Copilot cloud agent.\n\n## Enabling or disabling Copilot CLI\n\nYou can control the use of Copilot CLI by configuring a policy.\n\n1. Navigate to your enterprise. For example, from the [Enterprises](https://github.com/settings/enterprises?ref_product=ghec\\&ref_type=engagement\\&ref_style=text) page on GitHub.com.\n2. At the top of the page, click **<svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-copilot\" aria-label=\"copilot\" role=\"img\"><path d=\"M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z\"></path><path d=\"M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z\"></path></svg> AI controls**.\n3. To manage policies for **Copilot**, in the sidebar, click <svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-copilot\" aria-label=\"copilot\" role=\"img\"><path d=\"M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z\"></path><path d=\"M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z\"></path></svg> **Copilot**.\n4. Under \"Features & clients,\" click **Configure features & clients**.\n5. In the \"Clients\" section, for Copilot CLI, select your preferred policy.\n\n> \\[!NOTE]\n> Disabling Copilot CLI does not disable the GitHub Copilot app. The app is governed by its own policy. For more information, see [About the GitHub Copilot app](/en/enterprise-cloud@latest/copilot/concepts/agents/github-copilot-app).\n\n## How do other AI controls affect Copilot CLI?\n\nNot all enterprise-level AI controls and policies apply to Copilot CLI. These are the controls that **do apply**:\n\n### Copilot CLI enablement\n\nYou can enable or disable Copilot CLI at the enterprise or organization level.\n\n### Model selection\n\nUsers can only access AI models that are enabled at the enterprise level. When you enable or disable models in your enterprise settings, those changes are reflected in Copilot CLI. Users can view which models are available to them using the `/model` command.\n\nEnterprise and organization owners can provide keys for custom models. Users can select these like any other model: with the Copilot CLI model selector, the `--model` flag, or environment variables. See [Enabling custom models for GitHub Copilot in your enterprise](/en/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/enable-custom-models).\n\nSeparately, users can also provide their own LLM keys locally. This is not controlled by enterprise policies. See [Using your own LLM models in GitHub Copilot CLI](/en/enterprise-cloud@latest/copilot/how-tos/copilot-cli/customize-copilot/use-byok-models).\n\n### Custom agents\n\nEnterprise-configured custom agents are available to use with Copilot CLI.\n\n### Content exclusion\n\nContent exclusion policies configured at the enterprise, organization, and repository levels apply to Copilot CLI. Excluded files are not used as context. For more information, see [Content exclusion for GitHub Copilot](/en/enterprise-cloud@latest/copilot/concepts/context/content-exclusion).\n\n### MCP server policies\n\nEnterprise and organization MCP policies apply to Copilot CLI. You can configure an MCP registry URL so developers can discover approved servers, and set an allowlist policy to restrict which MCP servers can run. For more information, see [Restrict MCP server access to a custom registry](/en/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-mcp-usage/restrict-based-on-registry).\n\n### Copilot cloud agent enablement\n\nBoth the Copilot CLI policy and the Copilot cloud agent policy must be enabled for users to be able to use the `/delegate` command in Copilot CLI.\n\n### Audit logging\n\nUpdates to enterprise policies that affect Copilot CLI are recorded as events in the enterprise audit log.\n\n### Seat assignment\n\nUsers must have an assigned GitHub Copilot seat to access Copilot CLI.\n\n### Controls that do not apply\n\nAll other controls do **not** affect Copilot CLI, notably:\n\n* **IDE-specific policies**: Policies configured for specific IDEs or editor extensions\n\n## Why can't my developers access Copilot CLI?\n\nIf you expect a user to have access to Copilot CLI and they don't:\n\n1. Ensure the user has a valid GitHub Copilot seat assignment from an organization in your enterprise.\n2. Verify the **enterprise-level policy.** If you set the policy to \"Enabled everywhere\" or \"Disabled everywhere,\" this overrides all organization-level settings.\n3. If the enterprise policy is set to \"Let organizations decide,\" check the organizations where the user receives their GitHub Copilot license. Copilot CLI must be enabled in **at least one** of the organization granting them a GitHub Copilot license.\n\nOne way to ensure consistent access across all organizations is to set the policy to **Enabled everywhere** at the enterprise level.\n\n## Further reading\n\n* [Best practices for GitHub Copilot CLI](/en/enterprise-cloud@latest/copilot/how-tos/copilot-cli/cli-best-practices)"}