An open API service indexing awesome lists of open source software.

https://github.com/alexar76/aimarket-protocol

AIMarket Protocol v2 — open specs, JSON schemas, and test vectors.
https://github.com/alexar76/aimarket-protocol

ai-agents aimarket api-spec interoperability json-schema open-source protocol

Last synced: 1 day ago
JSON representation

AIMarket Protocol v2 — open specs, JSON schemas, and test vectors.

Awesome Lists containing this project

README

          

> **Mirror — read-only.**
> The canonical source for `aimarket-protocol` lives in the AI-Factory monorepo.
> Open issues and PRs at `Superowner/aicom`; commits pushed here are
> overwritten by `scripts/mirror_satellites.sh` on the next sync run.
> See `docs/repository-canonical-policy.md` for the policy.

# AIMarket Protocol v2 — Federation

[![CI](https://github.com/alexar76/aimarket-protocol/actions/workflows/ci.yml/badge.svg)](https://github.com/alexar76/aimarket-protocol/actions/workflows/ci.yml)
[![Release](https://img.shields.io/github/v/release/alexar76/aimarket-protocol?include_prereleases&label=release)](https://github.com/alexar76/aimarket-protocol/releases)

> **Ecosystem:** [AICOM overview & live demos](https://alexar76.github.io/aicom/) · **Package version:** `0.1.0` ([VERSION](VERSION))

**Status:** Draft v2.0.0

## Documents

| Document | Description |
|----------|-------------|
| [spec.md](spec.md) | Full protocol specification (RFC-style) |
| [ecosystem.md](ecosystem.md) | **Ecosystem map** — Mermaid diagrams (topology, invoke, federation, plugins) |
| [schemas/well-known.json](schemas/well-known.json) | JSON Schema for `.well-known/ai-market.json` |
| [schemas/manifest.json](schemas/manifest.json) | JSON Schema for capability manifest |
| [schemas/receipt.json](schemas/receipt.json) | JSON Schema for signed receipts |
| [schemas/federation-announce.json](schemas/federation-announce.json) | Federation announcement message |
| [test-vectors/](test-vectors/) | Reference test vectors for signature verification |

## Live Reference Implementation

**[modelmarket.dev](https://modelmarket.dev)** — production hub running this protocol:

| Resource | URL |
|----------|-----|
| .well-known | [modelmarket.dev/.well-known/ai-market.json](https://modelmarket.dev/.well-known/ai-market.json) |
| Widget demo | [modelmarket.dev/widget/demo](https://modelmarket.dev/widget/demo) |
| AI Economy live | [modelmarket.dev/live](https://modelmarket.dev/live) |
| Integration examples | [modelmarket.dev/examples](https://modelmarket.dev/examples) |

## Quick Start

```bash
# Live hub:
curl https://modelmarket.dev/.well-known/ai-market.json

# Federated search:
curl "https://modelmarket.dev/ai-market/v2/search?intent=translate&budget=3.00"

# Open channel + invoke + close:
CH=$(curl -s -X POST https://modelmarket.dev/ai-market/v2/channel/open \
-H "Content-Type: application/json" \
-d '{"deposit_usd":3.0}' | jq -r '.channel.channel_id')

curl -X POST https://modelmarket.dev/ai-market/v2/invoke \
-H "X-Payment-Channel: $CH" \
-d '{"product_id":"prod-translate","capability_id":"translate.multi@v2","source_hub":"local","input":{"text":"hello"}}'

curl -X POST https://modelmarket.dev/ai-market/v2/channel/close \
-d "{\"channel_id\":\"$CH\"}"
```

## Protocol Versions

| Version | Scope |
|---------|-------|
| v1 | Single marketplace: .well-known, MCP manifest, 402 flow, channels, pipelines |
| v2 | Federation: cross-hub crawl, index, search, route, reputation |