nomyo/doc/README.md
alpha-nerd-nomyo 2c6677748a feat: update project version and documentation link
- Bump version from 0.1.0 to 0.1.1
- Update documentation URL to point to GitHub repository
2026-02-03 18:40:51 +01:00

2.2 KiB

NOMYO Secure Client Documentation

This documentation provides comprehensive information about using the NOMYO Secure Python Chat Client, a drop-in replacement for OpenAI's ChatCompletion API with end-to-end (E2E) encryption. To use this client library you need a paid subscribtion on NOMYO Inference.

Overview

The NOMYO Secure Client provides:

  • End-to-end encryption using hybrid encryption (AES-256-GCM + RSA-OAEP)
  • OpenAI API compatibility - same interface as OpenAI's ChatCompletion
  • Secure memory protection - prevents plaintext from being swapped to disk
  • Automatic key management - handles key generation and loading automatically
  • HTTPS enforcement - secure communication by default

Quick Start

import asyncio
from nomyo import SecureChatCompletion

async def main():
    # Initialize client (defaults to https://api.nomyo.ai)
    client = SecureChatCompletion(api_key="your-api-key-here")

    # Simple chat completion
    response = await client.create(
        model="Qwen/Qwen3-0.6B",
        messages=[
            {"role": "user", "content": "Hello! How are you today?"}
        ],
        security_tier="standard", # optional: standard, high or maximum
        temperature=0.7
    )

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

# Run the async function
asyncio.run(main())

Documentation Structure

  1. Installation - How to install and set up the client
  2. Getting Started - Quick start guide with examples
  3. API Reference - Complete API documentation
  4. Security Guide - Security features and best practices
  5. Examples - Advanced usage scenarios
  6. Troubleshooting - Common issues and solutions

Key Features

  • OpenAI Compatibility: Use the same API as OpenAI's ChatCompletion
  • End-to-End Encryption: All prompts and responses are automatically encrypted/decrypted
  • Secure Memory Protection: Prevents sensitive data from being swapped to disk
  • Automatic Key Management: Keys are generated and loaded automatically
  • Flexible Security Tiers: Control security levels for different data types