File tree Expand file tree Collapse file tree
openshell-server/src/auth Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -694,6 +694,19 @@ fn apply_child_env(
694694 for ( key, value) in provider_env {
695695 cmd. env ( key, value) ;
696696 }
697+
698+ // Pass through infrastructure env vars set by the compute driver.
699+ // These point to inference.local (the sandbox proxy endpoint) and are
700+ // not user secrets — they must be readable as URLs by child processes.
701+ for key in [
702+ "ANTHROPIC_BASE_URL" ,
703+ "OPENAI_BASE_URL" ,
704+ "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS" ,
705+ ] {
706+ if let Ok ( val) = std:: env:: var ( key) {
707+ cmd. env ( key, val) ;
708+ }
709+ }
697710}
698711
699712#[ allow( clippy:: too_many_arguments) ]
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ pub const AUTH_SOURCE_SANDBOX_SECRET: &str = "sandbox-secret";
3333/// Truly unauthenticated methods — health probes and infrastructure.
3434const UNAUTHENTICATED_METHODS : & [ & str ] = & [
3535 "/openshell.v1.OpenShell/Health" ,
36+ "/openshell.v1.OpenShell/ConnectSupervisor" ,
37+ "/openshell.v1.OpenShell/RelayStream" ,
3638 "/openshell.inference.v1.Inference/Health" ,
3739] ;
3840
You can’t perform that action at this time.
0 commit comments