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

Submodule Management

This project uses a pinned-SHA strategy for submodules to guarantee reproducibility.

  • Strict Drift Gate: CI fails if pinned SHAs do not match the remote origin/main of the submodule.
  • Automated Sync: A bot workflow runs periodically to fast-forward submodules to latest main and opens a PR.

Common Commands:

# Initialize submodules to pinned state
git submodule update --init --recursive

# Check for drift (Are my pins behind?)
./scripts/check_submodule_drift.sh

# Manually sync local submodules (updates working tree only)
git submodule foreach 'git fetch origin main && git reset --hard origin/main'

Private Repositories: If a submodule becomes private, you must ensure your CI environment and local git configuration have appropriate credentials (via SSH keys or GITHUB_TOKEN permissions), otherwise the drift check will fail.

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.9.tar.gz (190.0 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.9-py3-none-any.whl (144.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: talos_protocol-3.3.9.tar.gz
  • Upload date:
  • Size: 190.0 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.9.tar.gz
Algorithm Hash digest
SHA256 3251b8d38cdf550893cc09ebbf58a067ea4433f7eb15b0419770de3bbcfa8761
MD5 74a59d57b8e8c790d72e02bdaf4afdd5
BLAKE2b-256 27f532de49e90c547f5873656f3fd912b07081937510ef4bdb75314a084804c6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: talos_protocol-3.3.9-py3-none-any.whl
  • Upload date:
  • Size: 144.8 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ef1f6683b147f9ae32c5ac943f038c2e6274cbefb0d0d83c396ac94904abe6bf
MD5 af9b9f50abec97facc6012294cc4e0ef
BLAKE2b-256 54542a9ba57032c3a2cb2e303493b0385cb80b4d6e7666f58e1702d7dec431f7

See more details on using hashes here.

Provenance

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