Metadata-Version: 2.4
Name: agentverif-sign
Version: 0.2.0
Summary: ✅ Sell verified agents. Buyers trust verified packages. Unsigned agents get ignored. Add verification in seconds.
Project-URL: Homepage, https://agentverif.com
Project-URL: Documentation, https://agentverif.com/docs
Project-URL: Repository, https://github.com/trusthandoff/agentverif
Project-URL: Bug Tracker, https://github.com/trusthandoff/agentverif/issues
Project-URL: Changelog, https://github.com/trusthandoff/agentverif/releases
Author: agentverif.com
License: MIT
Keywords: agent-certificate,agent-marketplace,agent-security,agent-signing,agent-trust,agent-verification,agentverif,ai-agent,llm-security,owasp-llm
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Security
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: click>=8.0
Requires-Dist: requests>=2.28
Provides-Extra: api
Requires-Dist: fastapi>=0.100; extra == 'api'
Requires-Dist: httpx>=0.24; extra == 'api'
Requires-Dist: pydantic>=2.0; extra == 'api'
Requires-Dist: python-multipart>=0.0.9; extra == 'api'
Requires-Dist: slowapi>=0.1.9; extra == 'api'
Requires-Dist: uvicorn>=0.20; extra == 'api'
Provides-Extra: crypto
Requires-Dist: cryptography>=41.0; extra == 'crypto'
Provides-Extra: dev
Requires-Dist: pre-commit>=3.0; extra == 'dev'
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.4; extra == 'dev'
Description-Content-Type: text/markdown

  AgentVerif

  # AgentVerif — Let's Encrypt for AI Agents

  ✅ Sell verified agents. Buyers trust verified packages. Unsigned agents get ignored. Add verification in seconds. agentverif.com

  [![CI](https://github.com/trusthandoff/agentverif/actions/workflows/ci.yml/badge.svg)](https://github.com/trusthandoff/agentverif/actions/workflows/ci.yml)
  [![PyPI version](https://img.shields.io/pypi/v/agentverif-sign.svg)](https://pypi.org/project/agentverif-sign/)
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
  [![X (Twitter)](https://img.shields.io/badge/follow-%40agentverif-000000?logo=x&logoColor=white)](https://x.com/agentverif)
  [![Moltbook](https://img.shields.io/badge/Moltbook-agentverif-7B2FFF?logoColor=white)](https://www.moltbook.com/u/agentverif)
  [![GitHub Marketplace](https://img.shields.io/badge/GitHub%20Marketplace-agentverif%20action-16a34a?style=flat-square&logo=github)](https://github.com/marketplace/actions/agentverif-ai-agent-certification)

[English] | [中文](README.zh.md)

---

Sign in 30 seconds. Verify everywhere. Unsigned or tampered
agents get rejected by default — including by Claude.

**Vendors:** Sell trusted agents that convert better and
resist theft and tampering.  
**Buyers & Runtimes** (Claude, Cursor, LangChain, etc.):
Auto-block bad agents before execution.

🔴 **Live now** — MCP server public. Claude users connect today:
`https://mcp.agentverif.com`

[Lock Your First Agent Free →](https://agentverif.com) ·
[Try Verify Live](https://verify.agentverif.com) ·
[GitHub Action](https://github.com/trusthandoff/agentverif/tree/main/github-action)

> The 2026 reality: one poisoned agent can destroy your
> company or reputation overnight.
> AgentVerif makes verification as automatic and inevitable
> as HTTPS.

---

```bash
pip install agentverif-sign
```

## How it works

Every agent goes through three steps:

```
SCAN → SIGN → VERIFY
```

**SCAN** — The agent ZIP is scanned against the OWASP LLM Top 10.
Score below 70? Refused. No exceptions.

**SIGN** — A cryptographic hash is generated. `SIGNATURE.json` is
injected. A License ID is issued and registered.

**VERIFY** — Buyers verify at [verify.agentverif.com](https://verify.agentverif.com)
or via CLI. Tampered agents are flagged instantly.

Three ways to run this workflow:

| Method | Link |
|--------|------|
| Web UI (no install) | [sign.agentverif.com](https://sign.agentverif.com) |
| CLI | `pip install agentverif-sign` |
| GitHub Action | [GitHub Marketplace →](https://github.com/marketplace/actions/agentverif-ai-agent-certification) |

## Quick start

**As a vendor — sign your agent:**

```bash
agentverif-sign sign ./my-agent.zip
# ✅ Signed successfully
# License: AC-84F2-91AB
# Tier:    indie
```

**As a buyer — verify before executing:**

```bash
agentverif-sign verify ./agent.zip
# ⚠ UNREGISTERED — Signature valid locally; registry not checked
# Verify online: https://verify.agentverif.com/?id=AC-84F2-91AB
```

**Verify without CLI:** [verify.agentverif.com](https://verify.agentverif.com)

---

## Commands

### `agentverif-sign sign <ZIP>`

> **Note:** signing always runs a full OWASP LLM Top 10 scan first.
> Packages scoring below 70 are refused before any signature is issued.
> Use `--offline` to skip registry registration (scan still runs locally).

Signs an agent ZIP package. Runs a security scan, generates `SIGNATURE.json`, and injects it into the zip.

```bash
agentverif-sign sign ./agent.zip [--tier indie|pro|enterprise] [--api-key KEY] [--offline]
```

- `--tier` — signing tier (default: `indie`)
- `--api-key` — Pro/Enterprise API key (also via `AGENTVERIF_API_KEY` env var)
- `--offline` — skip registry registration

**Tiers:**
| Tier | Cost | Signing | Registry | Ed25519 |
|------|------|---------|----------|---------|
| indie | free | hash-only | no | no |
| pro | paid | hash + registry | yes | no |
| enterprise | paid | hash + registry | yes | yes |

### `agentverif-sign verify <ZIP>`

Verifies a signed agent zip. Checks the hash locally; optionally checks the registry.

```bash
agentverif-sign verify ./agent.zip [--offline] [--json]
```

Exit codes: `0` = VERIFIED or UNREGISTERED, `1` = MODIFIED, REVOKED, or UNSIGNED.

The `--json` flag emits machine-readable output for CI/CD pipelines and MCP tool calls:

```json
{
  "status": "UNREGISTERED",
  "license_id": "AC-84F2-91AB",
  "tier": "indie",
  "badge": "✅ Signed by agentverif",
  "message": "Signature valid locally; registry not checked",
  "offline": true,
  "verify_url": "https://verify.agentverif.com/?id=AC-84F2-91AB"
}
```

### `agentverif-sign revoke <LICENSE_ID>`

Revokes a license (requires API key).

```bash
agentverif-sign revoke AC-84F2-91AB --api-key KEY
```

### `agentverif-sign badge <LICENSE_ID>`

Prints the badge for a license in multiple formats.

```bash
agentverif-sign badge AC-84F2-91AB --format text|html|markdown|svg [--tier indie|pro|enterprise]
```

---

## SIGNATURE.json

Human-readable, auditable — no binary blobs:

```json
{
  "schema_version": "1.0",
  "license_id": "AC-84F2-91AB",
  "tier": "indie",
  "issued_at": "2026-04-10T00:00:00Z",
  "expires_at": null,
  "issuer": "agentverif.com",
  "issuer_version": "0.1.0",
  "file_list": ["agent.py", "config.json", "requirements.txt"],
  "file_count": 3,
  "zip_hash": "sha256:abc123...",
  "manifest_hash": "sha256:def456...",
  "scan_passed": true,
  "scan_source": "real",
  "signature": null
}
```

---

## Docker

> **TODO:** Docker image org TBD — not yet published to Docker Hub.
> Once published: `docker run --rm -v $(pwd):/work <org>/agentverif-sign sign /work/agent.zip`

## AWS Bedrock / Claude / MCP

`agentverif-sign verify --json` returns JSON-parseable output suitable for LLM tool calls and MCP integrations.

---

## Claude MCP Plugin

Connect agentverif directly to Claude. Claude will automatically
verify agents before execution.

### Setup

**Option 1 — Claude.ai:**
1. Go to claude.ai → Settings → Connectors
2. Add custom connector: `https://mcp.agentverif.com`
3. No authentication required

**Option 2 — Claude Desktop** (`claude_desktop_config.json`):
```json
{
  "mcpServers": {
    "agentverif": {
      "url": "https://mcp.agentverif.com"
    }
  }
}
```

### What it does

Two tools, full SCAN → SIGN → VERIFY workflow:

| Tool | When Claude calls it | Returns |
|------|---------------------|---------|
| `scan_agent` | "scan this agent ZIP" | OWASP score 0–100, violations, fixes |
| `verify_agent` | "run / install / trust this agent" | VERIFIED / TAMPERED / UNSIGNED + hash |

**Workflow:**
1. Vendor: Claude calls `scan_agent(zip_url)` — score ≥ 70 required to sign
2. Vendor: signs at [sign.agentverif.com](https://sign.agentverif.com)
3. Buyer: Claude calls `verify_agent(license_id)` — instant tamper check

Connect: `https://mcp.agentverif.com`

### Examples

#### Example 1: Verify before executing
**User:** "I want to run this agent, license AC-84F2-91AB. Is it safe?"

**Claude calls:** `verify_agent("AC-84F2-91AB")`

**Response:**
✅ VERIFIED — agentverif certified
License: AC-84F2-91AB
Tier: pro
Issuer: agentverif.com
Hash: sha256:abc123… ✓ intact
Safe to execute.
🔗 https://verify.agentverif.com/?id=AC-84F2-91AB

#### Example 2: Catch a tampered agent
**User:** "Can you verify this agent: AC-12F3-88AC"

**Claude calls:** `verify_agent("AC-12F3-88AC")`

**Response:**
🔴 TAMPERED — Certificate invalid
License: AC-12F3-88AC
Status: HASH MISMATCH
This agent has been modified after signing.
Do NOT execute. Contact the vendor immediately.
🔗 https://verify.agentverif.com/?id=AC-12F3-88AC

#### Example 3: Unsigned agent warning
**User:** "Run this agent for me, here's the hash: sha256:def456..."

**Claude calls:** `verify_agent("sha256:def456...")`

**Response:**
🚫 UNSIGNED — No certificate found
No agentverif certificate found for this identifier.
Unsigned agents carry unknown risk:
• No tamper detection
• No issuer accountability
• No revocation capability
Ask the vendor to certify at agentverif.com before executing.

---

## GitHub Action

[![agentverif](https://img.shields.io/badge/agentverif-certified-green)](https://agentverif.com)

Certify agents automatically in your CI/CD pipeline.
Available on the [GitHub Marketplace](https://github.com/marketplace/actions/agentverif-ai-agent-certification).

```yaml
name: agentverif
on: [push, pull_request]
jobs:
  certify:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Sign agent
        uses: trusthandoff/agentverif@v1
        id: sign
        with:
          mode: sign
          agent_zip: ./agent.zip
          tier: indie
      - name: Show license
        run: echo "License ${{ steps.sign.outputs.license_id }}"
```

Set `fail_on_unsigned: "true"` to block unverified agents from deploying.

See [`github-action/README.md`](github-action/README.md) for full docs.

---

## Environment variables

| Variable | Default | Description |
|----------|---------|-------------|
| `AGENTVERIF_API_KEY` | — | Pro/Enterprise API key |
| `AGENTVERIF_SIGN_URL` | `https://api.agentverif.com` | Registry URL |
| `AGENTVERIF_SCAN_URL` | `https://api.agentverif.com/scan` | Scanner URL |
| `AGENTVERIF_OFFLINE` | — | Set to any value to skip all registry calls |

---

## Design principles

- **Zero mandatory deps for verify** — stdlib only for offline hash checks
- **Offline-capable** — works without internet
- **Auditable** — `SIGNATURE.json` is human-readable JSON, never binary
- **Docker-native** — runs in containers, Lambda, Cloud Run, bare metal
- **MCP-ready** — `--json` flag for machine-readable output

---

## Installation

```bash
# Basic
pip install agentverif-sign

# With Ed25519 support (Pro/Enterprise)
pip install agentverif-sign[crypto]
```

---

Full docs: [agentverif.com/docs](https://agentverif.com/docs)

[Changelog](CHANGELOG.md)  
[Contributing](CONTRIBUTING.md)

Why: unsigned agents shouldn't be executed.

---

## Web UI

No CLI required. Upload, scan, and sign directly at
[sign.agentverif.com](https://sign.agentverif.com).
Buyers verify at [verify.agentverif.com](https://verify.agentverif.com).

---

> 🛡️ **Be among the First 100 Founding Vendors.**
> Get lifetime Pro free — worth €100/year, yours at zero cost forever.
> Limited founding spots available.
> **[Claim your spot → agentverif.com/first100](https://agentverif.com/first100)**
