A plugin for integrating Anyone protocol proxy services into Eliza agents.
pnpm add @elizaos/plugin-anyone
- Start and stop Anyone client services
- Automatic proxy configuration for axios
- SOCKS proxy support (port 9050)
- Clean proxy cleanup and restoration
Add the plugin to your agent's configuration:
import { anyonePlugin } from "@elizaos/plugin-anyone";
const character = {
plugins: [anyonePlugin]
};
Starts the Anyone client and configures proxy settings.
Example commands:
"Can you start Anyone for me?"
"Initialize the Anyone client please"
"Launch Anyone for me"
Stops the Anyone client and cleans up proxy settings.
Example commands:
"Can you stop Anyone for me?"
"Please shut down Anyone"
"Close Anyone for me"
The plugin provides two main services:
-
AnyoneClientService
: Manages the Anyone client instance- Singleton pattern implementation
- Handles client initialization and cleanup
- Configures SOCKS proxy on port 9050
-
AnyoneProxyService
: Handles axios proxy configuration- Preserves original axios settings
- Automatically applies proxy settings
- Provides clean restoration of original config
- @anyone-protocol/anyone-client: ^0.4.3
- axios: ^1.7.9