MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / from_env_map

Method from_env_map

claw-code/rust/crates/runtime/src/remote.rs:73–86  ·  view source on GitHub ↗
(env_map: &BTreeMap<String, String>)

Source from the content-addressed store, hash-verified

71
72 #[must_use]
73 pub fn from_env_map(env_map: &BTreeMap<String, String>) -> Self {
74 Self {
75 enabled: env_truthy(env_map.get("CLAUDE_CODE_REMOTE")),
76 session_id: env_map
77 .get("CLAUDE_CODE_REMOTE_SESSION_ID")
78 .filter(|value| !value.is_empty())
79 .cloned(),
80 base_url: env_map
81 .get("ANTHROPIC_BASE_URL")
82 .filter(|value| !value.is_empty())
83 .cloned()
84 .unwrap_or_else(|| DEFAULT_REMOTE_BASE_URL.to_string()),
85 }
86 }
87}
88
89impl UpstreamProxyBootstrap {

Callers

nothing calls this directly

Calls 3

env_truthyFunction · 0.85
read_tokenFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected