[BUG] Claude Code triggers 1Password SSH prompts on local-only repositories

Resolved 💬 3 comments Opened Jan 11, 2026 by azalea666 Closed Jan 15, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Environment

  • OS: macOS (Darwin 24.6.0)
  • IDE: VSCodium
  • Claude Code Version: 2.0.75
  • Repository: Local only (no remote configured)

Description

Claude Code VSCode extension triggers 1Password SSH agent authentication prompts when opening a chat window, even for git repositories that have no remote configured.

The dialog appears 3 times consecutively:

  • Message: "Allow VSCodium to use sshkey"
  • Describes an SSH key configured for a completely different project
  • Occurs after the Claude Code window loads
  • If "Deny" is clicked, the prompt repeats 3 times

Actual Behavior

Claude Code appears to be running git commands that trigger the SSH agent, even though there's no remote to authenticate to.

Additional Context

  • The prompts appear after the Claude Code window loads (not during VSCodium startup)
  • Disabling GitLens has no effect
  • These VSCode settings have no effect:

``json
"git.autorefresh": false,
"git.autofetch": false,
"git.autoRepositoryDetection": false
``

  • The gitStatus context appears in conversations, suggesting Claude Code is running git commands on initialization

Impact

This creates unnecessary friction and security prompts for users working on local-only repositories, and inappropriately accesses SSH credentials for unrelated projects.

What Should Happen?

Claude Code should not trigger SSH authentication for:

  • Local-only repositories with no remote
  • Any git status checks that don't require network access

Error Messages/Logs

Steps to Reproduce

  1. Have a global SSH config with 1Password agent:

``
Host *
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
``

  1. Open a git repository with no remote configured:

``bash
git remote -v # Returns nothing
cat .git/config # Shows no [remote] section
``

  1. Open Claude Code chat window in VSCodium
  1. Observe 1Password prompt appears 3 times

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.76

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