Agent accounts
Agent accounts give AI agents a free ephemeral Pulumi Cloud account to work in, without requiring a human user to sign up first. When the Pulumi CLI detects it is running in an agent context and no Pulumi Cloud credentials are available, it creates an account automatically and continues. The human claims the account later to take permanent ownership.
How it works
The agent gets an account on first use. An AI agent (Claude Code, Codex, Cursor, etc.) runs a Pulumi CLI command that would normally prompt for login. The CLI finds no Pulumi Cloud credentials, provisions a new ephemeral account, and prints a claim link on stderr. The command continues and does its work normally in the new account.
The agent keeps working and surfaces the claim link. The CLI prints the claim link on stderr with every subsequent command. The agent relays the link to the user alongside results. Across sessions, the agent re-presents the link periodically so it is not forgotten.
The user claims the account. The user visits the claim link and signs in at any time. All stacks and ESC environments transfer to the user’s account. Once claimed, the ephemeral credentials are invalidated.
The user logs the agent into their account. The user runs
pulumi loginor setsPULUMI_ACCESS_TOKENto their own credentials. From this point on, the agent works directly in the user’s Pulumi Cloud account with full capabilities.
pulumi: created an agent account on Pulumi Cloud so this work persists.
Claim within 30 days to take ownership.
https://app.pulumi.com/claim/abc123
The agent does not block on the claim. It continues running commands while the user decides whether to claim. Only operations that require a claimed identity (inviting teammates, billing) wait for the claim.
What agents can do with the account
The provisioned account is a Pulumi Cloud individual account. Agents can:
- Store and manage infrastructure state across sessions
- Use Pulumi ESC for secrets and configuration
Claiming an account
The user clicks the claim link and signs in with any supported identity (GitHub, GitLab, Google, Atlassian, email/password, or SAML SSO). The claim replaces the placeholder identity with the user’s real identity. All state, history, and resources transfer automatically. Claiming never reduces capability. Everything available before the claim is still available after. Once the account is claimed and email is verified, you get access to various Pulumi Cloud features, including Neo, our AI infrastructure agent.
Lifecycle
Active period (3 days). The account is fully functional for 72 hours from creation. The CLI prints the claim link on every command that touches Pulumi Cloud, so the user has multiple opportunities to claim.
Claim window (30 days). After the active period, the account goes read-only. State stays, can be viewed, but cannot be updated or deployed. The user has 30 days from account creation to claim the account using the claim link. Claiming unlocks the account and restores full functionality.
After the claim window. If the account is not claimed within 30 days, it locks permanently. The user’s cloud resources are never touched.
Resources are never destroyed. Pulumi state stays accessible in read-only mode after the active period ends. Cloud resources (S3 buckets, VMs, databases) created by the agent continue running in your cloud provider account regardless of the Pulumi Cloud account’s state.
When agent accounts are not created
The CLI does not provision a new account if:
- A valid
PULUMI_ACCESS_TOKENenvironment variable is set - Valid credentials exist in
~/.pulumi/credentials.json - The user is already logged in to Pulumi Cloud
In these cases, the CLI uses the existing credentials. If multiple agents run on the same machine (for example, Cursor and Claude Code), the second agent reuses the credentials the first agent created.
Limitations
- Agent context only. The automatic provisioning only triggers when the CLI detects it is running under an AI agent. Humans still see the standard login prompt.
- Individual account. An agent account supports one owner. If you have an existing organization with a paid Pulumi subscription, you can transfer the account to your organization after claiming. Otherwise, the agent account is specific to a single user.
- Write access for 3 days. The agent account has write access for 72 hours from provisioning. You have 30 days total from provisioning to claim the account and restore full access.
- Claim link is the only recovery path. If the claim link is lost, there is no recovery path.
See also
Thank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.