Unable to start opencode with AWS Bedrock as provider when config includes a ca_certificate #5005

Open
opened 2026-02-16 17:47:37 -05:00 by yindo · 0 comments
Owner

Originally created by @neshreve on GitHub (Jan 12, 2026).

Originally assigned to: @rekram1-node on GitHub.

EDIT TO ADD: As mentioned in the comments, I resolved this by explicitly setting the SSL_CERT_BUNDLE and REQUESTS_CA_BUNDLE environment variables to the location of my company-provided cert bundle.

I would no longer characterize this as a bug, but as needing a descriptive error message.

Description

Due to a recent change, I must now include a ca_bundle in my ~/.aws/config to authenticate awscli on my work machine. Since making this change, I am unable to start opencode with Bedrock as the provider.

AWS config snippet

[profile default]
role_arn = <role_arn>
source_profile = root
region = us-east-2
role_session_name = <session_name>
ca_bundle = /path/to/my-cert-bundle.pem

BunInstallFailedError when running opencode

$ AWS_PROFILE=default opencode
{
  "name": "BunInstallFailedError",
  "data": {
    "pkg": "@aws-sdk/credential-providers",
    "version": "latest"
  }
}

Plugins

None

OpenCode version

1.1.10

Steps to reproduce

Require & provide a CA bundle with AWS CLI profile config and launch opencode with Bedrock as the provider

$ AWS_PROFILE=default opencode
{
  "name": "BunInstallFailedError",
  "data": {
    "pkg": "@aws-sdk/credential-providers",
    "version": "latest"
  }
}

Screenshot and/or share link

N/A

Operating System

macOS Sequoia 15.6.1

Terminal

wezterm

Originally created by @neshreve on GitHub (Jan 12, 2026). Originally assigned to: @rekram1-node on GitHub. *EDIT TO ADD:* As mentioned in the comments, I resolved this by explicitly setting the `SSL_CERT_BUNDLE` and `REQUESTS_CA_BUNDLE` environment variables to the location of my company-provided cert bundle. I would no longer characterize this as a bug, but as needing a descriptive error message. ### Description Due to a recent change, I must now include a `ca_bundle` in my `~/.aws/config` to authenticate `awscli` on my work machine. Since making this change, I am unable to start opencode with Bedrock as the provider. AWS config snippet ``` [profile default] role_arn = <role_arn> source_profile = root region = us-east-2 role_session_name = <session_name> ca_bundle = /path/to/my-cert-bundle.pem ``` `BunInstallFailedError` when running opencode ```sh $ AWS_PROFILE=default opencode { "name": "BunInstallFailedError", "data": { "pkg": "@aws-sdk/credential-providers", "version": "latest" } } ``` ### Plugins None ### OpenCode version 1.1.10 ### Steps to reproduce Require & provide a CA bundle with AWS CLI profile config and launch opencode with Bedrock as the provider ```sh $ AWS_PROFILE=default opencode { "name": "BunInstallFailedError", "data": { "pkg": "@aws-sdk/credential-providers", "version": "latest" } } ``` ### Screenshot and/or share link N/A ### Operating System macOS Sequoia 15.6.1 ### Terminal wezterm
yindo added the bug label 2026-02-16 17:47:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5005