Skip to main content
Pulumi logo Pulumi logo
  1. Docs
  2. Infrastructure AI
  3. Pulumi Agents
  4. Create an agent
  5. Create and configure an agent

Create and configure an agent

This Pulumi Cloud feature is available in the Pro and Enterprise editions.

    Create an agent in Pulumi Cloud to give your team a shared place to delegate work. You can start with an agent from the catalog or supply your own instructions.

    Before you begin

    You need permission to create agents in your Pulumi Cloud organization. If the agent needs to read code or open pull requests, connect your version control provider and grant access to the relevant repositories. You can connect other tools during setup.

    Choose an agent

    1. In Pulumi Cloud, open your organization’s Agents page and select the Agents tab.
    2. Select New agent to open the catalog. If the catalog is already visible, continue to the next step.
    3. Choose an agent and select Set up agent. The form opens with starting instructions and suggested settings.
    4. Give your agent a name and description that help teammates recognize its job. For example, name an agent based on Upgrade maintenance “Dependency upgrades” and describe the repositories and dependencies it should maintain.

    The catalog includes these agents:

    AgentJob
    Incident investigationInvestigate outages and service degradation, explain likely causes, and prepare fixes
    Deployment troubleshootingDiagnose failed Pulumi previews, updates, and deployments, including operations in external pipelines
    Drift responseCompare drift with declared configuration and help resolve the difference
    Upgrade maintenanceAssess provider and infrastructure-component upgrades and prepare code changes
    Security remediationInvestigate security findings and prepare infrastructure fixes
    Infrastructure migrationMap dependencies and prepare migration changes

    Build your own agent

    If none of these agents fits the work you need, choose Create your own from scratch in the catalog. You supply the name, description, and instructions.

    Customize the instructions

    The System prompt field contains the instructions the agent follows across its tasks. Describe the work you want to delegate and the result you expect, such as a pull request with passing tests. Add any team conventions or requirements the agent should follow.

    For example, a team that delegates checkout failures to an agent could give it these instructions:

    Follow the incident runbook in runbooks/checkout.md in the checkout repository. Compare the first errors in the logs with recent deployments. If you find a code fix, open a pull request and cite the logs that explain the change.

    When you assign an incident to this agent, include the alert URL and the time the failure began.

    The agent uses this system prompt instead of Organization instructions. Copy any organization-wide requirements it should follow into this field.

    Select integrations

    Give the agent access to the systems it needs for its work. For example, an incident-investigation agent might need Datadog to read monitoring data. If its system prompt refers to a runbook, include the document’s path or URL and make sure the agent can access the repository or tool where it is stored.

    For integrations that use MCP, such as Datadog:

    1. Open the integrations selector beside System prompt.
    2. Select the integrations the agent needs and deselect the others.
    3. If an integration is not listed, select Manage integrations to connect it, or ask an administrator to do so. Return to the form and select it.

    The selection is saved with the agent. To use another MCP integration later, add it to the agent’s configuration. See Integrations for connection instructions.

    Cloud CLI integrations, such as the AWS CLI, use a different setup. They obtain credentials from a Pulumi ESC environment and do not appear in this selector. Follow Cloud CLI integrations to connect one, then grant the agent access to its ESC environment.

    Set its access

    In Role, select the Pulumi Cloud role the agent uses. This choice also affects which teammates can start tasks. The default, Reader, can read the organization’s stacks, environments, and cloud accounts. You can instead select Builder, Maintainer, or a custom role, provided its permissions do not exceed your own. If the agent needs a cloud CLI integration, choose a role with environment:open on the connection’s environment. See Pulumi Cloud access for role requirements.

    In Default mode, choose Manual, Balanced, or Auto to control when the agent asks for approval. See Approval modes for the differences between modes.

    Choose a model

    This Pulumi Cloud feature is available in the Enterprise edition.

    If your organization has connected its own model providers, the form shows a Model setting. Keep Org default selected to follow the organization’s default provider, or select Claude for Pulumi’s built-in models or a saved provider by name.

    For a provider that supports it, Thinking sets how much effort the agent’s models spend on reasoning. Choose Default to use the model’s default thinking level, or select Low, Medium, or High. For OpenAI Responses providers, the default option is labeled Provider default and uses the provider’s configured thinking level. See Choose a model for an agent.

    Changing these settings requires permission to manage your organization’s integrations. See Model providers for provider setup and model options.

    Choose how the agent starts

    Under How do you want to invoke this agent?, choose:

    • Manually to assign tasks directly. You can add events and schedules later.
    • Configure a trigger to start tasks from Pulumi operations, external webhooks, or a recurring schedule. Select Continue to configure the trigger.

    On the trigger step, choose a Trigger type. Set the event filters or schedule, then expand Task instructions and context to review the Trigger name and Prompt. The prompt tells the agent what to do when the trigger fires. Select Create agent when you finish.

    To add an event or schedule to an agent you have already saved, follow Events and schedules.

    Save and assign a task

    If you chose Manually, select Create agent. For a webhook trigger, finish the connection steps shown after saving.

    On the agent’s page, describe what you want it to do in the message box, then select Send message. Include the repository URL or stack name if the work involves one.

    Work with tasks explains how to reply, approve a plan, and work with teammates.

    Change an existing agent

    Select Edit on the agent’s page. See Change saved configuration for when changes take effect. For a change that applies to one task, reply in that task.

    For lifecycle controls and troubleshooting, see Manage and troubleshoot.

      The infrastructure platform for humans and agents.