Mastra
Mastra is a TypeScript framework for agents, workflows and RAG, and its model router carries Opper as a provider. Set OPPER_API_KEY, write the model as a string, and the call routes through the gateway with no base URL to configure and no Opper package to install. The models arrive with their context windows and prices already filled in, because Mastra reads them from the open models.dev catalogue rather than hard-coding a list, which is also why its router lists a curated slice of the catalogue rather than all of it.
Build with Mastra on Opper
Opper ships inside Mastra, so there is no base URL to set and no package to add. Set OPPER_API_KEY and pick a model.
Get your API keyIn your code
import { Agent } from '@mastra/core/agent';// OPPER_API_KEY is picked up from the environment.export const agent = new Agent({name: 'assistant',instructions: 'You are a helpful assistant.',model: 'opper/anthropic/claude-fable-5',});
Mastra documents Opper on its own site. See the provider page.
More apps on Opper
Vercel AI SDK
Our provider for the Vercel AI SDK, so generateText, streamText and tool calls run on any model behind one key.
@opperai/ai-sdk-providerLiteLLM
Reach Opper through LiteLLM's OpenAI-compatible provider, in the Python SDK or behind the proxy.
/v3/compatLangChain
Point LangChain's OpenAI chat model at Opper and the rest of the chain carries on unchanged.
/v3/compat