Tutorial

Run the XTM platform locally

Start the whole XTM platform, XTM One, OpenCTI, OpenAEV, OpenCRQ and XTM Composer, on one machine with Docker Compose.

All modulesFor platform engineers and evaluators

This tutorial starts the XTM platform on one machine with the official Docker deployment, FiligranHQ/xtm-docker, in about fifteen minutes. Two commands configure and start the whole stack: XTM One, at the center of the platform, with OpenCTI, OpenAEV, OpenCRQ, XTM Composer, their default integrations and the shared services. No module is optional. It is meant to try the platform or to develop against it, not for production.

GETCONFIGURESTARTPLATFORMSYOUgit cloneFiligranHQ/xtm-docker.envdocker compose -f init.yml run --rm initdocker compose up -d--pull alwaysXTM Onelocalhost:8090OpenCTIlocalhost:8080OpenAEVlocalhost:8081OpenCRQlocalhost:8082Sign inAdmins of .env, OpenCRQ through XTMOne
  1. git clone → .env: random secrets
  2. .env → docker compose up -d
  3. docker compose up -d → XTM One: starts
  4. docker compose up -d → OpenCTI: starts
  5. docker compose up -d → OpenAEV: starts
  6. docker compose up -d → OpenCRQ: starts
  7. XTM One → Sign in: healthy
  8. OpenCTI → Sign in: healthy
  9. OpenAEV → Sign in: healthy
  10. OpenCRQ → Sign in: healthy
You clone xtm-docker, create .env with one command and start the whole stack with another, then sign in to each platform on localhost
Let an AI agent do it

Every step below has a command and a check, so a coding agent such as Claude Code can follow it on its own. See Deploy with an AI agent.

What you need

  • Docker Engine 20.10 or later with Docker Compose 2.20.2 or later (the stack is split into included files): docker compose version answers.
  • On a Mac with an Apple chip: Docker Desktop with Use Rosetta for x86_64/amd64 emulation on. XTM One is published for Intel processors only and runs through emulation.
  • 16 GB of RAM for the whole platform, 32 GB recommended, and 50 GB of free disk.
  • Git, to get the deployment. Nothing else: the configuration is generated in a container, and the same commands work on Linux, macOS and Windows.
  • Free ports on the machine: 8080 (OpenCTI), 8081 (OpenAEV), 8082 (OpenCRQ), 8090 (XTM One), and 9200, 9000, 5672, 15672 and 6379 for the shared services.

What the stack runs

Every module starts, with the shared services they use, and each platform answers on its own address.

1 · What the stack runs: every module
XTM OneThe agentic AI orchestration layer at the center of the platform, its web application and its worker.
OpenSandbox · optional, profile opensandboxRuns the code of custom tools, of the code interpreter and of the checks of a repository workspace, one container per run.
OpenCTIThe cyber threat intelligence platform and its worker.
Default connectors · 10 servicesFile imports and exports, document analysis, the OpenCTI datasets and MITRE ATT&CK.
XTM Composer Deploys and runs integrations from the interface of OpenCTI and OpenAEV.
OpenAEVThe adversarial exposure validation platform.
Default collectors and injectors · 6 servicesMITRE ATT&CK, the OpenAEV datasets, Atomic Red Team, NVD CVE, Nmap and Nuclei.
XTM Composer Deploys and runs integrations from the interface of OpenCTI and OpenAEV.
OpenCRQCyber risk quantification, fed by OpenCTI and OpenAEV, registered with XTM One.
2 · The shared services they use
ElasticsearchStores and searches the knowledge of OpenCTI and OpenAEV
S3 storageFiles, imports and exports (RustFS, S3 compatible)
PostgreSQLDatabase of OpenAEV, OpenCRQ and XTM One (pgvector)
RabbitMQQueues between platforms, workers and integrations
RedisCache, sessions and live events
3 · Download and start the whole stack
docker compose pull
docker compose up -d

No module is optional: the XTM platform is deployed whole, as the xtm-docker compose describes it.

  • XTM Onehttp://localhost:8090
  • OpenCTIhttp://localhost:8080
  • OpenAEVhttp://localhost:8081
  • OpenCRQhttp://localhost:8082
Generated from FiligranHQ/xtm-docker@24cd380 (docker-compose.yml)

Start the platform

  1. Get the deployment.

    git clone https://github.com/FiligranHQ/xtm-docker.git
    cd xtm-docker
    
  2. Create the configuration.

    docker compose -f init.yml run --rm init
    

    A temporary container creates .env from .env.sample: a random value for every password, key and token, the users of the shared services, and mail sent to the local machine. It prints the address and the admin password of each platform. Every secret stays in .env, which only you can read; the command never overwrites an existing .env.

    Check that it worked
    docker compose config --quiet
    

    It prints nothing: the stack's configuration is complete.

    On a machine with 16 GB of RAM, give Elasticsearch 2 GB instead of 4: set ELASTIC_MEMORY_SIZE=2G in .env. If another program uses one of the ports above, change OPENCTI_PORT or XTM_ONE_PORT in .env. The ports of OpenAEV, OpenCRQ and the shared services move in docker-compose.override.yml, with OPENAEV_PORT and OPENCRQ_PORT set to match, as Network and ports shows.

  3. Start the platform.

    docker compose up -d --pull always
    

    --pull always downloads the current images first, even if you have run XTM before: Docker Compose would otherwise start an older image kept under the same latest tag. The first start creates the databases: allow a few minutes.

    Check that it worked
    docker compose ps opencti openaev xtm-one opencrq
    

    The four platforms say (healthy) in their status. Run it again until they do.

  4. Sign in at the addresses the second step printed, with the admin email and password of each platform. They are in .env too: OPENCTI_ADMIN_PASSWORD, OPENAEV_ADMIN_PASSWORD and XTM_ONE_ADMIN_PASSWORD. OpenCRQ has no password: Sign in with XTM One, as the admin of XTM One. You land in its first tenant, Default, which OpenCRQ creates at its first start and xtm-docker already connects to OpenCTI and OpenAEV.

Stop and start over

ToRunYour data
Stop the platformdocker compose stopKept
Remove the containersdocker compose downKept in the volumes
Start from scratchdocker compose down -vDeleted, with every volume

What's next

NextDeploy with an AI agent
Deploy
Install, configure, secure, scale and upgrade the platform.

Published

Overview
Run the XTM platform locally
OverviewDeploy with an AI agent