Skip to content

Fixed authentication for Claude API profiles via apiKeyHelper - #10

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/claude-api
Apr 11, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/claude-api

Conversation

@oleg68

@oleg68 oleg68 commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator

ANTHROPIC_API_KEY injected as a PTY env var was silently ignored by Claude Code CLI. Instead, write "apiKeyHelper": "echo " into .claude/settings.local.json before session start; remove it on stop. Also remove ANTHROPIC_API_KEY injection from ClaudeProfile.toEnvVars() for the CLAUDE_API connection type.

ANTHROPIC_API_KEY injected as a PTY env var was silently ignored by
Claude Code CLI. Instead, write "apiKeyHelper": "echo <key>" into
.claude/settings.local.json before session start; remove it on stop.
Also remove ANTHROPIC_API_KEY injection from ClaudeProfile.toEnvVars()
for the CLAUDE_API connection type.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit 1c52d0a into nbplugins:main Apr 11, 2026
3 checks passed
@oleg68
oleg68 deleted the bugfix/claude-api branch April 11, 2026 16:34
oleg68 added a commit to oleg68/NetbeansPluginClaudeCodeGui that referenced this pull request Apr 13, 2026
…ins#10)

ANTHROPIC_API_KEY injected as a PTY env var was silently ignored by
Claude Code CLI. Instead, write "apiKeyHelper": "echo <key>" into
.claude/settings.local.json before session start; remove it on stop.
Also remove ANTHROPIC_API_KEY injection from ClaudeProfile.toEnvVars()
for the CLAUDE_API connection type.

Co-authored-by: Oleg Samarin <osamarin@openintegration.inc>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
oleg68 added a commit that referenced this pull request Apr 13, 2026
)

ANTHROPIC_API_KEY injected as a PTY env var was silently ignored by
Claude Code CLI. Instead, write "apiKeyHelper": "echo <key>" into
.claude/settings.local.json before session start; remove it on stop.
Also remove ANTHROPIC_API_KEY injection from ClaudeProfile.toEnvVars()
for the CLAUDE_API connection type.

Co-authored-by: Oleg Samarin <osamarin@openintegration.inc>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant