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: Apache 2.0 Tests Docker Build & Push

๐Ÿš€ 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/                  # 12 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-sdk-go/       # Go SDK
โ”‚   โ”‚   โ”œโ”€โ”€ talos-sdk-java/     # Java SDK
โ”‚   โ”‚   โ”œโ”€โ”€ talos-gateway/      # FastAPI Gateway
โ”‚   โ”‚   โ”œโ”€โ”€ talos-audit-service/# Audit aggregator
โ”‚   โ”‚   โ”œโ”€โ”€ talos-mcp-connector/# MCP bridge
โ”‚   โ”‚   โ”œโ”€โ”€ talos-dashboard/    # Next.js Console
โ”‚   โ”‚   โ”œโ”€โ”€ talos-docs/         # Documentation wiki
โ”‚   โ”‚   โ””โ”€โ”€ talos-examples/     # Example applications
โ”‚   โ””โ”€โ”€ 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 (deprecated, use talos-docs)
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-sdk-go Go SDK Go
talos-sdk-java Java SDK Java
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
talos-docs Documentation wiki Markdown
talos-examples Example applications Mixed

๐Ÿ“œ 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

Dashboard & Examples

Once started, access the Security Console:


๐Ÿ“š Documentation

Documentation is maintained in the Wiki.

Topic Link
Getting Started Getting Started
Architecture Architecture
Development Development
Testing Testing
Python SDK Python SDK
TypeScript SDK TypeScript SDK
MCP Integration MCP Integration

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

Licensed under the Apache License 2.0. See LICENSE.

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.8.tar.gz (189.2 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.8-py3-none-any.whl (144.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: talos_protocol-3.3.8.tar.gz
  • Upload date:
  • Size: 189.2 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.8.tar.gz
Algorithm Hash digest
SHA256 5402e5c10adfd079fe0e56175c0d1479f6c7cfa859e192140b9f71a6b1adbe3a
MD5 4f767e2e21f79bec259934bb85bbaa25
BLAKE2b-256 8890a6ffd0525c4aa8ef1aa2ee877d00e0ea899db4849871a7b85151b3350c14

See more details on using hashes here.

Provenance

The following attestation bundles were made for talos_protocol-3.3.8.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.8-py3-none-any.whl.

File metadata

  • Download URL: talos_protocol-3.3.8-py3-none-any.whl
  • Upload date:
  • Size: 144.4 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 93ff51ac77df47b889a5035bc37ae9be2115f10615f149d9739d9ad4ff2a8c41
MD5 cff5a96c51e4751d1dd102ce5404f41f
BLAKE2b-256 fa82cf6859bd90caf555d3a3d5d1818b353d59b4ee21e7fae22af6c2d9aa8052

See more details on using hashes here.

Provenance

The following attestation bundles were made for talos_protocol-3.3.8-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