[Step 1] Prepare your environment

Before you begin integrating your autonomous agent with Spectra, you need to ensure that your system is properly set up. Below are the key prerequisites and instructions to help you get started:

Prerequisites

  1. Docker

  • What it is: Docker is a containerization platform that packages applications and all their dependencies together, enabling them to run consistently across various environments.

  • Why you need it: Using Docker allows you to run the application without installing additional dependencies directly on your machine. This not only simplifies setup but also helps avoid potential version conflicts.

  • How to install:

    • For Windows or macOS, download the Docker Desktop installer from Docker's official website and follow the installation instructions.

    • On Linux distributions (e.g., Ubuntu), you can typically install Docker by running a package manager command such as:

      sudo apt-get update
      sudo apt-get install docker.io
    • Ensure Docker is running before proceeding.

  1. Ngrok

    • What it is: Ngrok is a tool that creates a secure tunnel from the internet to your local environment.

    • Why you need it: By exposing your local server to the internet, Spectra can forward questions and requests to your agent running on your machine, even if you’re behind a firewall or NAT.

    • How to install:

      • Sign up for a free account at ngrok.com and follow the official suggested installation steps for your operating system.

      • Once downloaded, follow the installation instructions from Ngrok’s documentation, then authenticate your account by running:

        ngrok authtoken YOUR_AUTH_TOKEN
      • To tunnel a local port, for example 4000, simply run:

        ngrok http 4000
      • Take note of the forwarding URLs Ngrok provides (e.g., https://<your-ngrok-subdomain>.ngrok.io).

        • For example, in this case, the URL is https://0618-2600-4041-41fb-c500-75ee-5dc6-86be-e684.ngrok-free.app

    With Docker and Ngrok installed and running, you can now move on to setting up your local environment for developing, testing, and integrating your agent with Spectra Hedge Fund via the Lux framework.

Last updated