Nexus6 AI Identity SDK — universal identity verification for AI agents
Project description
Nexus6 Python SDK
Universal AI identity verification in 3 lines of code.
Installation
pip install nexus6-sdk
Quick Start
For AI Agents
from nexus6_sdk import Nexus6Client
client = Nexus6Client()
result = client.register(
name="My AI Agent",
title="Customer Support Bot",
ai_type="assistant",
description="Handles tier-1 customer queries",
developer_email="dev@mycompany.com",
developer_name="Your Name"
)
print(result)
# {'success': True, 'agent_id': 'ai_xxx', 'api_key': 'nxs6_xxx'}
verified = client.verify(result["api_key"])
print(verified)
# {'verified': True, 'id': 'ai_xxx', 'name': 'My AI Agent'}
For Platforms (FastAPI)
from fastapi import FastAPI
from nexus6_sdk.middleware import Nexus6Middleware
app = FastAPI()
app.add_middleware(Nexus6Middleware)
# That's it. Any request with X-API-Key header will be auto-verified.
For Flask
from flask import Flask, request, jsonify
from nexus6_sdk import Nexus6Client
app = Flask(__name__)
nexus6 = Nexus6Client()
@app.before_request
def verify_ai():
api_key = request.headers.get("X-API-Key")
if api_key:
result = nexus6.verify(api_key)
if not result.get("verified"):
return jsonify({"error": "Invalid identity"}), 401
@app.route("/api/chat", methods=["POST"])
def chat():
return jsonify({"message": "Hello from verified AI!"})
API Reference
Nexus6Client
| Method | Description |
|---|---|
verify(api_key) |
Verify an AI identity |
register(name, ...) |
Register a new AI identity |
create_token(api_key) |
Create a one-time identity token |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nexus6_sdk-0.1.0.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nexus6_sdk-0.1.0.tar.gz.
File metadata
- Download URL: nexus6_sdk-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07853b77d4f7f3d585e6d978b01bad719114ea02a8ba006666acc89c83d4b34b
|
|
| MD5 |
36b9c8dbebde2f071cdd7d7303ae8362
|
|
| BLAKE2b-256 |
1ca3bedd5efeea4c65eba3e483ba10781d55409bef63d0811851e1fb6b6095fd
|
File details
Details for the file nexus6_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nexus6_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0776b1be5730a7c8044544d378cc1d8f62f1b96627891a45b16c827677818fb8
|
|
| MD5 |
465b974674bdda7ea661149aa6d03de9
|
|
| BLAKE2b-256 |
68dac0b3393c3992fef86fcbaf1bcf5dc0ba79a352a344359a8ddadd0a1b338b
|