Configure OpenCode to use Adaptive’s intelligent routing for 60-80% cost savings while maintaining the same AI coding experience.
Save 60-80% on AI development costs with intelligent model routing. Works as a custom provider in OpenCode.

Get Your Adaptive API Key

Visit llmadaptive.uk to create an account and generate your API key.

Quick Setup

Run Installer

curl -fsSL https://raw.githubusercontent.com/Egham-7/adaptive/main/scripts/installers/opencode.sh | bash
Follow prompts to complete authentication setup.

Authenticate Provider

opencode auth login
Select “Other” → Enter “adaptive” → Paste your API key

Select Model

Run /models in OpenCode and select “Intelligent Routing” for automatic optimization.

Alternative Setup Methods

export ADAPTIVE_API_KEY='your-api-key-here'
curl -fsSL https://raw.githubusercontent.com/Egham-7/adaptive/main/scripts/installers/opencode.sh | bash

Troubleshooting

Next Steps


Was this page helpful? Contact us at info@llmadaptive.uk for feedback or assistance with your OpenCode integration.