Skip to content
@redpill-ai

RedPill

Privacy-First AI Infrastructure Running Entirely in TEE

🔴 RedPill

Privacy-First AI Infrastructure Running Entirely in TEE

RedPill is an open-source AI platform that provides hardware-enforced privacy for all AI workloads. Unlike traditional AI gateways, RedPill's entire infrastructure runs inside Trusted Execution Environments (TEE), ensuring cryptographic guarantees that your data remains private.


🌟 Why RedPill?

🔒 Hardware Privacy

Entire gateway runs in TEE (Intel TDX)

🛡️ Confidential AI

Native TEE models with GPU secure enclaves

✅ Verifiable

Cryptographic attestation for all executions

🌐 250+ Models

OpenAI, Anthropic, Google, Meta, DeepSeek

🚀 OpenAI Compatible

Drop-in replacement for existing code

📊 Production Ready

Battle-tested infrastructure


📦 Our Projects

The core AI gateway that routes requests to 250+ LLMs while running entirely in TEE.

What it does:

  • Routes AI requests through hardware-protected TEE
  • Supports 250+ models from all major providers
  • Provides cryptographic attestation
  • OpenAI-compatible API

Tech: TypeScript, Hono, Cloudflare Workers, Node.js

npm install && npm run dev:node

Modern, privacy-focused chat interface with cryptographic verification.

What it does:

  • Beautiful chat UI with Assistant UI components
  • Real-time TEE attestation verification
  • Message signature verification
  • 250+ model support

Tech: Next.js 15, React 19, Vercel AI SDK, Tailwind CSS 4

npm install && npm run dev

Python tools for validating TEE attestations and response signatures.

What it does:

  • Verify GPU TEE attestation (NVIDIA H100/H200)
  • Validate Intel TDX quotes
  • Check ECDSA signatures
  • Sigstore provenance verification

Tech: Python 3.10+

pip install -r requirements.txt
python3 attestation_verifier.py

🚀 Quick Start

API Usage (OpenAI Compatible)

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.redpill.ai/v1"
)

response = client.chat.completions.create(
    model="openai/gpt-5",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)

Verify TEE Protection

# Generate fresh nonce
NONCE=$(openssl rand -hex 32)

# Get cryptographic attestation
curl "https://api.redpill.ai/v1/attestation/report?nonce=$NONCE" \
  -H "Authorization: Bearer YOUR_API_KEY"

Returns cryptographic proof:

  • ✅ GPU TEE measurements (genuine NVIDIA H100 TEE)
  • ✅ Model hash (exact model version)
  • ✅ Code hash (inference code integrity)
  • ✅ Hardware signature (signed by TEE)

🔐 Privacy Architecture

Two-Layer TEE Protection

Layer 1: TEE-Protected Gateway (All 250+ Models)

Your Request → Intel TDX TEE → Any LLM → Intel TDX TEE → Your Response
  • Request processing in CPU TEE
  • Response handling in CPU TEE
  • Works with all providers
  • No additional cost

Layer 2: TEE-Protected Inference (Phala Models)

Your Request → Intel TDX TEE → NVIDIA GPU TEE → Intel TDX TEE → Your Response
  • Model weights in GPU secure enclaves
  • Inference computation in GPU TEE
  • Complete end-to-end protection
  • Cryptographic attestation

🛡️ Trust Model

✅ You Must Trust

  • NVIDIA GPU vendor (H100/H200 TEE correctness)
  • Intel CPU vendor (TDX implementation)
  • Phala Network (model deployment integrity)
  • Open source code (auditable on GitHub)

❌ You Do NOT Need to Trust

  • RedPill operators
  • Cloud provider (AWS, GCP, Azure)
  • System administrators
  • Other users on same hardware

🎯 Use Cases

🏥 Healthcare

  • HIPAA-compliant patient data processing
  • Medical record analysis
  • Clinical decision support

💰 Financial Services

  • Confidential financial analysis
  • Trading algorithm protection
  • Regulatory compliance

⚖️ Legal

  • Privileged communications
  • Contract analysis
  • Discovery processing

🏢 Enterprise AI

  • Trade secret protection
  • IP-sensitive R&D
  • Confidential business intelligence

🏛️ Government

  • Classified data processing
  • Intelligence analysis
  • Secure communications

🔬 Research

  • Sensitive research data
  • Clinical trials
  • Proprietary algorithms

📚 Documentation


🤝 Contributing

We welcome contributions to all RedPill projects!

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests and linters
  5. Submit a Pull Request

See individual repository CONTRIBUTING.md files for detailed guidelines.


🔗 Links


🙏 Powered By


Built with 💜 by the RedPill team
Making AI privacy-first, one request at a time.

GatewayChatVerifierDocs

Pinned Loading

  1. redpill-gateway redpill-gateway Public

    TypeScript 2

  2. redpill-verifier redpill-verifier Public

    Cryptographic verification tools for RedPill TEE-protected AI

    Python 1

  3. redpill-chat redpill-chat Public

    JavaScript 1

Repositories

Showing 4 of 4 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…