Installation from OCI Marketplace

Deploy Agent Factory with an OCI Resource Manager stack that configures a VM, network, database, and Vault secrets based on your selections.

The Oracle AI Database Private Agent Factory Marketplace listing launches a Resource Manager stack. The stack provisions a VM and configures Agent Factory. Depending on your selections, it can use an existing VCN and Autonomous AI Database (ADB), create a private ADB in an existing VCN, or create both a VCN and a private ADB. The stack uses the Agent Factory container image publicly released at the time of publication.

The resulting VM is not managed by the Agent Factory team. See Security and Operational Requirements for your responsibilities related to maintenance, security updates, certificates, and tenancy-specific requirements.

Note: If you already have a Marketplace instance configured, see Upgrade Your Marketplace Instance to upgrade to a newer version.

Important: The stack supports the configuration options shown in the deployment form. If your environment does not meet the prerequisites, your ADB uses an unsupported network configuration, or the database requires wallet-based mutual TLS, create a new network and ADB with the stack or install Agent Factory manually.

For other configurations or help designing OCI networking and access controls, see Set Up on Linux.

Prerequisites

Complete these prerequisites before you launch the Marketplace stack.

OCI Access and Permissions

You need access to the tenancy and region where you will deploy Agent Factory. Your account must be able to launch the Marketplace stack and create the Resource Manager stack and jobs. It also needs permissions for the compute, network, database, Vault, and secret compartments that you select. If your account does not have these permissions, contact your tenancy administrator.

Before deployment, you or your tenancy administrator must complete these tenancy preparations:

The stack does not create IAM policies, Dynamic Groups, Vaults, encryption keys, or secrets. Allow IAM and Dynamic Group changes time to propagate before deployment.

The stack uses an Oracle Linux 8 platform image and pulls the Agent Factory container image from OCI Container Registry (OCIR). It does not require a Marketplace compute image subscription, App Catalog permissions, permissions to manage IAM policies or Dynamic Groups, or Resource Manager private endpoint permissions. You still need permission to launch the Marketplace stack listing. See Required IAM Policies.

Secrets and Registry Access

Create the following secrets in the Vault that you select in the stack form:

An OCIR authentication token is not required for the Marketplace deployment.

For a deployment that uses an existing ADB, create a dedicated Agent Factory database user before you launch the stack. Store that user’s password in the selected Vault. Use the grants described in Database Preparation and Grants.

Enter only secret OCIDs in the Resource Manager form. Do not enter passwords or tokens in Terraform variables, tags, descriptions, logs, or support requests.

Network and Compute Requirements

The selected compute shape must be available in the target region, supported by your tenancy, and have sufficient quota and capacity. A boot volume of at least 100 GB is required. Use an ED25519 SSH public key to administer or troubleshoot the VM.

During first boot, the VM needs outbound access to OCI Vault, OCIR, Oracle Linux package repositories, PyPI when required, and the target ADB. It also needs an inbound path from your users to the application port.

When you use an existing VCN, you are responsible for its routes, DNS, egress, database reachability, and client access. The stack does not change existing route tables, security lists, network security groups, public IP policies, or database access controls.

When you create a VCN, the stack creates the required networking. A public compute subnet uses an Internet Gateway. A private compute subnet uses a Service Gateway for OCI services and a NAT Gateway for package and registry access. A private VM still needs a client access path, such as a load balancer, VPN, FastConnect, or Bastion port forwarding.

When you create an ADB in an existing VCN, use an ADB endpoint-subnet CIDR that is within the VCN and does not overlap any subnet in that VCN, including subnets in other compartments. Do not use 10.0.2.0/24; it overlaps the rootless Podman network range used by the current image.

Important: Deployment failures during VM creation are often caused by regional capacity, service limits, quota, or shape availability. If instance creation fails, try another supported shape or availability domain, review quota, or contact your tenancy administrator.

Required IAM Policies

Create these policies at the tenancy root. Replace the placeholders with your group’s and compartments’ OCIDs. Scope each permission to the compartment where the resource resides.

For background, see Required IAM Policy to Access Marketplace and Securing Resource Manager.

Deployment Permissions

