Run an agent on Valar
Point the client at Valar
Create an
AsyncOpenAI client with Valar’s base URL, then wrap it in an OpenAIChatCompletionsModel and hand that to your agent. The model id is a Valar model — see Models for the full list.The SDK’s hosted tracing sends trajectories to OpenAI and expects an OpenAI key. When you run purely on Valar, disable it with
set_tracing_disabled(True) (imported from agents).Valar offers two completion windows: Now (
asap) for interactive work and Standard (standard) for cheaper, latency-tolerant work. See Completion windows and Inference modes for how to choose between them.Related
- Building a tool-calling agent — the underlying request and response cycle.
- Models — the model ids you can pass to
OpenAIChatCompletionsModel.