[BUG] acli (Atlassian's official CLI tool) using OAuth fails in Claude Code but works in macOS Terminal

Resolved 💬 5 comments Opened May 23, 2026 by sri-chalam Closed Jul 6, 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?

Description

acli is the official Atlassian CLI tool that provides command-line access to Jira, Confluence, and other Atlassian products. It supports both OAuth and API token authentication — OAuth being the preferred approach as it stores credentials securely in the macOS Keychain rather than in plain-text files.

When using OAuth, acli works correctly in a standard macOS Terminal session but fails when invoked from within Claude Code — both as a regular Bash tool call and using the ! prefix — with the error: ✗ Error: failed to fetch work item details.

What Should Happen?

Any acli command that works in a standard macOS Terminal session should execute successfully within Claude Code and return the same results.

Error Messages/Logs

For the command
acli jira workitem view <ISSUE-1234>
Error: Exit code 1
Error: failed to fetch work item details

For the command
acli jira auth status
Error: Exit code 1
Error: failed to retrieve authenticated status

It appears that Jira session is not active. You'll need to re-authenticate...

Steps to Reproduce

  1. Install acli and authenticate via OAuth: acli jira auth login
  2. Verify it works in Mac Terminal: acli jira workitem view <some issue like - ISSUE-1234>
  3. Open Claude Code and run the same command:

! acli jira workitem view ISSUE-1234

  1. Observe the error: ✗ Error: failed to fetch work item details

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.148

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

Environment

macOS (MacBook)
Claude Code version 2.1.148
Claude Code with Claude Sonnet 4.6
acli v1.3.18-stable
Authentication type: OAuth
Shell: Oh my zsh

Related Issues

The following issues may be related, as they describe problems with Claude Code's execution environment affecting CLI tools that have specific runtime requirements:

#26353 — Interactive TTY mode for bash commands
#37523 — Opt-in Host-Shell Execution Mode with Full stdin Passthrough

However, the issue reported here is distinct — acli jira workitem view is a non-interactive, read-only command that requires no TTY input. The problem appears to be specifically around Claude Code's inability to access credentials stored in the macOS Keychain, rather than interactive terminal support.

View original on GitHub ↗

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