claude-connector: authenticate the Claude child with an API key (config auth field) #3

Merged
eureka merged 11 commits from hands/connector-api-key into main 2026-11-29 17:36:26 +00:00
Showing only changes of commit b22f5f0f8d - Show all commits

claude-connector: ClaudeCodeConfig carries the auth choice

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Meta Vens 2026-11-29 18:16:15 +01:00

View file

@ -50,9 +50,11 @@ pub struct ClaudeCodeConfig {
/// A directory the connector owns (mode 0700), where each call's system
/// prompt is staged for the child.
pub prompt_dir: PathBuf,
/// The name of the systemd credential that holds the child's token, under
/// The name of the systemd credential that holds the child's credential, under
/// `$CREDENTIALS_DIRECTORY`.
pub token_credential: String,
/// Which credential that is: the subscription token or an API key.
pub auth: ClaudeAuth,
/// The name of the systemd credential that holds the handle secret: the
/// key every handle is authenticated with.
pub handle_secret_credential: String,