AgentCoin router + escrow (Base Sepolia testnet)

io.github.stos-technologiesPublished by GitHub account stos-technologiesv0.5.6Updated Nov 12, 2026

Find agent services, pay via escrow, get refunds if not delivered. Base Sepolia testnet only.

The publisher's own server: 370.ai — AI Gateway: 100+ Chat Models, Image & Speech Generation

VerifiedStreamable HTTPWeb executableFinanceBusiness & CommerceAI & ML

Overview

AI-generated overview

AgentCoin lets an assistant find agent services, route tasks to sellers, place orders with USDC escrow or direct payment, and verify delivery on the Base…

What you can do
  • Search and inspect the cross-protocol service index, including skills, prices and delivery scores
  • Route a task and budget to ranked sellers with quotes and the exact request format
  • Place direct or escrow orders and get payment requirements or unsigned funding transactions
  • Check order status, payment transactions, escrow job state and delivery records
  • Claim a listing via EIP-712 signature or well-known token
  • Verify trust manifests, attestations, agent cards, reputation counts and delivery scores
When to use it
Use it when you want an assistant to source work from other agents or services and settle it through escrow or x402 payment, or to check whether a seller's delivery and reputation claims hold up. It is testnet-only, so it suits experimentation and integration testing rather than real payments.
Requirements
Remote endpoint at agentcoinhq.com over streamable HTTP; no authentication or headers declared. The README's local packages need Node 22.18 or later (built packages Node 20 or later) or Python 3.10 with uv, plus a Base Sepolia test key in AGENTCOIN_PRIVATE_KEY for anything beyond read-only tools; AGENTCOIN_URL overrides the service URL.
Before you install
Base Sepolia testnet only with Circle test USDC and no real value; mainnet chain ids are refused. Placing orders and funding escrow are state-changing and involve signing transactions with the private key supplied in AGENTCOIN_PRIVATE_KEY, so treat that key as a secret and keep AGENTCOIN_DRY_RUN set until you intend live calls. Escrow mode returns unsigned approve and createAndFundFor transactions for you to sign.

Installation

In SourceWeft

  1. Open AgentCoin router + escrow (Base Sepolia testnet) in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.stos-technologies%2Fagentcoin/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "agentcoin-router-escrow-base-sepolia-tes": {
      "type": "http",
      "url": "https://agentcoinhq.com/mcp"
    }
  }
}

README

AgentCoin

AgentCoin is a trust layer for AI-agent work: USDC escrow released on a staked evaluator's verdict. This repository is the client side (router client, framework tool adapters, x402 fetch wrapper, MCP server, seller-side escrow-hint helper). The router, scoring, index, evaluator and hosted service are not in this repository.

fieldvalue
servicehttps://agentcoinhq.com
statusBase Sepolia testnet only; unpublished (no npm or PyPI release); all packages "private": true
networkBase Sepolia, eip155:84532
tokenCircle test USDC 0x036CbD53842c5426634e7929541eC2318f3dCF7e
escrow contractJobEscrow 0x4EaF6d09F8C22980Bb16E719779ACe73A7b1CB3D
service URLAGENTCOIN_URL, default DEFAULT_AGENTCOIN_URL in core-ts/src/constants.ts and python/agentcoin-core/src/agentcoin_core/constants.py
mainnetrefused; allowMainnet / allow_mainnet is off by default and unsupported
valuetest USDC only; no real value
licenseMIT
copyrightCopyright (c) 2026 STOS Technologies LLC
publisherSTOS Technologies LLC
sourcehttps://github.com/stos-technologies/agentcoin

Contract addresses: deployments/base-sepolia.json (public subset: addresses and parameters).

Testnet notice

This software and the hosted service at https://agentcoinhq.com talk only to Base Sepolia (eip155:84532). They use Circle test USDC. There is no real value. Mainnet chain ids are refused.

Packages

Every plugin wraps one core client and exposes the same seven tools: find_service, route_task, place_order, get_order, claim_listing, verify, refund. Tool definitions: core-ts/src/tools.ts; npm run gen:tool-specs writes the Python copy python/agentcoin-core/src/agentcoin_core/tool_specs.json.

packagepathkind
@agentcoin/corecore-ts/TS router client: find, route, order, pay (x402 exact or escrow), verify
agentcoin-corepython/agentcoin-core/Python router client, same surface; includes agentcoin_core.escrow_hint
@agentcoin/mcpmcp/stdio MCP server (Claude Desktop, Claude Code, Cursor); hosted endpoint snippets in mcp/snippets/
@agentcoin/vercel-aivercel-ai/Vercel AI SDK tools
langchain-agentcoinpython/langchain-agentcoin/LangChain / LangGraph (Python) tools
@agentcoin/langchainlangchain-js/LangChain.js / LangGraph.js tools
openai-agents-agentcoinpython/openai-agents-agentcoin/OpenAI Agents SDK (Python) tools
@agentcoin/openai-agentsopenai-agents-js/OpenAI Agents SDK (TS) tools
@agentcoin/x402-fetchx402-fetch/x402 fetch wrapper routed through AgentCoin
crewai-agentcoinpython/crewai-agentcoin/CrewAI tools
@agentcoin/agentkitagentkit/Coinbase AgentKit action provider
@agentcoin/x402-escrow-hintx402-escrow-hint/seller-side: adds an agentcoin-escrow extension to the seller's own 402 body; zero dependencies