Create a policy for the IAM group that launches and runs the Resource Manager stack. For example, name the policy agent-factory-deployment.

# Marketplace stack listing and Resource Manager
Allow group id <deployment-group-ocid> to use marketplace-listings in tenancy
Allow group id <deployment-group-ocid> to manage orm-stacks in tenancy
Allow group id <deployment-group-ocid> to manage orm-jobs in tenancy
Allow group id <deployment-group-ocid> to inspect compartments in tenancy
Allow group id <deployment-group-ocid> to inspect availability-domains in tenancy

# Oracle Linux platform image lookup
Allow group id <deployment-group-ocid> to read instance-images in compartment id <compute-compartment-ocid>

# Compute instance and boot volume
Allow group id <deployment-group-ocid> to manage instance-family in compartment id <compute-compartment-ocid>
Allow group id <deployment-group-ocid> to use volume-family in compartment id <compute-compartment-ocid>

# Existing VCN selection and stack-created network resources
Allow group id <deployment-group-ocid> to manage virtual-network-family in compartment id <network-compartment-ocid>

# Vault and secret selection
Allow group id <deployment-group-ocid> to read vaults in compartment id <vault-compartment-ocid>
Allow group id <deployment-group-ocid> to read secret-family in compartment id <vault-compartment-ocid>

# Required only when the stack creates an Autonomous AI Database
Allow group id <deployment-group-ocid> to manage autonomous-database-family in compartment id <database-compartment-ocid>

If you apply defined tags through the stack, also add this statement:

Allow group id <deployment-group-ocid> to use tag-namespaces in tenancy

The Marketplace policy grants access to the stack listing. The stack does not require permissions to manage IAM policies or Dynamic Groups.

Runtime VM Permissions

Create a separate policy for the Dynamic Group that matches the Agent Factory VM. For example, name the policy agent-factory-vm-runtime.

Allow dynamic-group id <vm-dynamic-group-ocid> to read secret-bundles in compartment id <vault-compartment-ocid> where target.vault.id = '<agent-factory-vault-ocid>'

This policy lets the VM retrieve only the secrets in the selected Vault:

If you use secrets in more than one Vault or compartment, create an equivalent policy statement for each Vault. Do not grant broad tenancy-wide secret access.

Dynamic Group Matching Rule

Match only the Agent Factory VM. Where possible, use a dedicated compute compartment and this matching rule:

All {instance.compartment.id = '<compute-compartment-ocid>'}

Do not use a compartment that contains unrelated instances. Every VM that matches this rule receives permission to retrieve the selected Vault secrets.

