A curated collection of production-ready example agents built with the AgentX Protocol. Use these as starting points for your own autonomous agents.
| Example | Description | Difficulty |
|---|---|---|
trading_agent/ |
Autonomous DeFi trading agent with on-chain execution | ⭐⭐⭐ |
social_agent/ |
Social media monitoring and auto-response agent | ⭐⭐ |
research_agent/ |
Web research and report generation agent | ⭐ |
notebooks/agent_tutorial.ipynb |
Step-by-step Jupyter tutorial for building your first agent | ⭐ |
git clone https://github.com/agentx-protocol/AgentX-Examples.git
cd AgentX-Examples
pip install -r requirements.txtCopy .env.example to .env and add your API keys:
cp .env.example .env
# Edit .env with your OPENAI_API_KEY etc.python examples/trading_agent/main.pySimulates a trading agent that:
- Fetches mock price data for SOL, ETH, BTC
- Runs technical analysis (RSI, MACD-style signals)
- Proposes and logs a trade decision
- (Optional) Executes on devnet via AgentX Solana program
python examples/social_agent/bot.pyMonitors a mock tweet stream and:
- Classifies incoming posts (sentiment, topic)
- Drafts AI-generated replies for relevant tweets
- Posts replies (dry-run by default, set
DRY_RUN=falseto live-post)
jupyter notebook notebooks/agent_tutorial.ipynbAgentX-Examples/
├── examples/
│ ├── trading_agent/
│ │ ├── main.py # Entry point
│ │ ├── strategy.py # Trading strategy logic
│ │ └── market_data.py # Mock market data API
│ └── social_agent/
│ ├── bot.py # Entry point
│ ├── classifier.py # Tweet classifier
│ └── replier.py # Reply generator
├── notebooks/
│ └── agent_tutorial.ipynb
├── requirements.txt
└── .env.example
Have a cool agent to share? Open a PR! Please:
- Include a clear README for your example
- Use mock data (no real API keys hardcoded)
- Add basic error handling
MIT — see LICENSE.