Examples and Use Cases
Learn from real implementations and common patterns in the ZeroClaw ecosystem.Example Repository
The ZeroClaw repository includes complete working examples in theexamples/ directory:
Custom Provider Example
Integrate any LLM backend by implementing theProvider trait:
Custom Channel Example
Connect ZeroClaw to any messaging platform:Custom Tool Example
Extend agent capabilities with custom tools:Custom Memory Backend Example
Implement any storage backend for agent memory:WASM Plugin Example
Extend ZeroClaw with WebAssembly plugins:WASM plugins must export specific functions:
alloc, dealloc, zeroclaw_tool_execute, zeroclaw_provider_chat. See examples/plugins/echo/README.md for ABI details.Common Use Cases
Local LLM Integration
Use the Ollama provider example to run agents with local models like Llama, Mistral, or Phi.
Custom Messaging Platforms
Adapt the Telegram channel example for Slack, Discord, Matrix, or proprietary chat systems.
Domain-Specific Tools
Create tools for database queries, API interactions, or business-specific workflows.
Persistent Memory
Implement memory backends using Redis, PostgreSQL, S3, or vector databases.
Hardware Integration
See hardware examples for Raspberry Pi GPIO and STM32 peripherals.
Multi-Provider Strategies
Combine multiple providers with fallback logic for reliability.
Running Examples
Compile and Run
Build for Production
Community Examples
Looking for more examples? Check the community showcase:Additional Resources
Architecture Guide
Understand the trait-based design
API Reference
Complete API documentation
Contributing Guide
Learn how to contribute your examples
Troubleshooting
Common issues and solutions