Launch Stack

  1. Visit the Agent Factory listing on Oracle Cloud Marketplace.

    Agent Factory Application in Marketplace

  2. Select Get App and sign in to the OCI tenancy and region where you want to deploy Agent Factory.

  3. Review the product information and usage instructions, then select Launch Stack.

    Agent Factory Marketplace product

  4. Review and accept the Publisher terms and conditions, then select Launch Stack.

    By default, the Resource Manager stack is created in the selected compartment.

    Launch stack

  5. In Stack Information, optionally rename the stack and select the Resource Manager compartment where you want to create it.

    Stack information

  6. In Compute Instance for Private Agent Factory Container, select the compute compartment, availability domain, shape, and boot volume size. For a flexible shape, set the OCPU and memory values. Upload or paste your ED25519 SSH public key.

    Description of the illustration compute-settings.png

  7. In Network for Compute and Database Connectivity, configure the VCN and compute subnet:

    • To use an existing VCN, select its compartment, VCN, and compute subnet. The VCN and subnet can be in the same or different compartments. Select an existing ADB or choose to create a new ADB.
    • To create a VCN, enter nonoverlapping VCN and compute subnet CIDRs, then select public or private compute access. The stack creates a new private ADB with the VCN.
    • When you create an ADB in an existing VCN, provide a valid, unused ADB endpoint-subnet CIDR that does not overlap another subnet in the VCN.

    Description of the illustration network-settings.png

  8. In the application and database configuration sections, enter the required database information.

    • For an existing ADB, select its compartment and a reachable database. Indicate whether the database is air-gapped. Use the dedicated application database user that you prepared before deployment.
    • For a new ADB, select its compartment, provide a unique database name, select the ADB ADMIN password secret, and set the ECPU count and storage. The database name must start with a letter, contain only letters and numbers, and be no more than 30 characters.
    • Select the Agent Factory database user. The stack uses the password secret to create this user when it creates a new ADB.

    Description of the illustration application-settings.png

    For a new ADB, the form also asks for the database name, ADB administrator password secret, ECPU count, storage, and license model. Keep Use license included for new Autonomous AI Database selected unless you are approved to use an existing Oracle Database license.

    Description of the illustration new-adb-settings.png

  9. Select the Vault compartment and Vault. Select the administrator password and database password secrets. When creating an ADB, also select the ADB ADMIN password secret. Enter the Agent Factory administrator user name and OCIR user name or email address.

  10. Set the application port and allowed client CIDR. The default port is 8080. For production, use a narrow CIDR such as your corporate NAT, VPN, Bastion, load balancer, or on-premises address range. Use 0.0.0.0/0 only for short-lived testing.

    Both OCI network rules and the VM firewall must allow this port. The stack configures both when it manages the relevant resources.

  11. Optionally, in Advanced settings, configure a resource name prefix and defined tags. If you create an ADB, use a unique name for each deployment.

    Description of the illustration advanced-settings.png

  12. Review the configuration and select Create. Run the Resource Manager Plan and Apply jobs when prompted.

    Create stack

  13. When the Apply job completes, open the stack Outputs tab and copy the application URL. For a public VM, the URL has this format:

    https://<instance-public-ip>:<application-port>/agentFactory/installation

    If the VM is in a private subnet, the URL might not be accessible from your network. Access depends on your tenancy’s routes and security rules. Contact your tenancy administrator for help. See Access Agent Factory Deployed in a Private Subnet.

    Description of the illustration stack-outputs.png

Access and Configure Application

Access the Application

After the Apply job completes, wait a few minutes for cloud-init and the container setup to finish. Do not repeatedly restart the VM during its first configuration. The application might load before setup is complete; wait until it redirects you to the login page before you configure it.

  1. Open the application URL in a browser.
  2. The deployment uses a self-signed certificate by default. If the browser displays a certificate warning, verify that the host is the VM you deployed before you proceed. Replace the certificate with an organization-approved certificate before production use.

    Browser certificate warning

    If you have verified the host and choose to proceed, select Advanced, then select Proceed to host or the equivalent option in your browser.

    Proceed to host

  3. Sign in with the Agent Factory administrator user name and the password stored in the Vault secret selected during deployment.

    Description of the illustration log-in.png

Configure LLM

Before you use Agent Factory, configure an LLM and set it as the default model. See Manage LLM for supported models and providers.

  1. Sign in and open Model Management.
  2. Create an LLM configuration for your provider. Enter the provider-specific endpoint, model, authentication, and other required settings.

    Description of the illustration llm-management.png

  3. Select Test Connection and confirm that the connection succeeds.
  4. Save the model configuration.
  5. Select the saved model and set it as the default model.

Optionally, configure an embedding model for data ingestion and retrieval. By default, Agent Factory uses the local multilingual-e5-base model to generate embeddings. If you choose OCI Generative AI as the embedding provider, the following embedding models are supported for RAG Agents:

Troubleshoot a Deployment

If the Resource Manager Apply job fails, review the job log. Common causes include insufficient permissions, unavailable compute capacity, overlapping network CIDRs, a missing Vault permission, or blocked access to OCIR.

If the Apply job succeeds but the application is unavailable, review Console history on the instance details page. Alternatively, connect to the VM through SSH and run:

sudo cloud-init status --long
sudo journalctl -u cloud-final -b --no-pager
sudo tail -n 200 /var/log/cloud-init-output.log
podman ps -a
podman logs -f oracle-appliedai-selfcontained

For an existing VCN or ADB, verify DNS, routes, security rules, and TCPS connectivity from the VM to the database. For a private VM, also verify the client access path.

Do not include passwords, tokens, or other secret values in support requests or diagnostic output.

Security and Operational Requirements

When you deploy Agent Factory through OCI Marketplace, review the following security and operational requirements.