pub struct CcProxyConfig {
pub url: String,
pub enabled: bool,
}Expand description
Routing for Anthropic subscription-OAuth (sk-ant-oat*) tokens through a
local bridge — cc-proxy — that swaps x-api-key for the Bearer +
claude-code betas disguise the upstream requires.
The Hub injects ANTHROPIC_BASE_URL pointing at url when it
spawns an agent runtime, but only when enabled is set and
the bridge is actually listening; otherwise it leaves the runtime on the
direct api.anthropic.com path (where an oat token would 401). A runtime
launched with ANTHROPIC_BASE_URL already in its environment is never
overridden.
Fields§
§url: StringBridge base URL. Defaults to cc-proxy’s default bind.
enabled: boolMaster switch. When false the Hub never routes runtimes through the bridge, regardless of reachability.
Trait Implementations§
Source§impl Clone for CcProxyConfig
impl Clone for CcProxyConfig
Source§fn clone(&self) -> CcProxyConfig
fn clone(&self) -> CcProxyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CcProxyConfig
impl Debug for CcProxyConfig
Source§impl Default for CcProxyConfig
impl Default for CcProxyConfig
Source§impl<'de> Deserialize<'de> for CcProxyConfig
impl<'de> Deserialize<'de> for CcProxyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CcProxyConfig
impl RefUnwindSafe for CcProxyConfig
impl Send for CcProxyConfig
impl Sync for CcProxyConfig
impl Unpin for CcProxyConfig
impl UnsafeUnpin for CcProxyConfig
impl UnwindSafe for CcProxyConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more