plugin-desearch is a plugin for ElizaOS that adds powerful AI and web search capabilities powered by the Desearch API.
In this guide, you'll learn how to:
This example sets up an ElizaOS agent that gathers Twitter and web insights on any topic.
Use your preferred package manager:
Add your Desearch API key in your .env file:
Make sure your ElizaOS runtime loads environment variables correctly.
Import and register the plugin inside your ElizaOS config:
Once the plugin is registered, your agent can access these actions:
| Action Name | Description |
|---|---|
AI_SEARCH | AI-powered multi-platform search |
TWITTER_LINKS_SEARCH | AI-assisted search for Twitter links |
WEB_LINKS_SEARCH | AI-assisted search for web links |
TWITTER_SEARCH | Keyword search on X (Twitter) |
TWEET_BY_ID | Get tweet details by ID |
TWEET_BY_USER | Search a user's tweets by query |
LATEST_TWEET | Fetch latest tweets from a user |
WEB_SEARCH | Standard web search |
User: Can you perform a search for the latest AI advancements?
Agent: Sure, let me perform an AI-powered search for the latest AI advancements.
User: Find recent research papers on machine learning.
Agent: I'll search for recent research papers on machine learning.
User: Can you find Twitter links related to AI advancements?
Agent: Sure, let me find some Twitter links related to AI advancements.
User: Search for Twitter discussions on machine learning.
Agent:I'll search for Twitter discussions on machine learning.
User: Can you find web links related to AI advancements?
Agent: Sure, let me find some web links related to AI advancements.
User: Search for web articles on machine learning.
Agent: I'll search for web articles on machine learning.
User: Search for tweets on machine learning.
Agent: I'll search for tweets on machine learning.
User: https://twitter.com/user/status/1234567890
Agent: Sure, let me fetch tweets from the provided URLs.
User: Search by tweet id? 5544332211
Agent: Let me fetch tweet by id.
User: Search tweets for Elonmusk
Agent: Sure, let me search for tweets related to 'Elonmusk'.
User: Can you find web contents related to AI advancements?
Agent: Sure, let me search for web content related to AI advancements.
DESEARCH_API_KEY is set in your environment.All actions implement ElizaOS’s Action interface:
This makes the plugin fully extensible and override-friendly.
DESEARCH_API_KEY securely using .env or secrets managerThe plugin-desearch plugin lets ElizaOS agents perform real-time, AI-powered searches across the web and social media.
It’s perfect for agents that: