Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket Agentic Pipelines with Codex Error

NghiaLQ
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 30, 2026

 

Hi everyone,

I'm using Bitbucket Agentic Pipelines with provider: codex. My pipeline configuration appears to be correct:

  • OPENAI_API_KEY is configured as a secured Repository Variable.
  • The variable is successfully available inside the pipeline (OPENAI_API_KEY is available).
  • My pipeline can successfully clone another private repository before starting the agent.
  • The Codex agent starts correctly (codex-acp 0.16.0).
  • OpenAI provider has already been enabled at the Workspace level.

However, immediately after the agent starts, it fails during session creation with:

 

session creation error: {"code":-32000,"message":"Authentication required"}

The agent reports that OPENAI_API_KEY is a supported authentication method, but it never attempts the review and no additional authentication details are logged.

Is this a known issue with codex-acp 0.16.0, or is there any additional requirement for Agentic Pipelines to create a Codex session beyond providing OPENAI_API_KEY?

Any guidance would be greatly appreciated. Thanks!

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events