Skip to main content

Talos: A secure, decentralized protocol for AI Agent communication

Project description

Talos Protocol

Secure, Decentralized Communication for the AI Agent Era

Python 3.11+ TypeScript License: MIT Tests

๐Ÿš€ Quick Start

# Clone with all submodules
git clone --recurse-submodules git@github.com:talosprotocol/talos.git
cd talos

# Initialize and validate
./deploy/scripts/setup.sh
./deploy/scripts/run_all_tests.sh

SSH not available? The setup script auto-falls back to HTTPS.


๐Ÿ“‚ Repository Topology

This is a multi-repo project using git submodules:

talos/                          # Orchestrator (this repo)
โ”œโ”€โ”€ deploy/
โ”‚   โ”œโ”€โ”€ repos/                  # 8 submodules
โ”‚   โ”‚   โ”œโ”€โ”€ talos-contracts/    # Source of truth (schemas, vectors)
โ”‚   โ”‚   โ”œโ”€โ”€ talos-core-rs/      # Rust performance kernel
โ”‚   โ”‚   โ”œโ”€โ”€ talos-sdk-py/       # Python SDK
โ”‚   โ”‚   โ”œโ”€โ”€ talos-sdk-ts/       # TypeScript SDK
โ”‚   โ”‚   โ”œโ”€โ”€ talos-gateway/      # FastAPI Gateway
โ”‚   โ”‚   โ”œโ”€โ”€ talos-audit-service/# Audit aggregator
โ”‚   โ”‚   โ”œโ”€โ”€ talos-mcp-connector/# MCP bridge
โ”‚   โ”‚   โ””โ”€โ”€ talos-dashboard/    # Next.js Console
โ”‚   โ””โ”€โ”€ scripts/
โ”‚       โ”œโ”€โ”€ setup.sh            # Initialize submodules
โ”‚       โ”œโ”€โ”€ start_all.sh        # Start all services
โ”‚       โ”œโ”€โ”€ cleanup_all.sh      # Clean all dependencies
โ”‚       โ””โ”€โ”€ run_all_tests.sh    # Master test runner
โ””โ”€โ”€ docs/wiki/                  # Documentation
Repo Purpose Tech
talos-contracts Schemas, test vectors, helpers TypeScript + Python
talos-core-rs High-performance kernel Rust + PyO3
talos-sdk-py Python SDK Python
talos-sdk-ts TypeScript SDK TypeScript
talos-gateway REST API Gateway FastAPI
talos-audit-service Audit log aggregation FastAPI
talos-mcp-connector MCP protocol bridge Python
talos-dashboard Security console UI Next.js

๐Ÿ“œ Contract-Driven Architecture

talos-contracts is the single source of truth. All other repos consume:

Artifact Description
schemas/*.json JSON Schema definitions
test_vectors/*.json Golden test cases
src/ (TS) / talos_contracts/ (Py) Reference implementations

Boundary Rules:

  • โŒ No reimplementing deriveCursor, base64url, etc. outside contracts
  • โŒ No btoa/atob in browser code (use contracts helpers)
  • โŒ No deep cross-repo imports (use published packages)

v4.0 Features

Feature Status Description
๐Ÿ“œ Contract-Driven Kernel โœ… talos-contracts as single source of truth
๐Ÿ” Capability Authorization โœ… Cryptographic tokens, <1ms session-cached auth
๐Ÿ“ฆ Polyglot SDKs โœ… Native Python & TypeScript SDKs
๐Ÿฆ€ Rust Wedge โœ… High-performance Rust core
๐Ÿ”„ Double Ratchet โœ… Signal protocol for forward secrecy
โœ… Validation Engine โœ… 5-layer block validation
๐Ÿ’ก Light Client โœ… SPV proof verification
๐Ÿค– MCP Integration โœ… Secure tool invocation
โšก Performance โœ… 695k auth/sec, <5ms p99

๐Ÿ› ๏ธ Development

Prerequisites

  • Python 3.11+
  • Node.js 20+
  • Rust (stable)
  • Git with SSH keys (or HTTPS fallback)

Setup Modes

Mode Default Behavior
lenient Local Warns on missing submodules, continues
strict CI Fails if any submodule unavailable
# Local development (lenient)
./deploy/scripts/setup.sh

# Mirror CI behavior
TALOS_SETUP_MODE=strict ./deploy/scripts/setup.sh

Service Management

# Start all services
./deploy/scripts/start_all.sh

# Stop and clean everything
./deploy/scripts/cleanup_all.sh

# Per-repo Makefile
cd deploy/repos/talos-gateway
make install build test start

Testing

# Run all tests (unit only)
./deploy/scripts/run_all_tests.sh

# With live integration tests
./deploy/scripts/run_all_tests.sh --with-live

# Single repo
./deploy/scripts/run_all_tests.sh --only talos-contracts

๐Ÿ“š Documentation

Topic Link
Getting Started docs/wiki/Getting-Started.md
Architecture docs/wiki/Architecture.md
Development docs/wiki/Development.md
Testing docs/wiki/Testing.md
Python SDK docs/wiki/Python-SDK.md
TypeScript SDK docs/wiki/TypeScript-SDK.md
MCP Integration docs/wiki/MCP-Integration.md

Why Talos Exists

AI agents lack a trustable communication substrate:

Problem Current State Talos Solution
Identity No cryptographic identity Self-sovereign DIDs
Authorization Centralized OAuth/RBAC Scoped capability tokens
Confidentiality TLS at best Forward secrecy (Double Ratchet)
Accountability Trust the operator Blockchain-anchored proofs
Decentralization Central servers P2P with DHT discovery

Talos is the missing trust layer for autonomous AI systems.

๐Ÿ“– Why Talos Wins | Threat Model | Alternatives


License

MIT ยฉ 2024 Talos Protocol Contributors

trigger

ci

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

talos_protocol-3.3.7.tar.gz (184.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

talos_protocol-3.3.7-py3-none-any.whl (139.7 kB view details)

Uploaded Python 3

File details

Details for the file talos_protocol-3.3.7.tar.gz.

File metadata

  • Download URL: talos_protocol-3.3.7.tar.gz
  • Upload date:
  • Size: 184.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for talos_protocol-3.3.7.tar.gz
Algorithm Hash digest
SHA256 54ebd9bf064b0a534dd05f80ba32223c05aca1579c6efcc178dd18fb1223b001
MD5 035f3097d42581209934ba4378302cd3
BLAKE2b-256 bcde492ab70af3faf0f9f49a2e739a10fcdeb3f322145240a311487ac826910e

See more details on using hashes here.

Provenance

The following attestation bundles were made for talos_protocol-3.3.7.tar.gz:

Publisher: ci.yml on talosprotocol/talos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file talos_protocol-3.3.7-py3-none-any.whl.

File metadata

  • Download URL: talos_protocol-3.3.7-py3-none-any.whl
  • Upload date:
  • Size: 139.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for talos_protocol-3.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 eea6f17f561f92e7c51d026babbfe0283b721e7f96554603dd022dc9a0312385
MD5 16c39df2a236b81132fc30d4f6e1ba97
BLAKE2b-256 da89f2291bccf2713245d9a400f5f0142d4b22e7c9da4e79376efa8ebf1ea473

See more details on using hashes here.

Provenance

The following attestation bundles were made for talos_protocol-3.3.7-py3-none-any.whl:

Publisher: ci.yml on talosprotocol/talos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page