Skip to main content
RemoteAgent allows you to run agents that are hosted on a remote AgentOS instance. It provides the same interface as a local agent, making it easy to integrate remote agents into your applications or compose them into teams and workflows.

Installation

Basic Usage

Parameters

Properties

id

Returns the agent ID.

name

Returns the agent’s name from the remote configuration.

description

Returns the agent’s description from the remote configuration.

role

Returns the agent’s role from the remote configuration.

tools

Returns the agent’s tools as a list of dictionaries.

db

Returns a RemoteDb instance if the agent has a database configured.

knowledge

Returns a RemoteKnowledge instance if the agent has knowledge configured.

Methods

arun

Execute the remote agent asynchronously.
Parameters: Returns:
  • RunOutput when stream=False
  • AsyncIterator[RunOutputEvent] when stream=True

acontinue_run

Continue a paused agent run with tool results.
Parameters: Returns:
  • RunOutput when stream=False
  • AsyncIterator[RunOutputEvent] when stream=True

cancel_run

Cancel a running agent execution.
Parameters: Returns: bool - True if successfully cancelled

get_agent_config

Get the agent configuration from the remote server (always fetches fresh).
Returns: AgentResponse

refresh_config

Force refresh the cached agent configuration.
Returns: AgentResponse

A2A Protocol Support

RemoteAgent can connect to any A2A-compatible server using the protocol="a2a" parameter:

Connecting to Agno A2A Servers

Connecting to Google ADK

Google ADK uses JSON-RPC mode. Set a2a_protocol="json-rpc":

Protocol Options

Using in AgentOS Gateway

Remote agents can be registered in a local AgentOS to create a gateway:
See AgentOS Gateway for more details.

Error Handling

Authentication

For authenticated AgentOS instances, pass the auth_token parameter: