P2P file transfer between AI agents via message channels. Supports chunked transfer, IPFS fallback for large files, and trusted peer management.
P2P file transfer between AI agents via message channels.
Use this skill when:
```bash
npm install -g ocft
```
```bash
ocft init
ocft status
ocft export
ocft add-peer <nodeId> <secret> --name "Friend"
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 <uri>` | Import peer from ocft:// URI |
| `ocft verify <secret>` | Verify if a secret matches yours |
| Command | Description |
|---------|-------------|
| `ocft add-peer <id> <secret>` | Add a trusted peer |
| `ocft remove-peer <id>` | Remove a trusted peer |
| `ocft list-peers` | List all trusted peers |
| `ocft extend-peer <nodeId> <hours>` | Extend a peer's trust expiry |
| `ocft set-ttl <hours>` | Set default secret TTL (0 = no expiry) |
| Command | Description |
|---------|-------------|
| `ocft set-download <dir>` | Set download directory |
| `ocft set-max-size <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 <provider>` | Set provider: `pinata`, `filebase`, `kubo` |
| `ocft set-ipfs-key <key>` | Set IPFS API key |
| `ocft set-kubo-url <url>` | Set Kubo node API URL |
| `ocft set-ipfs-threshold <size>` | Size threshold for IPFS (e.g., `50MB`) |
| `ocft set-ipfs-gateway <url>` | Set custom public IPFS gateway |
OCFT messages use a `🔗OCFT:` prefix with Base64-encoded JSON, allowing file transfers over any text-based channel.
Leave a review
No reviews yet. Be the first to review this skill!