# OpenCode Now Supports DigitalOcean Inference Router for Intelligent Model Routing

DevFeed: [OpenCode Now Supports DigitalOcean Inference Router for Intelligent Model Routing](<https://devfeed.tech/articles/opencode-now-supports-digitalocean-inference-router-for-intelligent-model-routing-19873.md>)

Original publisher: [Read original article](<https://www.digitalocean.com/blog/digitalocean-opencode-inference-routers>)

Author: Musa Malik

Published: 2026-05-28T21:02:42Z

Content type: release

Language: en

Sources: [DigitalOcean](<https://devfeed.tech/sources/digitalocean.md>)

Topics: [Digital Ocean](<https://devfeed.tech/topics/digital-ocean.md>), [Model Routing](<https://devfeed.tech/topics/model-routing.md>), [AI Inference](<https://devfeed.tech/topics/ai-inference.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [coding](<https://devfeed.tech/topics/coding.md>)

Tags: [ai-coding](<https://devfeed.tech/tags/ai-coding.md>), [ai-inference](<https://devfeed.tech/tags/ai-inference.md>), [api](<https://devfeed.tech/tags/api.md>), [cost](<https://devfeed.tech/tags/cost.md>), [digitalocean](<https://devfeed.tech/tags/digitalocean.md>), [latency](<https://devfeed.tech/tags/latency.md>), [model-routing](<https://devfeed.tech/tags/model-routing.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [product-updates](<https://devfeed.tech/tags/product-updates.md>)

## AI overview

DigitalOcean's Inference Router is in public preview and can be accessed through OpenCode, an open-source AI coding agent. It dynamically routes requests across models to help developers manage latency, cost, and output quality.

## Source excerpt

Coding agents today have a massive spending problem. Every request, whether you're designing system architecture or writing a single-line docstring, often gets routed to the same expensive frontier model. The result: unnecessary token usage, higher inference costs, and little awareness of task complexity or budget constraints. This high cost stems from a "one-size-fits-all" approach to model usage, where premium frontier models are utilized for trivial tasks that don't require such intensive reasoning effort. In multi-agent workflows, where orchestrators delegate work to specialized subagents, this lack of discrimination frequently leads to runaway costs and opaque failure modes. Without intelligent routing, developers can essentially be forced into closed-provider lock-in and high API usage fees, which quickly escalate during exploratory building phases. DigitalOcean Inference Router, now in Public Preview, was built to solve this problem by dynamically routing requests to the right model for the job. As part of DigitalOcean's AI-Native Cloud, it gives developers a unified way to control, optimize, and evaluate AI inference across models. And as of today, you can access it through OpenCode, the open-source AI coding agent, in as little as a few seconds. What is an Inference Router? An Inference Router is the auto-mode pattern engineers are used to, but with deliberate control over the tradeoffs that matter: latency, cost, and output quality. Rather than statically pointing your coding agent to a single model, an Inference Router can analyze each request and route it to the model best suited for that specific task. Not the most powerful model available, but the right model. That distinction is what drives real savings without compromising on your desired quality of output. To use DigitalOcean's Inference Router: Create an Inference Router from the router catalog--pick a preset or build a custom router via the API or UI. No GPU management, no infrastructure to run. Us