[Step 1] Prepare your environment
Last updated
Last updated
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:
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:
Ensure Docker is running before proceeding.
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:
Your authentication token can be copied from your Ngrok Dashboard (https://dashboard.ngrok.com/get-started/setup/macos)
To tunnel a local port, for example 4000
, simply run:
Your port can also be copied from the Ngrok Dashboard (https://dashboard.ngrok.com/get-started/setup/macos)
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.