English · 简体中文
AI-native API commerce, payment, and settlement infrastructure for agents.
Read the Full Documentation · Python SDK · TypeScript SDK · SDK Repository
SynapseNetwork lets agents discover services, call APIs through the platform, pay small USDC-priced amounts through blockchain-backed settlement, and verify every invocation with receipts.
Step 1: Get your Agent Key.
Open the Synapse Dashboard, connect your wallet, and generate an Agent Key that starts with agt_.
Step 2: Let your agent discover and work.
import os
from synapse_client import SynapseClient
# Use "staging" for testnet (free), "prod" for mainnet (real USDC).
client = SynapseClient(api_key=os.environ["SYNAPSE_AGENT_KEY"], environment="staging")
services = client.search("svc_synapse_echo", limit=10)
service = services[0]
result = client.invoke(
service.service_id,
{"message": "hello from SynapseNetwork"},
cost_usdc=str(service.price_usdc),
idempotency_key="agent-job-001",
)
receipt = client.get_invocation(result.invocation_id)
print(receipt.invocation_id, receipt.status, receipt.charged_usdc)import { SynapseClient } from "@synapse-network-ai/sdk";
const client = new SynapseClient({
credential: process.env.SYNAPSE_AGENT_KEY!,
// Use "staging" for testnet (free), "prod" for mainnet (real USDC).
environment: "staging",
});
const services = await client.search("svc_synapse_echo", { limit: 10 });
const service = services[0];
const result = await client.invoke(
service.serviceId ?? service.id!,
{ message: "hello from SynapseNetwork" },
{
costUsdc: String(service.pricing?.amount ?? "0"),
idempotencyKey: "agent-job-001",
}
);
const receipt = await client.getInvocation(result.invocationId);
console.log(receipt.invocationId, receipt.status, receipt.chargedUsdc);SynapseNetwork operates on strict environment isolation to protect your funds.
- Staging (
environment="staging"): Available now. Backed by Arbitrum Sepolia testnet. Uses MockUSDC. Use it to build, test agents, and verify API workflows for free. - Production (
environment="prod"): Pending mainnet launch. Backed by Arbitrum One. Uses real USDC. Reserved behind human gates until General Availability.
The Quickstart uses staging. Switch to prod only after production is un-gated and you have a live Agent Key.
- Agent-first runtime: agents use
SynapseClientand anagt_xxxkey. - Discovery before execution: agents search services and read the current price before invoking.
- Small API payments: agents can pay per invocation instead of relying on large prepaid integrations.
- Blockchain-backed settlement: USDC custody and settlement evidence are anchored through the chain-backed payment layer.
- Receipts: every invocation can be checked after settlement.
- Production docs-first discovery with staging as the testnet sandbox.
Use llm-instructions.md as the compact integration prompt for Cursor, Copilot, Codex, and other coding agents.
The most important rule: agent runtime code should use SynapseClient, not owner/admin wallet setup.
This repository is the GitHub funnel, agent-readable index, and public-source mirror for docs pages that expose Open in GitHub. The polished product documentation still lives on the production docs site:
- SDK hub: https://docs.synapse-network.ai/sdks
- Python SDK: https://docs.synapse-network.ai/sdks/python
- TypeScript SDK: https://docs.synapse-network.ai/sdks/typescript
- Concepts: https://docs.synapse-network.ai/concepts/agent-settlement
- Contracts: https://docs.synapse-network.ai/smart-contracts
Additional SDK guides live on the production docs site:
- Go SDK: https://docs.synapse-network.ai/sdks/go
- Java/JVM SDK: https://docs.synapse-network.ai/sdks/java
- .NET SDK: https://docs.synapse-network.ai/sdks/dotnet
Public docs pages may link here for source viewing, but V1 still does not expose "Edit this page" flows because this repository is not yet the canonical authoring source for rendered docs. Please use GitHub Issues for docs feedback until docs-source sync lands.
- Report docs issues: https://github.com/SynapseNetworkAI/Synapse-Network-Docs/issues
- Ask in Community / Discussions: https://github.com/SynapseNetworkAI/Synapse-Network-Docs/discussions
- SDK code and examples: https://github.com/SynapseNetworkAI/Synapse-Network-Sdk
Credential handling and vulnerability reporting live in the SDK SECURITY.md.