Use a custom model endpoint with Pulumi Agents
Connect an LLM gateway or another endpoint that serves the Anthropic Messages, OpenAI Chat Completions, or OpenAI Responses API. The endpoint must support streaming and have a public HTTPS address that Pulumi Cloud can reach. Private IP addresses are unsupported.
Connect your endpoint
Enter the connection details for your endpoint.
- API format: The API your endpoint serves.
- Base URL: Your endpoint's HTTPS base URL. The form shows the full URL that requests go to.
- For Anthropic Messages, agents append
/v1/messages. For example,https://gateway.example.com/anthropicsends requests tohttps://gateway.example.com/anthropic/v1/messages. - For the OpenAI formats, include the version segment. Agents append
/chat/completionsor/responses. For example,https://gateway.example.com/v1sends requests tohttps://gateway.example.com/v1/chat/completions.
- For Anthropic Messages, agents append
- Auth headers: The header names and secret values your endpoint requires. For example, use
x-api-keywith an API key, orAuthorizationwithBearer <your-api-key>. Use Add header if the endpoint requires more than one header. - Default model: The model ID or alias your endpoint expects for agent tasks.
- Fast model (recommended): The model ID or alias for a smaller, faster model.
With OpenAI Responses, you can also set Thinking for the provider.