Skip to content

[FEATURE]: Ability to skip Bedrock auth when using a custom model provider #14031

@mattgillard

Description

@mattgillard

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

The problem: I am using the new private LLM Gateway from tailscale called Aperture and when I setup a Bedrock compatible provider opencode is asking for bedrock authentication even though its not required in this instance. Aperture is dealing with the last mile to Bedrock auth.

Claude Code has CLAUDE_CODE_SKIP_BEDROCK_AUTH which allows you to use a LLM gateway and skip the Bedrock auth check.

Config looks like this:

"provider": {
    "aperture": {
      "name": "tailnet aperture",
      "npm": "@ai-sdk/amazon-bedrock",
      "options": {
        "baseURL": "http://ai.tail819a6.ts.net/bedrock"
      },
      "models": {
        "global.anthropic.claude-sonnet-4-6": {
          "name": "sonnet-4.6"
        }
      }
    }
  },

I suggest an env var and/or a provider config option to skip the authentication.
something like:
OPENCODE_SKIP_BEDROCK_AUTH and provider..options.skipAuth

I am happy to raise a PR for this? Let me know!

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions