Skip to content

elizaos-plugins/plugin-ipfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@elizaos/plugin-ipfs

IPFS (InterPlanetary File System) plugin for ElizaOS that enables decentralized file storage and retrieval.

Features

  • Add and pin files to IPFS
  • Retrieve files by CID (Content Identifier)
  • Read text content from IPFS
  • Standalone Helia node (no external daemon required)
  • Automatic content pinning

Installation

bun add @elizaos/plugin-ipfs

Configuration

Add the following environment variables to your .env file:

# Optional: Directory for IPFS data storage (defaults to ./ipfs-data)
IPFS_DATA_DIR=/path/to/ipfs-data

# Optional: Enable IPFS gateway (defaults to false)
IPFS_ENABLE_GATEWAY=false

# Optional: Gateway port (defaults to 8080)
IPFS_GATEWAY_PORT=8080

Usage

Add the plugin to your agent configuration:

import ipfsPlugin from '@elizaos/plugin-ipfs';

const agent = {
  plugins: [ipfsPlugin],
  // ... other config
};

Actions

IPFS_ADD

Add a file to IPFS and pin it.

Example: "Add this file to IPFS: /path/to/file.txt"

IPFS_GET

Retrieve a file from IPFS by its CID.

Example: "Get the file with CID: QmXxx..."

IPFS_CAT

Read text content from IPFS.

Example: "Show me the content of QmXxx..."

License

MIT

About

IPFS (InterPlanetary File System) plugin for elizaOS that enables decentralized file storage and retrieval.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors