You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/copilot/how-tos/copilot-cli/manage-pull-requests.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,7 +156,7 @@ When resolving conflicts, {% data variables.copilot.copilot_cli_short %} needs t
156
156
157
157
To set a default merge strategy so that you are not prompted each time, add the `mergeStrategy` setting to your configuration file. You can set this in your personal user settings for {% data variables.product.prodname_copilot_short %}, or in the repository settings.
158
158
159
-
***User settings**: Add `"mergeStrategy": "rebase"` or `"mergeStrategy": "merge"` to your user-level configuration file (typically `~/.copilot/config.json`).
159
+
***User settings**: Add `"mergeStrategy": "rebase"` or `"mergeStrategy": "merge"` to your user-level configuration file (typically `~/.copilot/settings.json`).
160
160
***Repository settings**: Add the same setting to `.github/copilot/settings.json` in your repository root.
Copy file name to clipboardExpand all lines: content/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ By default, the CLI stores your OAuth token in your operating system's keychain
67
67
| Windows | Credential Manager |
68
68
| Linux | libsecret (GNOME Keyring, KWallet) |
69
69
70
-
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`.
70
+
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/settings.json`.
71
71
72
72
When you run a command, {% data variables.copilot.copilot_cli_short %} checks for credentials in the following order:
Copy file name to clipboardExpand all lines: content/copilot/how-tos/copilot-cli/steer-remotely.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ Details for accessing the session remotely are displayed when the interactive se
58
58
59
59
### Configuring remote access to always be enabled
60
60
61
-
If you always want your interactive CLI sessions to be remotely accessible, add the following to your {% data variables.product.prodname_copilot_short %} configuration file (typically located at `~/.copilot/config.json`):
61
+
If you always want your interactive CLI sessions to be remotely accessible, add the following to your {% data variables.product.prodname_copilot_short %} configuration file (typically located at `~/.copilot/settings.json`):
Copy file name to clipboardExpand all lines: content/copilot/how-tos/copilot-cli/use-copilot-cli-agents/overview.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -271,7 +271,7 @@ For additional information use one of the following commands in your terminal:
271
271
272
272
`copilot help config`
273
273
274
-
You can adjust the configuration settings by editing the `config.json` file, which is located, by default, in the `~/.copilot` directory. This location can be changed by setting the `COPILOT_HOME` environment variable.
274
+
You can adjust the configuration settings by editing the `settings.json` file, which is located, by default, in the `~/.copilot` directory. This location can be changed by setting the `COPILOT_HOME` environment variable.
275
275
276
276
***Environment variables** that affect {% data variables.copilot.copilot_cli_short %}:
Copy file name to clipboardExpand all lines: content/copilot/reference/copilot-cli-reference/cli-config-dir-reference.md
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ The `~/.copilot` directory contains the following top-level items.
23
23
24
24
| Path | Type | Description |
25
25
|------|------|-------------|
26
-
|`config.json`| File | Your personal configuration settings |
26
+
|`settings.json`| File | Your personal configuration settings |
27
27
|`copilot-instructions.md`| File | Personal custom instructions (applied to all sessions) |
28
28
|`instructions/`| Directory | Additional personal `*.instructions.md` files |
29
29
|`mcp-config.json`| File | User-level MCP server definitions |
@@ -46,10 +46,13 @@ The `~/.copilot` directory contains the following top-level items.
46
46
47
47
The following files are designed to be edited by you directly, or managed through CLI commands.
48
48
49
-
### `config.json`
49
+
### `settings.json`
50
50
51
51
This is the primary configuration file for {% data variables.copilot.copilot_cli_short %}. You can edit it directly in a text editor, or use interactive commands like `/model` and `/theme` to change specific values from within a session. The file supports JSON with comments (JSONC).
52
52
53
+
> [!NOTE]
54
+
> The configuration file was renamed from `config.json` to `settings.json`. Existing settings are automatically migrated from `~/.copilot/config.json` on startup.
55
+
53
56
For the full list of settings and how they interact with repository-level configuration, see [Configuration file settings](#configuration-file-settings) later in this article.
54
57
55
58
> [!TIP]
@@ -91,7 +94,7 @@ For more information, see [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-cop
91
94
92
95
### `hooks/`
93
96
94
-
Store user-level hook scripts here. These hooks apply to all your sessions. You can also define hooks inline in `config.json` using the `hooks` key. Repository-level hooks (in `.github/hooks/`) are loaded alongside user-level hooks.
97
+
Store user-level hook scripts here. These hooks apply to all your sessions. You can also define hooks inline in your user configuration file (`~/.copilot/config.json`) using the `hooks` key. Repository-level hooks (in `.github/hooks/`) are loaded alongside user-level hooks.
95
98
96
99
For more information, see [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-copilot/use-hooks).
97
100
@@ -168,29 +171,29 @@ The `--config-dir` option takes precedence over `COPILOT_HOME`, which in turn ta
168
171
169
172
| Item | Safe to delete? | Effect |
170
173
|------|-----------------|--------|
174
+
|`agents/`, `skills/`, `hooks/`| Not recommended | You will lose your personal customizations. Back up first. |
175
+
|`copilot-instructions.md`, `instructions/`| Not recommended | You will lose your personal custom instructions. Back up first. |
176
+
|`installed-plugins/`| Not recommended | Use `copilot plugin uninstall` instead, to ensure plugin metadata in `settings.json` stays consistent. |
171
177
|`logs/`| Yes | Log files are re-created each session. Deleting them has no functional impact. |
178
+
|`lsp-config.json`| Not recommended | You will lose your user-level LSP server definitions. Back up first. |
179
+
|`mcp-config.json`| Not recommended | You will lose your user-level MCP server definitions. Back up first. |
180
+
|`permissions-config.json`| With caution | Resets all saved permissions. The CLI will prompt you again for tool and directory approvals. |
172
181
|`plugin-data/`| Yes | Plugin persistent data is re-created as needed. |
173
182
|`session-state/`| With caution | Deleting removes session history. You will no longer be able to resume past sessions. |
174
183
|`session-store.db`| With caution | Deleting removes cross-session data. The file is re-created automatically. |
175
-
|`config.json`| With caution | Resets all configuration to defaults. You will need to reconfigure your preferences and re-authenticate. |
176
-
|`permissions-config.json`| With caution | Resets all saved permissions. The CLI will prompt you again for tool and directory approvals. |
177
-
|`installed-plugins/`| Not recommended | Use `copilot plugin uninstall` instead, to ensure plugin metadata in `config.json` stays consistent. |
178
-
|`mcp-config.json`| Not recommended | You will lose your user-level MCP server definitions. Back up first. |
179
-
|`lsp-config.json`| Not recommended | You will lose your user-level LSP server definitions. Back up first. |
180
-
|`copilot-instructions.md`, `instructions/`| Not recommended | You will lose your personal custom instructions. Back up first. |
181
-
|`agents/`, `skills/`, `hooks/`| Not recommended | You will lose your personal customizations. Back up first. |
184
+
|`settings.json`| With caution | Resets all configuration to defaults. You will need to reconfigure your preferences and re-authenticate. |
182
185
183
186
## Configuration file settings
184
187
185
188
Settings cascade from user to repository to local, with more specific scopes overriding more general ones. Command-line options and environment variables always take the highest precedence.
186
189
187
190
| Scope | Location | Purpose |
188
191
|-------|----------|---------|
189
-
| User |`~/.copilot/config.json`| Global defaults for all repositories. Use the `COPILOT_HOME` environment variable to specify an alternative path. |
192
+
| User |`~/.copilot/settings.json`| Global defaults for all repositories. Use the `COPILOT_HOME` environment variable to specify an alternative path. |
190
193
| Repository |`.github/copilot/settings.json`| Shared repository configuration (committed to the repository). |
191
194
| Local |`.github/copilot/settings.local.json`| Personal overrides (add this to `.gitignore`). |
192
195
193
-
### User settings (`~/.copilot/config.json`)
196
+
### User settings (`~/.copilot/settings.json`)
194
197
195
198
These settings apply across all your sessions and repositories. You can edit this file directly, or use slash commands to update individual values.
Copy file name to clipboardExpand all lines: content/copilot/reference/copilot-cli-reference/cli-programmatic-reference.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,12 +119,12 @@ copilot -p "Fix the race condition in the worker pool" \
119
119
120
120
Alternatively, you can set the `COPILOT_MODEL` environment variable to specify a model for the duration of the shell session.
121
121
122
-
To persist a model selection across shell sessions, you can set the `model` key in the CLI configuration file. This file is located at `~/.copilot/config.json` (or `$COPILOT_HOME/.copilot/config.json` if you have set the `COPILOT_HOME` environment variable). Some models also allow you to set a reasoning effort level, which controls how much time the model spends thinking before responding.
122
+
To persist a model selection across shell sessions, you can set the `model` key in the CLI configuration file. This file is located at `~/.copilot/settings.json` (or `$COPILOT_HOME/settings.json` if you have set the `COPILOT_HOME` environment variable). Some models also allow you to set a reasoning effort level, which controls how much time the model spends thinking before responding.
123
123
124
124
```json copy
125
125
{
126
126
"model": "gpt-5.3-codex",
127
-
"reasoning_effort": "low"
127
+
"effortLevel": "low"
128
128
}
129
129
```
130
130
@@ -138,7 +138,7 @@ When determining which model to use for a given prompt, the CLI checks for model
138
138
* Where a custom agent is used: the model specified in the custom agent definition (if any).
139
139
* The `--model` command line option.
140
140
* The `COPILOT_MODEL` environment variable.
141
-
* The `model` key in the configuration file (`~/.copilot/config.json` or `$COPILOT_HOME/.copilot/config.json`).
141
+
* The `model` key in the configuration file (`~/.copilot/settings.json` or `$COPILOT_HOME/settings.json`).
0 commit comments