Get Started with Agent Networks
Setting up Anypoint Code Builder, permissions, access, and gateways ensures that you can create agent networks quickly and easily.
Before You Begin with Agent Networks
Before you start your agent network project, make sure that you have these products and access.
Agent Network Prerequisites
| Task | Product Prerequisites | Permissions and Access Prerequisites |
|---|---|---|
Set up agent network |
||
Create target space using Anypoint Runtime Manager |
Managed Flex Gateway with target space entitlements. Create at least one small Managed Flex Gateway and one large Managed Flex Gateway.
|
|
Set up ingress and egress gateways for target space using Anypoint Code Builder Command Palette |
Managed Flex Gateway with target space entitlements. Create at least one small Managed Flex Gateway and one large Managed Flex Gateway.
|
Runtime Manager: Manage Servers permission |
Set up ingress and egress gateways for target space using Anypoint CLI |
Managed Flex Gateway with target space entitlements. Create at least one small Managed Flex Gateway and one large Managed Flex Gateway.
|
Runtime Manager: Manage Servers permission |
Create project |
||
Create project using Anypoint Code Builder with MuleSoft Dev Agent |
Anypoint Code Builder desktop or web IDE. For more information, see Getting Started with Anypoint Code Builder.
|
A tenant relationship established with a trusted Salesforce organization.
|
Create project using Anypoint Code Builder UI or Command Palette |
Anypoint Code Builder desktop or web IDE. For more information, see Getting Started with Anypoint Code Builder.
|
Configure your allowlist. For more information, see URLs to Allow to Run Anypoint Code Builder. |
Create project using Anypoint CLI |
Java 17. Because agent network binaries require Java to build the agent network, make sure you install Java 17 on your machine and set the |
Runtime Manager: Manage Servers permission |
Define agent network specification |
||
Add Exchange assets to project using Anypoint Code Builder with MuleSoft Dev Agent
|
Einstein enablement in Access Management. For more information, see Enabling or Disabling Agentforce for Anypoint Platform. |
A tenant relationship established with a trusted Salesforce organization.
|
Add Exchange assets to project using Anypoint CLI
|
Java 17. Since agent network binaries require Java to build the agent network, make sure you install Java 17 on your machine and set the JAVA_HOME environment variable. |
Runtime Manager: Manage Servers and Anypoint Design Center: Design Center Developer permissions |
Build project (applies only to CLI) |
||
Build project using Anypoint CLI |
Java 17. Because agent network binaries require Java to build the agent network, make sure you install Java 17 on your machine and set the JAVA_HOME environment variable.
|
Runtime Manager: Manage Servers permission |
Publish project assets to Exchange |
||
Publish project assets using Anypoint Code Builder with MuleSoft Dev Agent |
Einstein enablement in Access Management. For more information, see Enabling or Disabling Agentforce for Anypoint Platform.
|
A tenant relationship established with a trusted Salesforce organization.
|
Publish project assets using Anypoint Code Builder UI or the command palette |
Allowlist Anypoint Code Builder URLs. For more information, see URLs to Allow to Run Anypoint Code Builder.
|
|
Publish project assets using Anypoint CLI |
Java 17. Because agent network binaries require Java to build the agent network, make sure you install Java 17 on your machine and set the |
Anypoint Exchange: Exchange Contributor and Runtime Manager: Manage Servers permissions |
Deploy project instance |
||
Deploy project instance using Anypoint Code Builder with MuleSoft Dev Agent |
Einstein enablement in Access Management. For more information, see Enabling or Disabling Agentforce for Anypoint Platform.
|
A tenant relationship established with a trusted Salesforce organization.
|
Deploy project instance using Anypoint Code Builder UI or command palette commands |
Allowlist Anypoint Code Builder URLs. For more information, see URLs to Allow to Run Anypoint Code Builder.
|
|
Deploy project instance using Anypoint CLI |
Java 17. Because agent network binaries require Java to build the agent network, make sure you install Java 17 on your machine and set the |
API Manager: Deploy API Proxies and Manage Policies and Runtime Manager: Create Applications permissions |
Create a Target Space for Your Environment
To deploy an agent network, you need a target space. You can either create a private space for CloudHub 2.0 deployment or a target space for Runtime Fabric (limited availability). For more information about Runtime Fabric deployments, see Managed Flex Gateway on Runtime Fabric.
Create a Private Space for CloudHub 2.0 Deployment
-
Open Anypoint Runtime Manager.
-
Select the environment to use.
-
Select Private Spaces.
-
Select Create private space.
-
Enter a name for the private space. We recommend
agent-network-space. -
Select Create.
-
Select Create private network.
-
For the created private space, select Environments.
-
Associate the space with the business group and environments you need to deploy your agent network to. You must complete this step so that the private space appears as a valid deployment target in Anypoint Code Builder and Anypoint CLI.
Set Up Agent Network Gateways for Your Target Space
After you create a target space, set up the ingress and egress gateways for deployment. For agent networks, at least one small Managed Flex Gateway and one large Managed Flex Gateway is required in your environment. For more information about gateways, see Flex Gateway Deployment Models. For more information about Runtime Fabric deployments, see Managed Flex Gateway on Runtime Fabric.
-
In Anypoint Code Builder, open Command Palette.
-
Select MuleSoft: Set Up Agent Network Gateways.
-
If you’re not logged in, log in to your Anypoint Platform account.
-
Select the business group, environment, and private space.
These gateways are created automatically in the selected private space.
-
agent-network-ingress-gw (with public and internal endpoint)
-
agent-network-egress-gw (with internal endpoint only)
-



