Cursor Cloud Agent can’t reach npm, APIs, or your registry. Fix the egress allowlist
Restricted Cloud Agent egress blocks hosts outside the allowlist. Add the exact hostname, check network-info, then retry—don’t disable the whole sandbox. Short answer: 5 steps. 1) Confirm egress policy is the blocker; 2) Add the exact hostname the agent needs; 3) Check which layer’s policy wins; 4) Use private networking for VPC/intranet targets; 5) Retry after the policy is live, then widen mode only if needed.
Last updated: · This page is the decision checklist; the tools list for “Fix Cursor Cloud Agent network allowlist blocks” is a separate URL.
How do I add the hostname to the allowlist when a Cursor Cloud Agent can’t reach npm or a registry?
Confirm egress policy is the blocker
Failures that look like DNS errors, connection timeouts, or “blocked” fetches to package registries, model APIs, or internal hosts often mean the Cloud Agent is on Default + allowlist or Allowlist only. Ask the agent to run the built-in `network-info` tool (Cursor Cloud MCP) to see the enforced mode and allowed domains before changing credentials. Docs: https://cursor.com/docs/cloud-agent/security-network
Add the exact hostname the agent needs
In the Cloud Agents dashboard under Security (user, saved environment, or team), add the destination host—e.g. `registry.npmjs.org`, your private Artifactory host, or an API origin. Prefer exact hosts. For artifact uploads on restricted modes, add `cloud-agent-artifacts.s3.us-east-1.amazonaws.com` exactly; do not broaden to `*.s3.us-east-1.amazonaws.com`.
Check which layer’s policy wins
Environment-level network settings override inherited ones for agents on that environment. If the environment inherits, a user setting can override the team default; Enterprise admins can lock the team policy so individuals can’t widen it. Fix the layer that actually applies—widening only your user list won’t help if the environment is Allowlist only.
Use private networking for VPC/intranet targets
Cloud Agents don’t need your laptop on for private services. Run Tailscale userspace networking or Cloudflare Tunnel in the environment, store Access tokens as secrets if needed, and allowlist the tunnel hostname. Self-hosted machines use the machine’s own network instead of Cursor’s egress modes.
Retry after the policy is live, then widen mode only if needed
If `network-info` still shows a stale policy right after an edit, start a new agent (or wait for the update) rather than probing hosts blindly. Only move to Allow all when the allowlist approach can’t cover required hosts. Team allowlists also feed the desktop sandbox defaults—coordinate with admins before expanding.
Which tools are best to fix Cursor Cloud Agent network allowlist blocks?
Secrets & Network (egress modes)
Allow all / Default + allowlist / Allowlist only, plus artifact host rules.
Cloud Agents docs
Runtime controls for secrets, private networks, and egress.
Cloud Agents release notes
network-info tool and allowlist behavior updates.
Cloud Agents dashboard
User, environment, and team network access settings.
Open: 1 spot per week
One labeled sponsor for this topic each week; this week's spot is open. See open weeks →
All tools for “Fix Cursor Cloud Agent network allowlist blocks” →
Related fixes
- Stop a Cursor agent loopHow to fix a Cursor agent loop (same edit, or work after Stop)Fix →
- Claude Code vs Codex vs Cursor ~$20 plansClaude Code vs Codex vs Cursor $20 plan limits: how to pick without burning the weekFix →
- Scan a vibe-coded app for leaked API keysCheck a vibe-coded app for leaked API keys before you share itFix →
- Add an MCP server to Claude Code, Cursor, or CodexHow to add an MCP server to Claude Code, Cursor, or CodexFix →
See also AI tools launched today on the daily board.
NewAIToolsToday Daily
Top 3 AI launches, one model or news item that matters, and one simple fix. A 5-minute read, every weekday.