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 git+https://github.com/Marsssssssssssdsss/nexus6-sdk.git#subdirectory=python
Quick Start
For AI Agents
from nexus6 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.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 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-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-0.1.0.tar.gz.
File metadata
- Download URL: nexus6-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 |
19dd8c38c92f9ed1bcc1341c33e4feb5784df6bf25d2bf13051d381efbdd33c0
|
|
| MD5 |
337350d7c411bb6646eedba0c722dbdd
|
|
| BLAKE2b-256 |
58648c78ed583487095abcf99c6cb9ad42b19742667cc8b7fcf74642b698f7dd
|
File details
Details for the file nexus6-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nexus6-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 |
8b24dd5c870895d15fdb3c8f65cace50e4547bc5cba07c49d957b20e49a51383
|
|
| MD5 |
a194d66551d8c9cea6e6380909080a85
|
|
| BLAKE2b-256 |
2c3fe6a1211c8fd4068be6c202b3ed971dfe14197ee25e0c4ffec1f92af4d286
|