翻篇收录说明
翻篇网页快照

Manage AI settings in enterprise environments

https://code.visualstudio.com/docs/enterprise/manage-ai-settings

最近抓取:2026-12-04 07:18:32(北京时间)

最近内容变化:2026-12-04 07:18:32(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Manage enterprise AI controls that affect VS Code and Copilot.

正文摘录

Manage AI settings in enterprise environments Copy as Markdown Copy as Markdown View as Markdown Ask in VS Code Ask in VS Code Insiders As an IT or Copilot admin, choose where to manage AI access, tools, and execution in VS Code, then verify the controls in the clients and environments your developers use. You can use Copilot enterprise-managed settings, VS Code device policies, and GitHub organization or enterprise settings. These solutions control different layers of the AI experience. Configure an overlapping control in only one system when possible. Start with an admin task Plan an AI rollout: Choose a management solution and verify the workflow and controls. Restrict access: Review approved accounts, harness selection, and GitHub service-side controls. Govern agent tools and customizations: Configure tool approvals and permission rules, MCP server access, or plugins and marketplaces. Constrain agent execution: Review sandboxing and network filtering on the execution host. Configure models and data handling: Set managed model defaults, review dictation data, or configure managed OpenTelemetry. Resolve an unexpected restriction or policy result: Follow administrator troubleshooting. If you're a developer rather than an administrator, start with the AI troubleshooting guidance. Choose a management solution Choose the solution for each control based on its scope. An organization can use all three solutions. Control you need Where to manage it Consistent Copilot guardrails across supported clients and keys. Use enterprise-managed settings with GitHub-supported server, MDM, or file delivery. An editor-specific control on managed VS Code installations. Use VS Code device policies through operating system or device management tools. Copilot access, model availability, or GitHub-hosted organization behavior. Use GitHub organization and enterprise settings for account-level and service-side controls. Some controls are available through more than one solution. Review the order of precedence before you combine them. Understand the three management solutions Before you choose a solution, understand where each one is configured, what it controls, and which agent harness enforces it: Copilot enterprise-managed runtime controls, such as permissions.* rule lists and sandbox, are enforced by the Copilot harness (Agent Host). They are not enforced by the deprecated Local harness The Local harness is deprecated and will be removed in February 2027. Move your workflows to the Copilot harness before then. Learn more about Local harness deprecation. , Claude, or Codex. VS Code device policies apply at the editor layer and can behave differently across harnesses. GitHub organization and enterprise settings are complementary service-side controls that govern the signed-in account and GitHub-hosted features rather than client or device configuration. Copilot enterprise-managed settings Use enterprise-managed settings for Copilot guardrails that should apply across supported clients, such as VS Code, Copilot CLI, GitHub Copilot app, and other supported clients. Administrators can deliver these settings in three ways: Server-managed: Store copilot/managed-settings.json in your enterprise's .github-private repository on GitHub. GitHub delivers the settings automatically to signed-in enterprise members. MDM-managed: Deploy individual keys to Windows or macOS devices through your MDM platform. Even when you use MDM, these settings use the Copilot format and policy path, not the VS Code device-policy namespace. File-based: Place a local managed-settings.json file directly on each machine, such as on Linux or in containers. Server-managed deployments also support overrides for specific enterprise teams. To customize a supported setting for a team, you mark the key as overridable with an enterprise default in copilot/managed-settings.json, then map one or more enterprise teams to separate override files. GitHub resolves the effective settings based on each person's enterprise team membership, and anyone outside a mapped team receives the enterprise default. Some keys, such as model and fusionTier, accept "unmanaged" to leave non-members unaffected, while list keys such as permissions.allow, permissions.ask, and permissions.deny do not. See Override enterprise-managed settings for teams. Refer to the enterprise-managed settings setup guide and settings reference in the GitHub documentation for supported keys, client coverage, configuration schemas, and precedence. Not every enterprise-managed setting applies to every client. Before you configure a key for VS Code, check the Supported clients column in the enterprise-managed settings reference. VS Code device policies Use device policies to enforce specific VS Code settings on managed installations. Each policy maps to a VS Code setting and overrides any default, user, or workspace value so developers cannot change it. Administrators deploy these policies at the device level through platform management tools, such as Group Policy, Microsoft Intune, macOS configuration profiles, or Linux JSON policy files. Important Copilot harness sessions don't enforce every device policy the same way as Local harness The Local harness is deprecated and will be removed in February 2027. Move your workflows to the Copilot harness before then. Learn more about Local harness deprecation. sessions. The task sections below note known differences. Test a policy in the harness that your developers use before you rely on it. Refer to enterprise policy deployment for platform-specific setup and the policy reference. GitHub organization and enterprise settings Use GitHub organization and enterprise settings for account-level and service-side controls, such as Copilot access, model availability, preview feature eligibility, content exclusions, MCP registry policies, and organization-provided customizations. These controls complement enterprise-managed settings and VS Code device policies rather than duplicating them. Administrators configure them on GitHub, and they follow the signed-in GitHub account and its organization or enterprise membership. Service-side restrictions apply alongside client and device policies: for example, disabling a model or turning off Editor preview features on GitHub prevents developers from using that model or feature even if client policies permit it. In particular, turning off Editor preview features forces chat.customizations.marketplace.enabled Open in VS Code Open in VS Code Insiders and chat.customizations.copilotConnectors.enabled Open in VS Code Open in VS Code Insiders off, even though both default to true. Developers can't override this restriction in Settings. Other eligibility requirements and managed restrictions still apply when preview features are permitted. Refer to Manage Copilot for your enterprise for configuration and reference information about these controls. Understand precedence Precedence applies at two levels: across the three management solutions, and across delivery methods within Copilot enterprise-managed settings. Configure an overlapping control in one system when possible, and run Developer: Policy Diagnostics to inspect the effective value and its source. Across management solutions When more than one management solution applies, controls layer in this order (highest precedence first): GitHub organization and enterprise settings: Act as a service-side boundary. If GitHub disables Copilot access, a model, or Editor preview features, client and device policies cannot re-enable it. As an exception for editor-managed MCP servers, a managed allowedMcpServers allowlist takes precedence over a registry-only policy (see Managed MCP allowlists and registry precedence). Copilot enterprise-managed settings: Take precedence over VS Code device policies when both configure the same control, without merging values. VS Code device policies: Apply when enterprise-managed settings do not configure that control. User and workspace settings: Apply when no policy or managed setting governs the control. If two systems configure different controls, both controls apply. Across managed-settings delivery methods Within Copilot enterprise-managed settings, when the same key is delivered through more than one method, VS Code applies them in this order (highest precedence first): MDM-managed settings. Server-managed settings (after GitHub resolves any enterprise team overrides). File-based settings (managed-settings.json on the device). For most keys, the value from the highest-precedence source wins. Some keys, including permissions.deny, permissions.ask, permissions.allow, sandbox, and strictPluginOnlyCustomization, combine restrictions from multiple sources in the most restrictive direction. See Precedence of deployment methods for the complete and current rules. Control access and feature availability Restrict AI features to approved GitHub organizations Configured with: VS Code device policies Set the ChatApprovedAccountOrganizations device policy to require developers to sign in with a GitHub account that belongs to an approved organization before AI features are activated. Provide a JSON array of GitHub organization logins, or use ["*"] to allow any signed-in GitHub account. For example, in a Linux policy.json file (or with the same policy name and JSON array value in Windows Group Policy or a macOS configuration profile): { "ChatApprovedAccountOrganizations": ["contoso", "contoso-research"] } The policy is fail-closed. AI features remain disabled until account policy data resolves and the signed-in account belongs to an approved organization. Run Developer: Policy Diagnostics to inspect the Account Policy Gate state. Meet minimum VS Code version requirements Configured with: Copilot enterprise-managed settings The managed-settings service can require a minimum VS Code version before AI features are available. When the installed version does not meet the requirement: Chat s