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: dotnet/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,7 @@ new CopilotClient(CopilotClientOptions? options = null)
75
75
-`LogLevel` - Log level (default: "info")
76
76
-`AutoStart` - Auto-start server (default: true)
77
77
-`Cwd` - Working directory for the CLI process
78
+
-`CopilotHome` - Base directory for Copilot data (session state, config, etc.). Sets `COPILOT_HOME` on the spawned CLI process. When not set, the CLI defaults to `~/.copilot`. Useful in restricted environments where only specific directories are writable. Ignored when using `CliUrl`.
78
79
-`Environment` - Environment variables to pass to the CLI process
79
80
-`Logger` - `ILogger` instance for SDK logging
80
81
-`GitHubToken` - GitHub token for authentication. When provided, takes priority over other auth methods.
-`CLIPath` (string): Path to CLI executable (default: "copilot" or `COPILOT_CLI_PATH` env var)
134
134
-`CLIUrl` (string): URL of existing CLI server (e.g., `"localhost:8080"`, `"http://127.0.0.1:9000"`, or just `"8080"`). When provided, the client will not spawn a CLI process.
135
135
-`Cwd` (string): Working directory for CLI process
136
+
-`CopilotHome` (string): Base directory for Copilot data (session state, config, etc.). Sets `COPILOT_HOME` on the spawned CLI process. When empty, the CLI defaults to `~/.copilot`. Useful in restricted environments where only specific directories are writable. Ignored when using `CLIUrl`. This does **not** affect where the Go SDK extracts the embedded CLI binary; use `embeddedcli.Config.Dir` for the extraction/cache location. You can vary `CopilotHome` per client independently of the shared extracted binary location.
136
137
-`Port` (int): Server port for TCP mode (default: 0 for random)
137
138
-`UseStdio` (bool): Use stdio transport instead of TCP (default: true)
0 commit comments