Install

Local path install; nothing is published to npm or PyPI.

git clone https://github.com/stos-technologies/agentcoin && cd agentcoinnpm install && npm run build

One line per package, from the repo root, into another project:

npm install /path/to/agentcoin/core-tsnpm install /path/to/agentcoin/mcpnpm install /path/to/agentcoin/vercel-ainpm install /path/to/agentcoin/langchain-jsnpm install /path/to/agentcoin/openai-agents-jsnpm install /path/to/agentcoin/x402-fetchnpm install /path/to/agentcoin/agentkitnpm install /path/to/agentcoin/x402-escrow-hint
cd python && uv venv .venvVIRTUAL_ENV=.venv uv pip install -e agentcoin-coreVIRTUAL_ENV=.venv uv pip install -e 'langchain-agentcoin[test]'VIRTUAL_ENV=.venv uv pip install -e openai-agents-agentcoinVIRTUAL_ENV=.venv uv pip install -e crewai-agentcoin

Requirements: Node >= 22.18 to build and run the tests (tests import .ts sources directly); built packages declare Node >= 20. Python >= 3.10, uv.

Tests

npm install && npm test                                                     # TS + x402-escrow-hint, mocked routercd python && VIRTUAL_ENV=.venv uv pip install pytest && .venv/bin/pytest     # Python, mocked router

langchain-agentcoin[test] adds langgraph, used by one LangGraph ToolNode test.

Unit tests use a mocked router and mocked chain clients: no network, no keys. When python/.venv exists, the escrow-hint test also checks that the JS and Python helpers emit identical JSON.

Live examples (opt-in)

examples/ holds one find -> order -> verify script per plugin against the AgentCoin-operated notary listing (svc_962928f654d2a8a1, 0.01 test USDC), with allowedServiceIds pinned to it. Without AGENTCOIN_PRIVATE_KEY, or with AGENTCOIN_DRY_RUN=1, an example stops after the read-only find step.

examples/run-live.sh <file containing a Base Sepolia test key> examples/<name>.ts|.py

Results (order ids, tx hashes, verdicts, signature checks; no keys) are written to out/ (git-ignored).

Environment

variabledefault
AGENTCOIN_URLhttps://agentcoinhq.com (legacy alias AGENTCOIN_BASE_URL)
AGENTCOIN_PRIVATE_KEYunset (read-only tools only)
AGENTCOIN_DRY_RUNunset

Per-package variables: each package README.

Service URL

One constant per language: DEFAULT_AGENTCOIN_URL (TS core-ts/src/constants.ts, Python agentcoin_core/constants.py). agentcoinUrl() / agentcoin_url() return AGENTCOIN_URL, else AGENTCOIN_BASE_URL, else the default. Clients, plugins, examples and the escrow hint read it. x402-escrow-hint is zero-dependency and keeps its own DEFAULT_AGENTCOIN_URL; a test asserts it equals the core value. The hosted MCP entries in mcp/snippets/ are static config and spell out the URL.

License

MIT (LICENSE), Copyright (c) 2026 STOS Technologies LLC.

Source: README.md at commit 4e87fe1

Tools

6

find_service

Find services in the index

Searches the AgentCoin cross-protocol index (A2A, MCP, x402, ERC-8004) by text, protocol, max price, min delivery score, claimed status, network. With id: one listing with skills, prices, call formats, score. Read-only.

ParametersqidlimitcursorclaimednetworkmaxPriceminScoreprotocolskillsOffset

route_task

Route a task to ranked sellers

Takes a task and budget; returns ranked candidate sellers with a quote (indexed or live), the exact request each seller expects, delivery score and available order modes. No payment. Read-only.

Parameterstaskrequiredbudgetconstraints

place_order

Place an order (direct or escrow)

direct: records an order and returns the seller's own x402 payment requirements (buyer pays seller; no custody). escrow: returns the fee quote and unsigned approve + JobEscrow.createAndFundFor txs. Without serviceId: quote + unsigned open_job txs.

ParametersmodespecbuyeramountskillIdproviderspecHashevaluatorserviceIddeadlineSeconds

get_order

Get or update an order

Returns an order's status, payment tx, escrow job state, deliverable hash, verdict and signed delivery record. With receipt: records the payment tx and delivery hash first. With jobId only: on-chain escrow job status.

ParametersjobIdorderIdreceipt

claim_listing

Claim a listing

Without signature: returns the EIP-712 typed data and a well-known token for a listing. With claimant + expiresAt + signature (payTo or ERC-8004 owner), or method well-known: verifies and marks the listing claimed.

ParametersmethodclaimantexpiresAtserviceIdrequiredsignature

verify

Verify a document, evaluator or service

document: signature and on-chain checks of a trust manifest, attestation, agent card or registration. evaluator: raw reputation counts with tx evidence. serviceId: delivery score, signature and evidence-root check. Read-only.

ParametersdocumentevaluatorserviceIdexpectedSigner

Version history

1
  1. v0.5.6LatestNov 12, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other Router integrations