npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

opencode-crs-bedrock

v2.0.0

Published

OpenCode plugin for FeedMob CRS proxy to AWS Bedrock Anthropic models

Readme

opencode-crs-bedrock

OpenCode plugin for FeedMob CRS (Claude Relay Service) proxy to AWS Bedrock Anthropic models.

Features

  • URL Rewriting - Routes requests to the CRS endpoint
  • API Key Auth - Uses x-api-key header for authentication

Installation

npm install -g opencode-crs-bedrock

Or add to your OpenCode config to auto-install:

{
  "plugin": ["opencode-crs-bedrock@latest"]
}

Quick Start

Step 1: Configure OpenCode

Create or edit opencode.json in your project root or ~/.config/opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [
    "opencode-crs-bedrock@latest"
  ],
  "provider": {
    "crs": {
      "npm": "@ai-sdk/anthropic",
      "models": {
        "claude-opus-4-5": {
          "name": "Opus 4.5 [CRS]",
          "limit": { "context": 200000, "output": 64000 },
          "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
          "variants": {
            "low": { "thinkingConfig": { "thinkingBudget": 8192 } },
            "max": { "thinkingConfig": { "thinkingBudget": 32768 } }
          }
        },
        "claude-sonnet-4-5": {
          "name": "Sonnet 4.5 [CRS]",
          "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
          "variants": {
            "low": { "thinkingConfig": { "thinkingBudget": 8192 } },
            "max": { "thinkingConfig": { "thinkingBudget": 32768 } }
          }
        }
      }
    }
  }
}

Step 2: Authenticate

Run the OpenCode auth login command:

opencode auth login

When prompted:

  1. Select Other provider
  2. Enter provider id: crs
  3. Enter your CRS API key (starts with cr_)

Your credentials will be securely stored and the plugin will automatically configure the custom fetch handler for CRS authentication.

Usage

# Interactive mode
opencode

# Or direct run with a specific model
opencode run -m crs/claude-sonnet-4-5 "Hello, world!"

# Use with thinking budget variants
opencode run -m crs/claude-opus-4-5:low "Simple task"   # 8K thinking tokens
opencode run -m crs/claude-opus-4-5:max "Complex task"  # 32K thinking tokens

Model Configuration

Context Limits

  • Opus 4.5: 200K context, 64K output tokens
  • Sonnet 4.5: Default limits (inherited from SDK)

Extended Thinking

Both models support extended thinking with configurable budgets via variants:

  • :low - 8,192 thinking tokens for simpler tasks
  • :max - 32,768 thinking tokens for complex reasoning

Use variants by appending :variant to the model ID (e.g., crs/claude-opus-4-5:max).

Modalities

All models support:

  • Input: text, images, PDF documents
  • Output: text

Debugging

Enable debug logging to see request details:

CRS_DEBUG=true opencode

Troubleshooting

Authentication Issues

Check stored credentials:

opencode auth list

If your CRS credentials aren't listed, run the authentication step again:

opencode auth login

Make sure to:

  • Select Other provider
  • Enter provider id: crs
  • Enter your CRS API key (starts with cr_)

Connection Issues

  1. Verify your credentials are stored:

    opencode auth list
  2. Check your opencode.json has the correct provider configuration (see Quick Start above)

  3. Enable debug logging to see request details:

    CRS_DEBUG=true opencode run -m crs/claude-sonnet-4-5 "test"

Local Development

For contributors working on the plugin itself:

{
  "plugin": [
    "file:///path/to/opencode-crs-bedrock"
  ]
}

Reference the local directory in your OpenCode config for live development.

License

MIT