Skip to main content
Use a RemoteAgent as a team member. A RemoteAgent connects to an agent running on a remote AgentOS server, enabling distributed agent architectures.
basic_remote_member.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Configure the remote agent

Start an AgentOS server that registers an agent you can call. Replace http://localhost:7777 and explorer in the saved file with that server’s base URL and agent ID. The v2.7.4 cookbook does not include a matching explorer server.
5

Run the example

Save the code above as basic_remote_member.py, then run:
Full source: cookbook/03_teams/23_remote_agents/01_basic_remote_member.py