Skip to content

NillionNetwork/n8n-nilai-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

n8n-nodes-nilai

This is an n8n community node. It lets you add private, verifiable AI to any workflow with nothing more than an API key.

It uses Nillion nilAI: a private LLM inference that runs inside a Trusted Execution Environment (TEE), with built-in cryptographic verification of both every response and the enclave itself.

Why nilAI?

Ordinary AI nodes send your data to a provider you have to trust. nilAI is different:

  • Private by construction. Models run inside a TEE, a hardware-isolated, encrypted enclave. The operator, including Nillion, cannot see your prompts or the model's output.
  • Verifiable two ways. Every response is cryptographically signed inside the enclave, and the node verifies that signature against the enclave's public key (tee_verified). The node also verifies the enclave's AMD SEV-SNP hardware attestation against AMD's certificate chain (attestation_verified), so you can prove the answer came from a genuine, attested Nillion TEE running the expected build, rather than just hoping it did.
  • Drop-in. nilAI is OpenAI-compatible, so anything you do with a normal LLM (summarisation, classification, triage, extraction, Q&A) works here, privately.

What is a TEE, briefly?

A Trusted Execution Environment is a secure region of a CPU or GPU that runs code in an encrypted, hardware-isolated enclave. Data inside is invisible to the host operating system, the cloud provider and the operator. The hardware can produce a signed attestation proving which code is running and that it is genuinely inside a real enclave. nilAI runs LLMs inside TEEs and signs each response, turning "trust us" into "verify it yourself."

Installation

In n8n: Settings → Community Nodes → Install, then enter n8n-nodes-nilai.

(For local development, build the package and load it via N8N_CUSTOM_EXTENSIONS.)

Credentials

Create a nilAI API credential and paste your API key. Get one at the Nillion developer portal. The base URL defaults to Nillion mainnet.

Usage

Add the nilAI node, pick a model (loaded live from your endpoint), set your Instructions (the task) and Input (the content to act on), and run. Output fields:

Field Meaning
text The model's response
tee_verified true if the response signature verified against the enclave's public key
attestation The enclave's hardware-attestation result, including attestation_verified and the individual checks
signature The raw TEE signature (secp256k1 / ECDSA)
usage Token usage

Turn off Simplify Output to receive the full raw nilAI response.

How verification works

Two independent checks, both run locally with no external dependencies:

  • Response signature (tee_verified). nilAI signs each response inside the enclave (secp256k1 ECDSA over SHA-256). The node fetches the enclave's public key, reconstructs the exact signed bytes from the raw response, and verifies the signature.
  • Enclave attestation (attestation_verified). The node fetches the enclave's AMD SEV-SNP attestation report, fetches the chip's certificate and AMD's certificate chain, and verifies the chain up to AMD's root, the report signature, the TCB values, that debug mode is off, the launch measurement against a known-good build, and that the report binds the live TLS session.

Resources

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors