Documentation Index
Fetch the complete documentation index at: https://0g.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Usage
The ElizaOS 0G plugin provides natural language interface for file storage operations on the 0G network.Basic Integration
Import and register the plugin in your ElizaOS agent:Natural Language Commands
The plugin responds to natural language commands for file operations:Upload Commands
Users can trigger file uploads using various natural language patterns:Command Aliases
The plugin recognizes multiple command variations:- Upload: “upload”, “store”, “save”, “put”
- Target: “0G”, “Zero Gravity”, “decentralized network”, “blockchain storage”
- File types: Any file extension or “this file”, “my document”, etc.
File Upload Examples
Basic File Upload
Multiple File Types
The plugin supports various file formats:- Documents: PDF, DOC, DOCX, TXT, MD
- Images: JPG, PNG, GIF, SVG, WEBP
- Videos: MP4, AVI, MOV, MKV
- Audio: MP3, WAV, FLAC, OGG
- Archives: ZIP, RAR, TAR, GZ
- Code: JS, TS, PY, GO, RS, SOL
File Path Handling
The plugin accepts different path formats:Response Handling
The plugin provides feedback on upload operations:Success Response
Error Handling
Advanced Usage
Programmatic Access
For advanced use cases, access the plugin’s methods directly:Custom File Handling
Implement custom file processing before upload:Best Practices
File Organization
- Use descriptive file names
- Organize files in logical directory structures
- Consider file size limitations
- Implement proper error handling
Security Considerations
- Validate file types before upload
- Scan files for malware if needed
- Implement access controls
- Monitor upload activity
Performance Optimization
- Compress large files before upload
- Use batch operations for multiple files
- Implement retry logic for failed uploads
- Cache frequently accessed files