OpenCode plugin for FeedMob CRS proxy to AWS Bedrock Anthropic models
npm install opencode-crs-bedrockOpenCode plugin for FeedMob CRS (Claude Relay Service) proxy to AWS Bedrock Anthropic models.
- URL Rewriting - Routes requests to the CRS endpoint
- API Key Auth - Uses x-api-key header for authentication
``bash`
npm install -g opencode-crs-bedrock
Or add to your OpenCode config to auto-install:
`json`
{
"plugin": ["opencode-crs-bedrock@latest"]
}
Create or edit opencode.json in your project root or ~/.config/opencode/opencode.json:
`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 } }
}
}
}
}
}
}
Run the OpenCode auth login command:
`bash`
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.
`bashInteractive mode
opencode
Model Configuration
$3
- Opus 4.5: 200K context, 64K output tokens
- Sonnet 4.5: Default limits (inherited from SDK)
$3
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 reasoningUse variants by appending
:variant to the model ID (e.g., crs/claude-opus-4-5:max).$3
All models support:
- Input: text, images, PDF documents
- Output: text
Debugging
Enable debug logging to see request details:
`bash
CRS_DEBUG=true opencode
`Troubleshooting
$3
Check stored credentials:
`bash
opencode auth list
`If your CRS credentials aren't listed, run the authentication step again:
`bash
opencode auth login
`Make sure to:
- Select Other provider
- Enter provider id:
crs
- Enter your CRS API key (starts with cr_)$3
1. Verify your credentials are stored:
`bash
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:
`bash
CRS_DEBUG=true opencode run -m crs/claude-sonnet-4-5 "test"
`Local Development
For contributors working on the plugin itself:
`json
{
"plugin": [
"file:///path/to/opencode-crs-bedrock"
]
}
``Reference the local directory in your OpenCode config for live development.
MIT