Skip to main content
Pulumi logo Pulumi logo
  1. Docs
  2. Infrastructure AI
  3. Pulumi Agents
  4. Model providers
  5. Use Anthropic with Pulumi Agents

Use Anthropic with Pulumi Agents

This Pulumi Cloud feature is available in the Enterprise edition.

    Connect your Anthropic workspace to run Pulumi Agents on Claude and have Anthropic bill the workspace for usage. Create an Anthropic API key in the workspace you want Pulumi to use. The workspace needs access to the same Claude models as Pulumi’s built-in provider.

    If you access Claude through Amazon Bedrock or Azure Foundry, follow the guide for that account.

    Connect Anthropic

    Organizations on the legacy Business Critical edition also have access to this feature. To connect the provider, you need permission to manage your organization's integrations, such as the Admin role.

    1. In Pulumi Cloud, open your organization's Agent Settings.
    2. Select Model provider, then Add model provider.
    3. Enter a unique Name using lowercase letters, numbers, and hyphens. Choose a name you can recognize when configuring an agent. The name is permanent, and Pulumi reserves pulumi.
    4. Under Provider, select Anthropic.

    Enter your workspace’s API key. Pulumi supplies the base URL, the x-api-key header name, and the model mapping.

    Test and use the provider

    Select Save. Pulumi sends a test request to each configured model and shows any errors. If a request fails, correct the settings and save again.

    To use the connection for one agent, open the agent's configuration, select the provider by name under Model, and save the agent. Start a new task to use that selection.

    To use the connection for new tasks that follow the organization default, check whether it is already the default. If needed, select Set as default in Agent Settings. See how Pulumi chooses the default provider.

      The infrastructure platform for humans and agents.