# Deploy a first integration with XTM Composer

> Check that XTM Composer runs in the XTM stack and that OpenCTI and OpenAEV see it, then deploy a first integration from the interface.

- URL: https://filigran.io/docs/lts/7.260811-lts/deploy/integrations/quick-start/
- Products: OpenCTI 7.260811.0-lts.1, OpenAEV 3.261118.0, XTM Composer 3.261121.0
- OpenCTI line: 7.260811 LTS · 7.260811.0-lts.1
- Edition: requires an Enterprise Edition license
- For: platform engineers, evaluators
- Type: Tutorial

This tutorial checks XTM Composer in a running XTM stack and deploys a first integration with it, in about ten minutes. At the end, OpenCTI and OpenAEV see XTM Composer, and you have deployed a first integration from the interface of a platform, which XTM Composer runs as a container.

**Diagram: The XTM stack starts rsa-key-generator and XTM Composer, which registers with both platforms and runs as a container every integration you start**

- xtm-docker: docker compose up (modules/xtm-composer.yml)
- Key: rsa-key-generator (4096-bit key in rsakeys)
- XTM Composer: xtm-composer (Starts once the platforms are healthy)
- Platforms: OpenCTI (Catalog: Deploy, Create, Start), OpenAEV (Catalog: Deploy, Create, Start)
- Docker: Integration container (Label xtm-manager)

Connections:

- docker compose up → rsa-key-generator: starts
- docker compose up → xtm-composer: starts
- rsa-key-generator → xtm-composer: RSA key
- xtm-composer → OpenCTI: Manager registered
- xtm-composer → OpenAEV: Manager registered
- xtm-composer → Integration container: creates on Start

It uses [FiligranHQ/xtm-docker](https://github.com/FiligranHQ/xtm-docker), where XTM Composer is part of the stack: it starts with the rest, generates its own RSA key and serves both OpenCTI and OpenAEV. To run XTM Composer outside xtm-docker, see [Install XTM Composer](https://filigran.io/docs/lts/7.260811-lts/deploy/integrations/install-composer/).

## What you need {#what-you-need}

- The XTM stack running from xtm-docker. If you do not have it yet, follow [Run the XTM platform locally](https://filigran.io/docs/lts/7.260811-lts/deploy/quick-start/): it starts XTM Composer with the rest of the stack.
- An Enterprise Edition license for each platform you deploy integrations on.
- A terminal in the `xtm-docker` folder.

## Step 1: Check that XTM Composer is in the stack {#step-1-check-that-xtm-composer-is-in-the-stack}

1. List the services of XTM Composer in the stack.

   ```bash
   docker compose config --services | grep -E '^(xtm-composer|rsa-key-generator)$'
   ```

   **Check that it worked**

   It lists `rsa-key-generator` and `xtm-composer`. If it does not, your copy of xtm-docker is older: get the current one with `git pull`, then run the command again.

## Step 2: Start XTM Composer {#step-2-start-xtm-composer}

1. Download the current images, then start what is not running yet.

   ```bash
   docker compose pull
   docker compose up -d
   ```

   `rsa-key-generator` creates a 4096-bit key in the `rsakeys` volume the first time, then XTM Composer starts once OpenCTI, OpenAEV and RabbitMQ are healthy.

2. Check that XTM Composer loaded its key and registered with both platforms.

   ```bash
   docker compose logs xtm-composer | grep -E 'Successfully loaded RSA private key|Manager registered'
   ```

   **Check that it worked**

   One line says `Successfully loaded RSA private key (PKCS#8 format)`, and one `Manager registered` line appears for each platform, OpenCTI and OpenAEV. Registration is retried every minute: if a line is missing, wait a minute and run the command again, then see [Troubleshoot XTM Composer](https://filigran.io/docs/lts/7.260811-lts/deploy/integrations/troubleshoot/).

## Step 3: Check the platforms see it {#step-3-check-the-platforms-see-it}

Sign in to each platform and open its catalog: **Integrations**, **Available** tab (**Data > Ingestion > Connector catalog** before 7.260811) in OpenCTI, **Integrations** > **Catalog** in OpenAEV.

**Check that it worked**

The catalog no longer says that deploying requires the installation of the Integration Manager. If it says that deployment requires an Enterprise Edition license, enter your license first.

## Step 4: Deploy a first integration {#step-4-deploy-a-first-integration}

1. In the catalog, click **Deploy** on an integration whose settings you have, for example one that needs no API key.
2. Fill the form and click **Create**. The instance opens, stopped.
   - In OpenCTI: a **Display name**, from which OpenCTI derives the **Instance name**, and the account the connector writes as, with **Automatically create a service account** or an existing **Service account responsible for data creation**.
   - In OpenAEV: a unique **Instance name**.
3. Click **Start**.

   **Check that it worked**

   On the host, XTM Composer has created a container for the instance, named after the instance name in lower case, with the label `xtm-manager` it puts on every container it manages:

   ```bash
   docker ps --filter label=xtm-manager --format '{{.Names}} {{.Status}}'
   ```
   The instance is `Up`, and its **Logs** tab in the platform fills within a few seconds. XTM Composer 3.261021.1 and earlier label the container `opencti-manager` only. If no container appears and the **Logs** tab says that the image cannot be pulled, see [The image cannot be pulled](https://filigran.io/docs/lts/7.260811-lts/deploy/integrations/troubleshoot/#the-image-cannot-be-pulled).

## What you learned {#what-you-learned}

- [XTM Composer](https://filigran.io/docs/lts/7.260811-lts/deploy/integrations/composer/) runs the integrations you deploy from the interface of OpenCTI and OpenAEV.
- [XTM Composer architecture](https://filigran.io/docs/lts/7.260811-lts/deploy/integrations/architecture/): it registers with a public key, then reconciles every few seconds what the platform asks with what runs.
- [Configure XTM Composer](https://filigran.io/docs/lts/7.260811-lts/deploy/integrations/configure-composer/) lists the settings you can change, such as the network its integrations join.
