Skip to main content
1

Create the remote server file

First, create a server that will host agents remotely:
remote_server.py
2

Create the gateway file

gateway.py
3

Set up your virtual environment

4

Install dependencies

5

Export your OpenAI API key

6

Start the Remote Server

In terminal 1, start the remote server:
7

Start the Gateway

In terminal 2, start the gateway:
8

Use the Gateway

Now you can access all agents through the gateway at http://localhost:7777:
If authorization is enabled on remote servers and all endpoints are protected, not all of the functions work correctly on the gateway. Specifically /config, /workflows, /workflows/{workflow_id}, /agents, /teams, /agent/{agent_id}, /team/{team_id} need to be unprotected for the gateway to work correctly.