Starting with Max or an API key
The app launches Obsidian in one of two modes:
- Max mode: without
ANTHROPIC_API_KEY. - API key mode: with your API key. It goes only to the Obsidian process that is started and is never set permanently.
Both modes remove ANTHROPIC_AUTH_TOKEN for the Obsidian process, because it would otherwise override any other login. If ANTHROPIC_BASE_URL or CLAUDE_CODE_USE_BEDROCK/VERTEX/FOUNDRY is set, it stays unchanged. The window then warns and names the variable (never its value).
The "Max" or "API-Key" display only holds as long as no other login is configured inside Claude itself (apiKeyHelper, the env block in Claude's settings). The app cannot see that.
The app also checks whether Obsidian is running. If the check fails (for example, tasklist is blocked), it neither closes nor starts anything, and says so in the window.