Skip to content

Spike: OAuth profiles via CLAUDE_CONFIG_DIR isolation #2

Description

@agh

Claude Code keys its macOS Keychain entry to CLAUDE_CONFIG_DIR, so one config directory per OAuth account gives native per-account credentials without cwtch copying Anthropic-owned credential JSON around. The trade-off is that the whole config tree (settings, plugins, skills, history, project state) moves with it.

Spike: prototype cwtch profile use <oauth> exporting CLAUDE_CONFIG_DIR=~/.cwtch/profiles/<name>/claude (with shared settings symlinked in), confirm the Keychain service/account naming empirically, and decide whether to replace the Keychain-swap mechanism in 7.0.

Refs: audit item 4 and decision Q2; Claude Code authentication docs, "Credential management".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions