General
anp-agent avatar

anp-agent

Cross-agent interaction skill via ANP protocol. Use decentralized identity (DID) to discover and invoke remote agents like maps, booking, and logistics services across the ANP network.

Introduction

The ANP Agent Skill is a robust integration layer designed to facilitate cross-agent communication using the Agent Network Protocol (ANP). By leveraging decentralized identity (DID:WBA), this tool enables users and local agents to securely authenticate and interact with a diverse ecosystem of remote services. It is primarily targeted at developers and users who require a unified interface to trigger multi-step, multi-agent workflows without manual context switching between different platforms.

Key features include:

  • Seamless interoperability through the standardized ANP protocol for remote agent discovery.
  • Secure communication enabled by DID-based authentication, ensuring verified identity across the network.
  • Built-in support for popular services including AMap for geolocation and navigation, logistics providers for package tracking, and specialized hotel booking assistants.
  • A flexible CLI interface allowing users to connect, manage, and execute specific methods on registered agents using standard JSON-formatted parameters.
  • Modular architecture where users can add, remove, or list authorized agents in the registry, providing a scalable solution for growing network needs.

Practical usage and considerations:

  • Users should start by connecting to target agents via their AD (Agent Description) URL using the provided anp_cli.py script to inspect available methods.
  • Input parameters are handled via JSON, requiring precise mapping to the specific agent method requirements, such as supplying coordinates for navigation or keywords for text searches.
  • Dependency management requires the standard anp and aiohttp Python libraries.
  • Security best practices must be observed regarding the management of private keys stored in the config/ directory to prevent unauthorized credential access.
  • The skill is ideal for building automation workflows where one agent might coordinate with another to plan a business trip, track real-time delivery status, or perform complex local search queries using deep-link capabilities.

Repository Stats

Stars
298
Forks
50
Open Issues
17
Language
Python
Default Branch
main
Sync Status
Idle
Last Synced
May 3, 2026, 07:41 PM
View on GitHub