1. Pick an endpoint
Providers like Together, Fireworks, Groq and OpenRouter serve open models behind OpenAI-compatible APIs. If you’d rather run your own weights, self-host vLLM on a GPU cloud — it exposes the same API.2. Point your agent at the hosted endpoint
Same OpenAI SDK, different base URL:3. Trace it as usual
Initialize the SDK withinstrumentModules: { openAI: openai.OpenAI } and wrap agent runs in withSession. Spans arrive with the hosted model name, so local, hosted and cloud-provider calls stay distinguishable in the dashboard.
Note: unlike local models, the hosted provider sees your prompts — the usual data-handling considerations for a cloud provider apply.