본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)7.0k · #13651

near-ai-cloud

하는 일

이 스킬은 모델을 보안 하드웨어 enclave 안에서 실행하는 비공개 AI 서비스인 NEAR AI Cloud를 다룹니다. OpenAI 호환 API로 호출하는 방법과 하드웨어 증명 및 답변 서명을 확인하는 방법을 설명합니다. 비공개이며 검증 가능한 AI가 필요한 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓데이터가 인프라 제공자로부터 비공개로 유지되어야 하는 AI 답변이 필요할 때.
  • ✓모델이 보안 하드웨어 안에서 실행된다는 증명을 확인하고 싶을 때.
  • ✓NEAR AI Cloud로 종단 간 암호화된 채팅을 만들고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

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.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 앱에서 비공개 AI 답변을 받도록 NEAR AI Cloud를 사용하고, 하드웨어 증명이 유효한지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 여러분의 API 키와 함께 OpenAI 호환 클라이언트가 NEAR AI Cloud 주소를 가리키도록 설정하므로, 코드는 일반적인 OpenAI 호출처럼 보입니다. 보안 하드웨어 증명과 답변의 서명도 확인할 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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

자주 묻는 질문

NEAR AI Cloud를 쓰려면 앱을 다시 작성해야 하나요?

보통은 필요하지 않습니다. API가 OpenAI와 호환되므로 OpenAI SDK가 NEAR AI Cloud 주소를 가리킬 수 있습니다.

누가 제 프롬프트를 볼 수 있나요?

스킬은 프롬프트가 보안 환경 안에서 암호화된 상태로 유지되며, 인프라나 모델 제공자에게 평문으로 노출되지 않는다고 말합니다.

API 키는 어디서 받나요?

NEAR AI Cloud 대시보드에서 받을 수 있습니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
7.0k
순위
#13651
라이선스
—
업데이트
2026. 10. 26.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