Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,21 @@ category:

You can also use the `gh es` {% data variables.product.prodname_cli %} extension to manage the root site administrator password, which controls access to the Management Console. For more information, see the [GH ES CLI usage documentation](https://github.com/github/gh-es/blob/main/USAGE.md#gh-es-access-set-password) and [AUTOTITLE](/admin/administering-your-instance/administering-your-instance-from-the-command-line/administering-your-instance-using-the-github-cli).

## Types of {% data variables.enterprise.management_console %} accounts

There are two types of user accounts for the {% data variables.enterprise.management_console %} on a {% data variables.product.prodname_ghe_server %} instance. The root site administrator account authenticates with a password established during the initial setup of {% data variables.location.product_location %}.
## Root site administrator

The root site administrator can create additional accounts.
The root site administrator account authenticates with a password established during the initial setup of {% data variables.location.product_location %}.
The root site administrator password should be used for initial setup and recovery only, along with creating the first {% data variables.enterprise.management_console %} user account. Day-to-day administration should be performed with named {% data variables.enterprise.management_console %} accounts for proper attribution.

### Root site administrator
## {% data variables.enterprise.management_console %} user

Root site administrators have complete control over the {% data variables.enterprise.management_console %}. They can take every action in the {% data variables.enterprise.management_console %}, including creating and deleting {% data variables.enterprise.management_console %} user accounts.
{% data variables.enterprise.management_console %} users can perform all administrative tasks for {% data variables.location.product_location %} including the creation or deletion of {% data variables.enterprise.management_console %} user accounts.

Only the root site administrator can create and delete {% data variables.enterprise.management_console %} user accounts.

### {% data variables.enterprise.management_console %} user

{% data variables.enterprise.management_console %} users can perform most administrative tasks for {% data variables.location.product_location %}. For heightened security, {% data variables.enterprise.management_console %} users cannot create or delete {% data variables.enterprise.management_console %} user accounts.

{% data variables.enterprise.management_console %} users, sometimes called operators, can perform basic administrative tasks for {% data variables.location.product_location %} in the {% data variables.enterprise.management_console %} and can add SSH keys to the {% data variables.enterprise.management_console %} to grant administrative access to the instance via SSH.
These users, sometimes called operators, can also add SSH keys to the {% data variables.enterprise.management_console %} to grant administrative access to the instance via SSH.

## Creating or deleting a user account for the {% data variables.enterprise.management_console %}

While signed into the {% data variables.enterprise.management_console %} as the root site administrator, you can create new {% data variables.enterprise.management_console %} user accounts.
While signed into the {% data variables.enterprise.management_console %}, you can create new {% data variables.enterprise.management_console %} user accounts.

{% data reusables.enterprise_site_admin_settings.click-user-management %}
1. Click **Create user**.
Expand All @@ -49,7 +43,6 @@ If you have configured email for notifications for {% data variables.location.pr

If you have not configured email notifications for {% data variables.location.product_location %}, you must manually copy the {% data variables.enterprise.management_console %} invitation link and send it to the user. The user must set a password using the link before the user can access the {% data variables.enterprise.management_console %}.

{% data reusables.enterprise_site_admin_settings.sign-in-as-root-administrator %}
{% data reusables.enterprise_site_admin_settings.click-user-management %}
1. To copy the invitation link, click {% octicon "link" aria-label="Copy invitation link" %} on any {% data variables.enterprise.management_console %} user account.
1. Send the invitation link to the {% data variables.enterprise.management_console %} user. The invitation link will lead the user through the final account setup steps.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Policy state | Outcome
------------ | --------
**Enabled** | Any model labeled **Delegate to Default Policy** is automatically enabled for all your {% data variables.product.prodname_copilot_short %} users, and organizations or teams cannot disable it.
**Disabled** | Any model labeled **Delegate to Default Policy** is automatically disabled for all your {% data variables.product.prodname_copilot_short %} users, and organizations or teams cannot enable it.
**Let organizations decide** | (Not available in enterprise teams mode.) Any model labeled **Delegate to Default Policy** is automatically available for organizations to enable or disable. In each organization, an eligible model follows the organization-level **Default availability for released models** policy if the organization has not explicitly configured it.
**Let organizations decide** | (Not available in enterprise teams mode.) An eligible model labeled **Delegate to Default Policy** at the enterprise level follows the organization-level **Default availability for released models** policy. Organization owners cannot configure that model individually unless the enterprise owner changes the model's status to **Delegate to organizations**.

#### Policy states for models

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ You can combine BYOK or Microsoft Entra authentication with {% data variables.pr

### Offline mode

If you set the `COPILOT_OFFLINE` environment variable to `true`, {% data variables.copilot.copilot_cli_short %} runs without contacting {% data variables.product.github %}'s servers. In offline mode:
If you set the `COPILOT_OFFLINE` environment variable to `true`, {% data variables.copilot.copilot_cli_short %} runs in offline mode:

* No {% data variables.product.github %} authentication is attempted.
* The CLI only makes network requests to your configured BYOK provider.
* Telemetry is fully disabled.
* Model requests use your configured provider.
* First-party client-side telemetry is disabled. OpenTelemetry exports configured by you or your enterprise can still be sent.

Offline mode is **only fully air-gapped** if your BYOK provider is local or otherwise within the same isolated environment (for example, a model running on-premises with no external network access). If `COPILOT_PROVIDER_BASE_URL` points to a remote or internet-accessible endpoint, prompts and code context will still be sent over the network to that provider. Without offline mode, even when using BYOK without {% data variables.product.github %} authentication, telemetry is still sent normally.
Offline mode does not enforce network isolation. For an air-gapped setup, your model provider and any configured MCP servers, telemetry exporters, and shell commands must remain within the isolated environment. If `COPILOT_PROVIDER_BASE_URL` points to a remote or internet-accessible endpoint, prompts and code context will still be sent over the network to that provider. Without offline mode, even when using BYOK without {% data variables.product.github %} authentication, telemetry is still sent normally.

### Supported token types

Expand All @@ -70,7 +70,7 @@ By default, the CLI stores your OAuth token in your operating system's keychain
| Windows | Credential Manager |
| Linux | libsecret (GNOME Keyring, KWallet) |

If the system keychain is unavailable—for example, on a headless Linux server without `libsecret` installed—the CLI prompts you to store the token in a plaintext configuration file at `~/.copilot/config.json`.
If the system keychain is unavailable—for example, on a headless Linux server without `libsecret` installed—the CLI prompts you to store the token in a plaintext configuration file, by default at `~/.copilot/config.json`.

When you run a command, {% data variables.copilot.copilot_cli_short %} checks for credentials in the following order:

Expand All @@ -81,7 +81,7 @@ When you run a command, {% data variables.copilot.copilot_cli_short %} checks fo
1. GitHub CLI (`gh auth token`) fallback

> [!NOTE]
> * An environment variable silently overrides a stored OAuth token. If you set `GH_TOKEN` for another tool, the CLI uses that token instead of the OAuth token from `copilot login`. To avoid unexpected behavior, unset environment variables you do not intend the CLI to use. There is one exception: in {% data variables.product.prodname_github_codespaces %}, the `GITHUB_TOKEN` that is injected automatically does not take precedence over an account you signed in with using `/login`. A `GITHUB_TOKEN`, `COPILOT_GITHUB_TOKEN`, or `GH_TOKEN` that you export explicitly still does.
> * An environment variable silently overrides a stored OAuth token. If you set `GH_TOKEN` for another tool, the CLI uses that token instead of the OAuth token from `copilot login`. To avoid unexpected behavior, unset environment variables you do not intend the CLI to use. There is one exception: in {% data variables.product.prodname_github_codespaces %}, when `GITHUB_TOKEN` has a `ghu_` or `ghs_` prefix and neither `COPILOT_GITHUB_TOKEN` nor `GH_TOKEN` has a nonempty value, a stored `/login` account takes precedence. This applies even if you set `GITHUB_TOKEN` yourself.
> * When you configure BYOK provider environment variables (for example, `COPILOT_PROVIDER_BASE_URL`, `COPILOT_PROVIDER_API_KEY`), {% data variables.copilot.copilot_cli_short %} uses these for AI model requests regardless of your {% data variables.product.github %} authentication status. {% data variables.product.github %} tokens are only needed for {% data variables.product.github %}-hosted features.

## Authenticating with OAuth
Expand All @@ -96,7 +96,7 @@ OAuth is the default authentication method for interactive use. You can authenti
/login
```

1. Select the account you want to authenticate with. For {% data variables.product.prodname_ghe_cloud %} with data residency, enter the hostname of your instance. If you select **Your organization (Microsoft Entra)**, {% data variables.copilot.copilot_cli_short %} automatically signs you in with your existing Microsoft Entra account.
1. Select the account you want to authenticate with. For {% data variables.product.prodname_ghe_cloud %} with data residency, enter the hostname of your instance when prompted. If you select **Your organization (Microsoft Entra)**, follow the prompts to sign in, then skip the remaining steps.

```text
What account do you want to log into?
Expand Down Expand Up @@ -125,7 +125,7 @@ OAuth is the default authentication method for interactive use. You can authenti
Press any key to copy to clipboard and open browser...
```

Navigate to the verification URL at `https://github.com/login/device` if your browser did not open automatically, then paste the one-time code in the field on the page.
Navigate to the verification URL displayed in the CLI if your browser did not open automatically, then paste the one-time code in the field on the page.

1. If your organization uses SAML SSO, click **Authorize** next to each organization you want to grant access to.
1. Review the requested permissions and click **Authorize GitHub Copilot CLI**.
Expand Down Expand Up @@ -202,7 +202,7 @@ Your Microsoft Entra tenant must use OIDC to connect to {% data variables.produc
### Signing in with your organization

1. Run `/login` in {% data variables.copilot.copilot_cli_short %}.
1. Select **Your organization (Microsoft Entra)**. {% data variables.copilot.copilot_cli_short %} automatically signs you in with your existing Microsoft Entra account.
1. Select **Your organization (Microsoft Entra)** and follow the prompts to select an account or sign in.

After you sign in, models permitted by your entitlements appear in the `/model` picker. For more information on how this works with Microsoft 365 Copilot, see [AUTOTITLE](/copilot/concepts/copilot-surfaces/copilot-cli#using-microsoft-365-copilot-models).

Expand Down Expand Up @@ -241,7 +241,7 @@ To add another account, run `copilot login` from a new terminal session, or run

## Signing out and removing credentials

To sign out, type `/logout` at the {% data variables.copilot.copilot_cli_short %} prompt. This removes the locally stored token but does not revoke it on {% data variables.product.github %}.
To sign out of an account you added with `/login` or `copilot login`, type `/logout` at the {% data variables.copilot.copilot_cli_short %} prompt. This removes the locally stored token but does not revoke it on {% data variables.product.github %}. The command does not remove environment-variable tokens or sign out of {% data variables.product.prodname_cli %}. These credential sources can be configured at the same time, so signing out of one may leave another available when you restart the CLI. To stop the CLI from using those sources, exit the CLI, unset every configured `COPILOT_GITHUB_TOKEN`, `GH_TOKEN`, or `GITHUB_TOKEN` environment variable, and run `gh auth logout` if you also use a {% data variables.product.prodname_cli %} account.

To revoke the OAuth app authorization on {% data variables.product.github %} and prevent it from being used elsewhere, follow these steps.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@ In manual approval mode, {% data variables.product.prodname_copilot_short %} ask
Create a new file called README.md with a project description
```

1. If the tool is not already allowed, choose from the approval options:
1. If the tool is not already allowed, choose from the available approval options:

* `1. Yes`
* `Yes`

Choose this option to allow {% data variables.product.prodname_copilot_short %} to run this particular command, this time only. The next time it needs to use this tool, it will ask you again.

* `2. Yes, and approve TOOL for the rest of the running session`
* `Yes, and don't ask again ...`

Choose this option to allow {% data variables.product.prodname_copilot_short %} to use this tool for the duration of the currently running session. It will ask for your approval again in new sessions, or if you resume the current session in the future. If you choose this option, you are allowing {% data variables.product.prodname_copilot_short %} to use this tool in any way it thinks is appropriate.
Choose this option to allow the specified commands, MCP tool, or file operations in the current repository or directory without asking again, including in future sessions. Depending on the request, you may instead see an option to approve the tool for the rest of the running session.

For example, if {% data variables.product.prodname_copilot_short %} asks you to allow it to run the command `rm ./this-file.txt`, and you choose option 2, then {% data variables.product.prodname_copilot_short %} can run any `rm` command (for example, `rm -rf ./*`) during the current run of this session, without asking for your approval.
For example, if {% data variables.product.prodname_copilot_short %} asks you to allow it to run the command `rm ./this-file.txt`, and you approve `rm` for the repository, then {% data variables.product.prodname_copilot_short %} can run any `rm` command (for example, `rm -rf ./*`) while working in that repository, without asking for your approval.

* `3. No, and tell Copilot what to do differently (Esc)`
* `No, and tell Copilot what to do differently (Esc)`

Choose this option to cancel the proposed command and instruct {% data variables.product.prodname_copilot_short %} to try a different approach.

Expand Down Expand Up @@ -169,7 +169,7 @@ Use `'write'` to allow or deny tools—other than shell commands—permission to

#### Allowing or denying MCP server tools

Use `'MCP_SERVER_NAME'` to allow or deny a specific tool from the specified MCP server.
Use `'MCP_SERVER_NAME(TOOL_NAME)'` to allow or deny a specific tool from the specified MCP server.

* For example, to prevent {% data variables.product.prodname_copilot_short %} from using the tool called `tool_name` from the MCP server called `My-MCP-Server`, use:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ To find out about {% data variables.copilot.copilot_cli_short %} before you inst

## Prerequisites

* **An active {% data variables.product.prodname_copilot %} subscription**. See [{% data variables.product.prodname_copilot_short %} plans](https://github.com/features/copilot/plans?ref_product=copilot&ref_type=engagement&ref_style=text&utm_source=docs-article-installing-cli-plans&utm_medium=docs&utm_campaign=ignite-nov-2026).
* (On Windows) **PowerShell** v6 or higher
* **An active {% data variables.product.prodname_copilot %} subscription**, unless you use your own model provider or sign in with an eligible Microsoft Entra account. Your model provider may charge separately for usage. Microsoft Entra sign-in is currently supported only on Windows and macOS. For account requirements, see [AUTOTITLE](/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli).
* (On Windows) **PowerShell**. {% data variables.copilot.copilot_cli_short %} can also use Windows PowerShell 5.1.

If you have access to {% data variables.product.prodname_copilot %} via your organization or enterprise, you cannot use {% data variables.copilot.copilot_cli_short %} if your organization owner or enterprise administrator has disabled it in the organization or enterprise settings. See [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-organization/manage-policies).

Expand Down Expand Up @@ -113,7 +113,7 @@ Download the executable for your platform, unpack it, and run.

## Authenticating with {% data variables.copilot.copilot_cli_short %}

On first launch, if you're not currently logged in, you'll be prompted to use the `/login` slash command. Enter this command and follow the on-screen instructions to authenticate with your {% data variables.product.github %} account or your Microsoft Entra account. For more information on the authentication process, see [AUTOTITLE](/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli).
On first launch, if you're not currently logged in and no custom model provider is configured, you'll be prompted to use the `/login` slash command. Enter this command and follow the on-screen instructions to authenticate with your {% data variables.product.github %} account or your Microsoft Entra account. For more information on the authentication process, see [AUTOTITLE](/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli).

### Authenticating with a {% data variables.product.pat_generic %}

Expand Down
Loading
Loading