We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0728391 + f44eccf commit 2f9dadeCopy full SHA for 2f9dade
1 file changed
src/podman-runner.ts
@@ -339,6 +339,19 @@ export class PodmanRunner {
339
args.push("-e", `ANTHROPIC_API_KEY=${params.apiKey}`);
340
}
341
342
+ // Pass through selected host env vars for compatible proxy/auth setups.
343
+ const passthroughEnvKeys = [
344
+ "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC",
345
+ "ANTHROPIC_BASE_URL",
346
+ "ANTHROPIC_AUTH_TOKEN",
347
+ ] as const;
348
+ for (const key of passthroughEnvKeys) {
349
+ const value = process.env[key];
350
+ if (value && value.length > 0) {
351
+ args.push("-e", `${key}=${value}`);
352
+ }
353
354
+
355
if (params.gitEnv) {
356
args.push(
357
"-e",
0 commit comments