NOVA File Sharing Skill for OpenClaw

Securely retrieve and decrypt files from NOVA groups within OpenClaw agents running in TEE (Trusted Execution Environment).

What is NOVA?

NOVAarrow-up-right is a decentralized data ownership and access control layer built on NEAR Protocol. It enables:

  • Encrypted file storage on IPFS with keys managed in TEE

  • Group-based access control - grant/revoke access to NEAR accounts

  • Confidential retrieval - only authorized members can decrypt files

This skill allows OpenClaw agents to securely access files shared by users, enabling privacy-preserving workflows like personalized email campaigns where contact data never leaves the encrypted environment.

Architecture

┌─────────────────────────────────────────────────────────────────┐
│                    User's NOVA Group                            │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐             │
│  │ contacts.csv│  │campaign.txt │  │ payment.key │             │
│  └──────┬──────┘  └──────┬──────┘  └──────┬──────┘             │
│         │                │                │                     │
│         └────────────────┼────────────────┘                     │
│                          ▼                                      │
│              ┌───────────────────┐                              │
│              │  Encrypted on IPFS │                              │
│              │  (CID: Qm...)      │                              │
│              └─────────┬─────────┘                              │
└────────────────────────┼────────────────────────────────────────┘

         User grants access to agent's NEAR account


┌─────────────────────────────────────────────────────────────────┐
│              NEAR AI Cloud TEE (Trusted Execution Environment)  │
│  ┌──────────────────────────────────────────────────────────┐  │
│  │                    OpenClaw Agent                         │  │
│  │  ┌────────────────────┐    ┌─────────────────────────┐   │  │
│  │  │ nova-file-sharing  │───▶│ Retrieve & Decrypt      │   │  │
│  │  │ skill              │    │ (keys stay in TEE)      │   │  │
│  │  └────────────────────┘    └───────────┬─────────────┘   │  │
│  │                                        │                  │  │
│  │                                        ▼                  │  │
│  │                            ┌─────────────────────┐        │  │
│  │                            │ Decrypted data      │        │  │
│  │                            │ (never leaves TEE)  │        │  │
│  │                            └─────────────────────┘        │  │
│  └──────────────────────────────────────────────────────────┘  │
└─────────────────────────────────────────────────────────────────┘

Installation

Prerequisites

  • OpenClaw deployed in NEAR AI Cloud TEE

  • Python 3 with cryptography package

  • curl and jq available in the environment

Setup

  1. Clone this repo into your OpenClaw skills folder:

  1. Make scripts executable:

  1. Install Python dependency:

  1. Configure your agent credentials:

Edit the scripts to replace the API key and account ID with your own:

Files

File
Description

SKILL.md

OpenClaw skill definition - tells the agent how to use NOVA

retrieve_and_decrypt.sh

Main script: fetches encrypted file from IPFS and decrypts it

check_auth.sh

Checks if agent is authorized to access a NOVA group

decrypt_nova.py

Python helper for AES-GCM decryption

Usage

For Agent Developers

The agent reads SKILL.md to understand how to use NOVA. When a user provides a group ID and IPFS CID, the agent runs:

This outputs the decrypted file contents to stdout.

For Users (Sharing Data with Agents)

  1. Create a NOVA account at https://nova-sdk.com

  2. Create a group for your data:

  3. Upload your files:

  4. Grant access to the agent:

  5. Provide the agent with:

    • Group ID: my_campaign

    • IPFS CID: QmZBtuiHonPxguYFysU54N5CPHsReDDEfqYCX5ekih8Vby

Example: BizDev Email Campaign Agent

This skill powers the nova-bizdev agent on market.near.aiarrow-up-right, which offers personalized cold email campaigns.

Workflow

Example Agent Conversation

Security Model

Aspect
Protection

Data at rest

AES-256-GCM encrypted on IPFS

Keys

Managed by NOVA TEE, never exposed

Agent execution

Runs in NEAR AI Cloud TEE

Access control

NEAR account-based, revocable

Decrypted data

Never leaves TEE, not logged

Why TEE Matters

The agent runs inside a Trusted Execution Environment, meaning:

  • Even the cloud provider cannot see decrypted data

  • The agent's memory is encrypted

  • Credentials and keys are protected by hardware

API Reference

retrieve_and_decrypt.sh

Arguments:

  • GROUP_ID - NOVA group name (e.g., my_campaign)

  • IPFS_CID - IPFS content identifier starting with Qm or bafy

Output: Decrypted file contents to stdout

Exit codes:

  • 0 - Success

  • 1 - Authentication failed or unauthorized

  • 2 - File not found or decryption failed

check_auth.sh

Output: JSON with authorization status

Troubleshooting

"Unauthorized" error

The agent's NEAR account is not a member of the group:

"File not found" error

Check the IPFS CID is correct:

Decryption fails

Ensure the file was uploaded to the correct group. Keys are group-specific.

Integration with Other Skills

This skill is designed to work with:

Skill
Purpose

near-email-skill

Send emails via NEAR Email after retrieving contacts

market-skill

Accept jobs and submit deliverables on market.near.ai

email-workflow-skill

End-to-end campaign orchestration

License

MIT

Last updated