pub struct ClaudeCodeConfig {
pub cli_path: Option<String>,
pub permission_mode: Option<String>,
pub setting_sources: Option<Vec<String>>,
pub workspace: Option<PathBuf>,
pub reuse_cli_session: Option<bool>,
pub enable_claude_in_chrome: Option<bool>,
}Fields§
§cli_path: Option<String>§permission_mode: Option<String>§setting_sources: Option<Vec<String>>§workspace: Option<PathBuf>§reuse_cli_session: Option<bool>Reuse the persisted claude CLI session across turns (default: on) so
the CLI keeps history server-side and auto-compacts it, and Roder only
sends the new transcript tail each turn. Set to Some(false) to force
the legacy behavior of replaying the full transcript every turn.
enable_claude_in_chrome: Option<bool>Enable the Claude Code “Claude in Chrome” (CFC) browser integration so
the model can drive the user’s real browser through the CLI’s
mcp__claude-in-chrome__* tools.
Some(true)/Some(false)force the integration on or off.None(default) auto-detects: it turns on when the local Claude Code config shows the Chrome extension is paired/enabled, and otherwise off. TheRODER_CLAUDE_CODE_ENABLE_CHROME/CLAUDE_CODE_ENABLE_CHROMEenvironment variables override the auto-detection.
When enabled the provider spawns claude with CLAUDE_CODE_ENABLE_CFC=1
and blanks ANTHROPIC_API_KEY / ANTHROPIC_AUTH_TOKEN for that child so
the CLI uses its claude.ai subscription auth — a prerequisite for the
Chrome integration to connect (it is disabled under API-key auth).
Trait Implementations§
Source§impl Clone for ClaudeCodeConfig
impl Clone for ClaudeCodeConfig
Source§fn clone(&self) -> ClaudeCodeConfig
fn clone(&self) -> ClaudeCodeConfig
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 ClaudeCodeConfig
impl Debug for ClaudeCodeConfig
Source§impl Default for ClaudeCodeConfig
impl Default for ClaudeCodeConfig
Source§fn default() -> ClaudeCodeConfig
fn default() -> ClaudeCodeConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClaudeCodeConfig
impl RefUnwindSafe for ClaudeCodeConfig
impl Send for ClaudeCodeConfig
impl Sync for ClaudeCodeConfig
impl Unpin for ClaudeCodeConfig
impl UnsafeUnpin for ClaudeCodeConfig
impl UnwindSafe for ClaudeCodeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more