Agents
Grok Bot Private Networks for Enterprise
Enterprise teams connect Grok Bot to a private network by installing their own networking client, such as Tailscale or Cloudflare Tunnel, on every team computer with Team Setup Scripts. The computers run in Cursor's cloud and reach the internet through shared static egress IPs. A member's desktop route changes the IP sites see but doesn't open the private network.

On this page
- How can Grok Bot reach services on a private network?
- How do you route Grok Bot traffic through a member's desktop?
- How does Team Setup install a networking client on every computer?
- How do Team Setup scripts run, and where do credentials go?
- Should you use Tailscale or Cloudflare Tunnel?
- What happens on existing computers, and what stays the same?
How can Grok Bot reach services on a private network?
Use Team Setup Scripts to install your organization's networking client on every team computer. Grok BotAn early AI teammate product from SpaceXAI and Cursor that works across apps on a persistent cloud computer and asks for approval on selected actions; launch materials describe it as beta, but Cursor says Beta Services terms do not apply. Press Enter for the full definition. computers run in Cursor's cloud and reach the internet through shared static egress IP addresses. Cursor offers one other method, routing traffic through a member's desktop, but it serves a different need.
- Method
- Route traffic through a desktop
- Use it when
- One member needs public sites to see their device's IP address, such as a site that allowlists office IPs
- Who controls it
- Each member, with an Enterprise admin able to remove the option
- Method
- Install a networking client with Team Setup
- Use it when
- Your Enterprise team needs a consistent connection on every hosted computer
- Who controls it
- Team admins, through manifests
| Method | Use it when | Who controls it |
|---|---|---|
| Route traffic through a desktop | One member needs public sites to see their device's IP address, such as a site that allowlists office IPs | Each member, with an Enterprise admin able to remove the option |
| Install a networking client with Team Setup | Your Enterprise team needs a consistent connection on every hosted computer | Team admins, through manifests |
The first is a personal switch. The second is a fleet mechanism that your team owns and operates.
The desktop route still blocks sites that resolve to a private or VPN address, unless your organization has allowed them. For private services, Cursor's docs point you to Team Setup.
Team Setup Scripts is Enterprise only and doesn't appear on other plans. Network Controls is Enterprise only too. Its network policy is a separate layer that still applies, so private network reach doesn't replace your destination allowlist.
This is covered hands-on in Agent Mode Foundations — 6 short Units, free to read.
Rather do it than read about it? Run 11 interactive Cursor walkthroughs in a simulated editor. Free, no account needed.
How do you route Grok Bot traffic through a member's desktop?
Turn on one setting in the Grok BotAn early AI teammate product from SpaceXAI and Cursor that works across apps on a persistent cloud computer and asks for approval on selected actions; launch materials describe it as beta, but Cursor says Beta Services terms do not apply. Press Enter for the full definition. desktop app. Destinations then see the device's IP address, which is what a site that allowlists office IPs needs.
- 1In the Grok BotAn early AI teammate product from SpaceXAI and Cursor that works across apps on a persistent cloud computer and asks for approval on selected actions; launch materials describe it as beta, but Cursor says Beta Services terms do not apply. Press Enter for the full definition. desktop app, open Settings, then Computer.
- 2Under Your computer, turn on Route traffic through this computer.
- 3To stop the route, turn the setting off.
The route uses the current device's network and IP address. It stops when the member turns the setting off or an Enterprise admin disables Allow Local Egress Routing. It doesn't open your private network to the Bot. Sites that resolve to a private or VPN address are blocked unless they've been allowed for your organization, and the setting shows how many sites were blocked this session.
Each member controls their own desktop route. Enterprise admins can remove the option for the whole team from Grok BotAn early AI teammate product from SpaceXAI and Cursor that works across apps on a persistent cloud computer and asks for approval on selected actions; launch materials describe it as beta, but Cursor says Beta Services terms do not apply. Press Enter for the full definition. in the Cursor dashboard.
How does Team Setup install a networking client on every computer?
Cursor provides the hook: Team Setup Scripts runs your install scripts on every team computer. You own the rest, which means installing the client, configuring it, authenticating computers, maintaining access rules and keeping up with your vendor's changes. Cursor installs nothing by default and doesn't operate or monitor your network client. The dashboard shows no client status.
Before you start, check these prerequisites:
- You are a team admin on the Enterprise plan.
- Your client runs on Debian-based Linux and can be installed and started from a shell script. Team computers run Linux, and scripts run as the computer user with sudo available.
- Your network has a way in for that client: a gateway, exit node or tunnel connector inside the VPC or intranet you want to reach.
- You have decided how computers authenticate. Credentials stay out of the script. If a script needs one, store it as a Team Secret.
Team Setup Scripts lives under Bot Computers on the Grok BotAn early AI teammate product from SpaceXAI and Cursor that works across apps on a persistent cloud computer and asks for approval on selected actions; launch materials describe it as beta, but Cursor says Beta Services terms do not apply. Press Enter for the full definition. page of the Cursor dashboard. Each manifest holds one or more script entries, and each entry has an ID, a Setup Script and an optional Check Script. If the Check Script exits 0, the Setup Script is skipped. After a setup runs, the check runs again to confirm it worked.
- 1Open Grok BotAn early AI teammate product from SpaceXAI and Cursor that works across apps on a persistent cloud computer and asks for approval on selected actions; launch materials describe it as beta, but Cursor says Beta Services terms do not apply. Press Enter for the full definition. in the Cursor dashboard and find Team Setup Scripts under Bot Computers.
- 2Next to Manifests, select + to create a New Manifest and enter a Manifest ID, for example private-network.
- 3In the script entry, set the ID (for example install-network-client) and write the Setup Script: install your client following your provider's Linux install documentation, then start it and connect it to your network.
- 4Optionally add a Check Script, for example command -v <your-client>, so computers that already have the client skip the install.
- 5Select Save.
To edit the manifest as JSON, switch the editor from Form to JSON at the top. The structure looks like this:
{
"manifestId": "private-network",
"entries": [
{
"id": "install-network-client",
"setup": "#!/usr/bin/env bash\nset -euo pipefail\n# 1) Install your networking client per your provider's Linux install docs\n# 2) Start the client and connect it to your network per your configuration",
"check": "command -v <your-client>"
}
]
}How do Team Setup scripts run, and where do credentials go?
Entries run one at a time, in order, and each script has a 30-minute timeout. Scripts run when a computer starts and on a periodic refresh, roughly daily, while it runs. A script that fails doesn't block the computer, and it's retried on a later refresh. Cursor notes there is no fleet view of script results today.
Keep secret values out of the script text. Manifests are plain text applied to your whole fleet, and scripts run as the computer user on every team computer. If a script needs an auth key or token, store it as a Team Secret and read it from the environment, for example "$MY_AUTH_KEY". Team Secrets are Enterprise only and present only while the script runs, and script output is redacted before it's logged. A computer whose setup comes from more than one team receives no secrets.
To run a manifest on one cohort's computers only, add it under the group's Grok BotAn early AI teammate product from SpaceXAI and Cursor that works across apps on a persistent cloud computer and asks for approval on selected actions; launch materials describe it as beta, but Cursor says Beta Services terms do not apply. Press Enter for the full definition. tab instead. Group manifests follow the same rules as the team's.
Should you use Tailscale or Cloudflare Tunnel?
Either can work, because Team Setup needs only a client that installs and runs on Debian-based Linux from a shell script. Cursor's docs treat them differently, though. Tailscale with an exit node is the configuration the pattern has been exercised with. Cloudflare Tunnel hasn't been exercised on team computers the same way, so validate it on a pilot computer before you roll it out.
- Aspect
- What it gives the computer
- Tailscale
- Network-level reach, and with an exit node, egress from your network
- Cloudflare Tunnel
- Specific services published through Cloudflare's edge behind Access, per service rather than whole-network
- Aspect
- What you run inside your network
- Tailscale
- A tailnet with an exit node inside the VPC or intranet
- Cloudflare Tunnel
- A cloudflared connector with the services you need routed through it
- Aspect
- Check Script
- Tailscale
- command -v tailscale
- Cloudflare Tunnel
- command -v cloudflared
- Aspect
- Sign-in
- Tailscale
- Login URL opened in the computer's browser, or a reusable tagged auth key stored as a Team Secret
- Cloudflare Tunnel
- Cloudflare Access policy. With identity-based policies, the member signs in through the browser.
- Aspect
- IPs other services see
- Tailscale
- Egress from your network via the exit node
- Cloudflare Tunnel
- Unchanged
| Aspect | Tailscale | Cloudflare Tunnel |
|---|---|---|
| What it gives the computer | Network-level reach, and with an exit node, egress from your network | Specific services published through Cloudflare's edge behind Access, per service rather than whole-network |
| What you run inside your network | A tailnet with an exit node inside the VPC or intranet | A cloudflared connector with the services you need routed through it |
| Check Script | command -v tailscale | command -v cloudflared |
| Sign-in | Login URL opened in the computer's browser, or a reusable tagged auth key stored as a Team Secret | Cloudflare Access policy. With identity-based policies, the member signs in through the browser. |
| IPs other services see | Egress from your network via the exit node | Unchanged |
Subnet routers are another Tailscale option for exposing specific private ranges. Validate that arrangement on a pilot computer first.
With a Tailscale auth key, every team computer joins under the same key and tags rather than under the member's identity, so scope the key's ACLs to what every team computer may reach. With browser login, your identity provider's policies apply, but a member has to sign in on each computer.
Cloudflare Tunnel handles HTTP and TCP services differently. Reach private HTTP services at the hostname you routed through the tunnel, with Cloudflare Access enforcing your policy. For private TCP services such as databases or SSH, run cloudflared access tcp on the computer to open a local listener, then point the tool at it. A Bot can start the listener in its shell when it needs the service.
Whichever you pick, you verify it the same way. Start with one or two pilot computers, authenticate them and confirm the connection in your vendor's console. Then ask a Bot to reach an internal hostname it couldn't reach before. Cursor's docs give these causes when it fails:
- The client installed but nobody authenticated. With an auth key, check that the Team Secret exists, its name matches what the script reads, and the key hasn't expired.
- An allowlist-only network policy blocks your vendor's coordination servers, relays or tunnel hostname. Allow the endpoints from the vendor's docs.
- The Tailscale exit node isn't advertised or approved. Check route settings in the admin console.
- The Cloudflare connector inside your network is down. Check tunnel health in your Cloudflare dashboard.
- Cloudflare Access denies the request. Check Access logs and confirm the member has authenticated.
- A service token was embedded in the setup script. Use identity-based Access, or store the token as a Team Secret.
- A cloudflared access tcp listener isn't running when the Bot needs it. Listeners don't persist across sessions, so start one when needed.
- The computer was recreated and the session didn't survive. Authenticate again.
What happens on existing computers, and what stays the same?
New computers apply manifests when they start, and running computers pick up changes on a periodic refresh, roughly daily. To apply a manifest change immediately, recreate the computer or have the member reset it from the desktop app. On Enterprise, admins can recreate or terminate a member's computer from the dashboard, and the durable disk is kept.
Image updates recreate computers automatically, and your scripts re-apply. Sign-in sessions, including your network client's login, may need to be re-established afterward.
The Grok BotAn early AI teammate product from SpaceXAI and Cursor that works across apps on a persistent cloud computer and asks for approval on selected actions; launch materials describe it as beta, but Cursor says Beta Services terms do not apply. Press Enter for the full definition. network policy is a separate layer that controls which destinations team computers may reach. If your team uses Team allowlist only, add the destinations your client needs, such as coordination servers, relays and gateways, from your vendor's documentation. Running computers apply policy changes within about a minute and sleeping computers when they next wake, so you don't need to recreate the computer.
Cursor's docs list four limitations:
- This is a pattern you operate, not a Cursor-managed network mode. Cursor doesn't install, operate or monitor your networking client, and support for the client comes from your vendor.
- Regular internet traffic still egresses through Cursor's shared static IP ranges unless you route it through your own network. Dedicated per-customer egress IPs are not available.
- There is no fleet view of script results today. Verify a pilot computer before rolling out team-wide.
- This is not the Cloud AgentsAgents that run in a Cursor-managed virtual machine, check out the repo, do the work and open a pull request, then shut down, with no load on your laptop. Press Enter for the full definition. setup. Cloud Agents have their own Tailscale and Cloudflare Tunnel recipes, and if Grok BotAn early AI teammate product from SpaceXAI and Cursor that works across apps on a persistent cloud computer and asks for approval on selected actions; launch materials describe it as beta, but Cursor says Beta Services terms do not apply. Press Enter for the full definition. delegates work to Cloud Agents, those agents run under Cloud Agent network settings, not your computer's network client.
Frequently asked questions
Can I put an auth key or credential in the Grok Bot setup script?
Not in the script text. Manifests are plain text applied to your whole fleet. Store the credential as a Team Secret on the Grok Bot page and have the script read it as an environment variable. Where your vendor supports it, interactive browser login is the simplest option, since your identity provider's policies apply.
Which plans include Team Setup Scripts?
Team Setup Scripts is Enterprise only, and team admins manage manifests. If it doesn't appear on the Grok Bot page of the dashboard, you aren't on Enterprise, or your account team needs to enable Grok Bot for the organization.
Does a private network connection change the IP addresses my services see?
For traffic routed through your network, yes. It arrives from inside your network, via your exit node, gateway or tunnel connector. Everything else continues to egress from Cursor's shared static ranges.
What happens if a setup script fails on some computers?
The computer still starts, and the failed entry is retried on a later refresh. There's no fleet view of script results, so verify a pilot computer before you roll out to the whole team.
Sources & last verified
- Cursor docs: Grok Bot private networks
- Cursor docs: Grok Bot security
- Cursor docs: Grok Bot for Teams and Enterprise
- Cursor docs: Grok Bot identity and access
- Cursor docs: Grok Bot settings
- Cursor docs: Cloud Agents setup
Cursor ships frequently. Facts verified against primary sources on October 28, 2026.