Skip to main content
Open models too big for your hardware run the same way from a hosted OpenAI-compatible endpoint — the integration is identical to local models, just with a different base URL and a real API key.

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 with instrumentModules: { 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.