You can now run Pulumi Agents on the models your team already uses. Connect your organization’s model provider account, and your provider bills you directly for the requests your agents make. You can use that connection across your organization or give an individual agent its own choice of model.
Pulumi Agents supports OpenAI, Amazon Bedrock, Anthropic, Google (for Gemini models), Azure Foundry, and compatible endpoints. To connect one, open Agent Settings in Pulumi Cloud. Under Model provider, choose Add model provider, select your provider, and enter a name and connection details. Select Save to test the connection.
Once you’ve named a connection, you can use it in code. Here, modelProvider: "openai-platform"
tells the infrastructure review agent to use the model your team configured on that connection.
import * as pulumi from "@pulumi/pulumi";
import * as pulumiservice from "@pulumi/pulumiservice";
new pulumiservice.api.agents.Definition("infra-review", {
orgName: pulumi.getOrganization(),
name: "infra-review",
displayName: "Infrastructure Review",
customInstructions: "Review proposed infrastructure changes and summarize their impact.",
modelProvider: "openai-platform",
});
In the console, choose Set as default to use a connection for new tasks that follow your organization’s default. To…