Skip to content
Skillpedia
APIs & servers (backend)7.0k Β· #13651

near-ai-cloud

What it does

This skill covers NEAR AI Cloud, a private AI service that runs models inside secure hardware enclaves. It explains how to call it through an OpenAI-compatible API and how to check the hardware proof and message signatures, for developers who need private, verifiable AI.

When to use it

  • βœ“When you need AI replies where your data stays private from the infrastructure providers.
  • βœ“When you want to check proof that a model runs inside secure hardware.
  • βœ“When you want to build an end-to-end encrypted chat with NEAR AI Cloud.

Skill link

https://github.com/internet-court/internet-court-skill/blob/main/vendored/near/near-ai-cloud/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/internet-court/internet-court-skill/blob/main/vendored/near/near-ai-cloud/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œI want to use NEAR AI Cloud for private AI replies in my app and check that the hardware proof is valid.”

5 new skills a week. 1 minute to read.

How it works

The agent points an OpenAI-compatible client at the NEAR AI Cloud address with your API key, so the code looks like normal OpenAI calls. It can also verify the secure-hardware proof and the signatures on replies.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

NEAR AI Cloud

Verifiable private AI inference through Trusted Execution Environments (TEEs). All inference runs inside Intel TDX confidential VMs with NVIDIA TEE GPUs β€” your data stays encrypted and isolated from infrastructure providers, model providers, and NEAR itself.

Quick Start

The API is OpenAI-compatible. Point any OpenAI SDK at https://cloud-api.near.ai/v1:

import openai

client = openai.OpenAI(
    base_url="https://cloud-api.near.ai/v1",
    api_key="YOUR_API_KEY"  # from cloud.near.ai dashboard
)

response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V3.1",
    messages=[{"role": "user", "content": "Hello, NEAR AI!"}]
)
print(response.choices[0].message.content)
import OpenAI from 'openai';

const openai = new OpenAI({
    baseURL: 'https://cloud-api.near.ai/v1',
    apiKey: 'YOUR_API_KEY',
});

const completion = await openai.chat.completions.create({
    model: 'deepseek-ai/DeepSeek-V3.1',
    messages: [{ role: 'user', content: 'Hello, NEAR AI!' }]
});
console.log(completion.choices[0].message.content);

How It Works

  • All inference runs inside Intel TDX confidential VMs with NVIDIA TEE GPUs
  • TLS terminates inside the TEE, not at a load balancer β€” prompts are never exposed in plaintext
  • TEEs generate cryptographic attestation proofs verifiable via NVIDIA NRAS and Intel TDX
  • Every chat response is signed by a key that never leaves the TEE
  • You can independently verify hardware attestation and bind it to message signatures

Verification Flow

1. Generate nonce
2. Request model attestation  β†’  get signing_address, nvidia_payload, intel_quote
3. Verify GPU attestation     β†’  submit nvidia_payload to NVIDIA NRAS, check JWT fields
4. Verify CPU attestation     β†’  verify intel_quote via dcap-qvl or TEE Explorer
5. Verify GPU-CPU binding     β†’  signing_address + nonce bound in TDX report data; same nonce in NRAS eat_nonce
6. Make chat request           β†’  use the API as normal
7. Fetch chat signature       β†’  GET /v1/signature/{chat_id}
8. Verify signature            β†’  recover signer, compare to attested signing_address

API Endpoints

Base URL: https://cloud-api.near.ai

Endpoint Method Description
/v1/chat/completions POST OpenAI-compatible chat completions
/v1/models GET List available models
/v1/attestation/report?model={model} GET Model attestation (GPU + CPU)
/v1/attestation/report GET Gateway attestation
/v1/signature/{chat_id} GET Chat message signature

Critical Knowledge

  • Base URL is https://cloud-api.near.ai/v1 β€” use with any OpenAI SDK
  • signing_algo can be ecdsa or ed25519
  • Nonce should be a random 64-char hex string (32 bytes) for attestation freshness
  • NRAS response is a two-part array: [["JWT", "..."], {"GPU-0": "..."}] β€” overall JWT + per-GPU JWTs
  • The signing_address from model attestation must match the address that signed chat messages
  • Chat signatures are persistent and can be queried at any time after completion

References

Topic File
Private vs Anonymised Models references/private-vs-anonymised.md
Model TEE verification references/model-verification.md

Planned:

  • Gateway verification (TDX attestation for the API gateway + source provenance)
  • Chat verification (request/response hashing + signature verification)
  • E2E encrypted chat (ECDH key exchange, AES-256-GCM / ChaCha20-Poly1305)
  • OpenAI compatibility (streaming, reasoning models, Files API)

Resources

FAQ

Do I need to rewrite my app for NEAR AI Cloud?

Usually not. The API is OpenAI-compatible, so an OpenAI SDK can point at the NEAR AI Cloud address.

Who can see my prompts?

The skill says prompts stay encrypted inside the secure environment and are not exposed in plain text to infrastructure or model providers.

Where do I get an API key?

From the NEAR AI Cloud dashboard.

Details

Original description by the author

NEAR AI Cloud private inference and verification. Use when integrating NEAR AI Cloud API for verifiable private AI inference, verifying model or gateway TEE attestation (NVIDIA NRAS, Intel TDX), verifying chat message signatures, implementing end-to-end encrypted chat, or using the OpenAI-compatible API with NEAR AI Cloud.

repo: internet-court/internet-court-skill

Popularity

GitHub stars
7.0k
Ranking position
#13651
License
β€”
Updated
10/26/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills