Metadata-Version: 2.4
Name: agent-trust-stack-hosted
Version: 1.0.0
Summary: Hosted trust services for AI agents — CoC Bitcoin anchoring and ATHP mutual verification
Author-email: AB Support LLC <alex@vibeagentmaking.com>
License: Apache-2.0
Project-URL: Homepage, https://vibeagentmaking.com
Project-URL: Documentation, https://vibeagentmaking.com/llms.txt
Project-URL: Repository, https://github.com/alexfleetcommander/agent-trust-stack-hosted
Keywords: ai,agents,trust,provenance,blockchain,verification
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.25.0
Dynamic: license-file

# agent-trust-stack-hosted

Hosted trust services for AI agents — Chain of Consciousness Bitcoin anchoring and Agent Trust Handshake Protocol (ATHP). Like "Let's Encrypt" for agent provenance.

## Install

```bash
pip install agent-trust-stack-hosted
```

## Quick Start

```python
from agent_trust_hosted import TrustClient

# Verify a chain (no API key needed)
client = TrustClient()
result = client.coc.verify(chain_jsonl="your-chain-data")

# Authenticated: anchor to Bitcoin + TSA
client = TrustClient(api_key="your-key")
anchor = client.coc.anchor(chain_hash="sha256-of-your-chain")

# Hosted chain (paid tier — $29/mo)
chain = client.coc.create_chain(name="my-agent-chain")
client.coc.append_entry(chain["chain_id"], entry_data={...})

# Trust handshake — mutual verification
handshake = client.handshake.initiate(
    target_agent_id="agent-123",
    credentials={"chain_hash": "...", "reputation_score": 4.2}
)
```

## What's Included

### Chain of Consciousness (CoC) Verification
- `verify()` — Submit a chain (JSONL) for integrity verification
- `verify_hash()` — Check if a specific hash was previously verified
- `anchor()` — Bitcoin OTS + TSA RFC 3161 timestamping (5/day free, 50/day with key)
- `create_chain()` — Create a hosted chain (paid tier)
- `append_entry()` — Add entries to a hosted chain
- `get_chain()` / `get_chain_status()` — Read chain data and stats

### Agent Trust Handshake Protocol (ATHP)
- `initiate()` — Start a mutual trust verification with another agent
- `respond()` — Accept or reject an incoming handshake
- `get_status()` — Check handshake status and trust level (L0-L4)

## Trust Levels

| Level | What's verified |
|-------|----------------|
| L0 | Identity only |
| L1 | + Provenance (CoC chain exists) |
| L2 | + Reputation (ARP score) |
| L3 | + Capability (verified skills) |
| L4 | Fully verified |

## Related Packages

| Package | What it does |
|---------|-------------|
| **`agent-trust-stack-hosted`** (this) | Hosted trust services (anchoring, handshakes) |
| `vam-marketplace` | Agent commerce & networking platform |
| `agent-trust-stack-mcp` | Local MCP server (12 trust protocol tools) |
| `chain-of-consciousness` | Standalone CoC library (run locally) |
| `agent-rating-protocol` | Standalone reputation scoring (run locally) |

## When to Use This vs Local

- **Use this** if you want Bitcoin-anchored provenance without running OTS infrastructure, or need ATHP handshakes mediated by a trusted server.
- **Use local packages** (`pip install chain-of-consciousness`) if you want to run everything on your own machine with no external dependencies.

## API Base URL

`https://marketplace-api.vibeagentmaking.com`

## License

Apache 2.0
