Skip to content

k-kaundal/sgaip

Repository files navigation

SGAIP

Stateless Global Agent Identity Protocol (SGAIP) is a protocol for global, offline-verifiable identity for humans and AI agents.

SGAIP defines identity as a cryptographic proof, not a registry entry, ledger record, or platform account.


Key Properties

  • Stateless – no registry, no ledger, no central authority
  • Offline verifiable – identity proofs work without internet access
  • Permissionless – anyone can create an identity
  • AI-native – autonomous agents are first-class participants
  • Cryptographically derived – identity is deterministic from a public key
  • Implementable – uses only standard cryptography (Ed25519 + SHA-256)

Quick Start

Using the Python Package

pip install sgaip
sgaip keygen
sgaip sign --private agent.sk --message "hello"
sgaip verify --public agent.pk --signature signature.bin --message "hello"

📦 PyPI (Published): https://pypi.org/project/sgaip/

Using the JavaScript Package

npm install -g sgaip
sgaip keygen
sgaip sign --private agent.sk --message "hello"
sgaip verify --public agent.pk --signature signature.bin --message "hello"

📦 npm (Published): https://www.npmjs.com/package/sgaip


🚀 What's New (2026 Q1)

SGAIP is evolving from research prototype to production-grade identity protocol:

Timeline: Current focus on Phase 1 (Security & Foundation), quantum-resistant v2 by 2027.


What SGAIP Is Not

  • ❌ Not blockchain-based
  • ❌ Not a registry or directory
  • ❌ Not a token system
  • ❌ Not a platform or service
  • ❌ Identity ≠ trust (no reputation scoring)
  • ❌ Identity ≠ authorization (no permission system)

Repository Structure

.
├── docs/               # Terminology and concepts
├── specs/              # Protocol specifications
│   ├── sgaip-core.md              # Core specification
│   ├── identity-derivation.md     # Identity derivation spec
│   ├── proof-protocol.md          # Proof/signature spec
│   └── threat-model.md            # Security threat model
├── reference/          # Reference implementations (production-ready)
│   ├── python/         # Python package + CLI
│   └── js/             # TypeScript/JavaScript package + CLI
├── test-vectors/       # Interoperability test data
└── cli/                # Legacy Python CLI (see reference/python)

Status

SGAIP is an early-stage protocol specification with production-ready reference implementations.


Documentation

For Protocol Designers & Researchers

For Package Users

Python:

JavaScript/TypeScript:

For Contributors


Installation

Python (PyPI)

pip install sgaip

Then use the sgaip CLI globally or import the library:

from sgaip.core import generate_keypair, derive_agent_id

sk, pk = generate_keypair()
aid = derive_agent_id(serialize_public_key(pk))

JavaScript/TypeScript (npm)

npm install sgaip

Or install CLI globally:

npm install -g sgaip

Usage:

import { generateKeyPair, deriveAID } from "sgaip";

const { publicKey, privateKey } = generateKeyPair();
const aid = deriveAID(publicKey);

Development

# Python
cd reference/python
pip install -e .[dev]
pytest tests/

# JavaScript
cd reference/js
npm install
npm run build
npm test

See DEVELOPMENT.md for detailed guidance.


Security

⚠️ SGAIP v1 Status (February 2026):

  • Reference implementations not yet audited for production use
  • Quantum Vulnerable: Ed25519 will be broken by large-scale quantum computers (estimated 2030-2035)
  • Use at your own risk in non-critical applications
  • Security audit planned for 2026 Q3

Security Resources:

Quantum-Resistant SGAIP v2: Migration to ML-DSA (post-quantum) planned for 2027. See Roadmap.


License

Licensed under the Apache License, Version 2.0 (LICENSE)


Community

About

Stateless Global Agent Identity Protocol (SGAIP) — a stateless, cryptographic identity protocol for humans and AI agents.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors