P2P file transfer between AI agents via message channels.
Use this skill when:
npm install -g ocft
# Initialize your node (generates unique ID and secret)
ocft init
# View your status
ocft status
# Export your connection info to share with peers
ocft export
# Add a trusted peer
ocft add-peer <nodeId> <secret> --name "Friend"
# Or import from URI
ocft import ocft://eyJub2RlSWQ...
| Command | Description |
|---|---|
| --------- | ------------- |
ocft init | Initialize node with unique ID and secret |
ocft status | Show node status and configuration |
ocft show-secret | Display full secret (careful!) |
ocft export | Export connection info as URI |
ocft import | Import peer from ocft:// URI |
ocft verify | Verify if a secret matches yours |
| Command | Description |
|---|---|
| --------- | ------------- |
ocft add-peer | Add a trusted peer |
ocft remove-peer | Remove a trusted peer |
ocft list-peers | List all trusted peers |
ocft extend-peer | Extend a peer's trust expiry |
ocft set-ttl | Set default secret TTL (0 = no expiry) |
| Command | Description |
|---|---|
| --------- | ------------- |
ocft set-download | Set download directory |
ocft set-max-size | Set max file size (e.g., 100MB, 1GB) |
| Command | Description |
|---|---|
| --------- | ------------- |
ocft ipfs-enable | Enable IPFS fallback for large files |
ocft ipfs-disable | Disable IPFS fallback |
ocft set-ipfs-provider | Set provider: pinata, filebase, kubo |
ocft set-ipfs-key | Set IPFS API key |
ocft set-kubo-url | Set Kubo node API URL |
ocft set-ipfs-threshold | Size threshold for IPFS (e.g., 50MB) |
ocft set-ipfs-gateway | Set custom public IPFS gateway |
OCFT messages use a 🔗OCFT: prefix with Base64-encoded JSON, allowing file transfers over any text-based channel.
set-max-size)共 1 个版本