On-chain economy for AI agents: escrow, marketplace, data rights, reputation, disputes.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
💡 Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Oasyce 栈的 runtime / body。它负责解析本机 identity binding,把同一份 delegate 执行上下文接到 Chain、Thronglets 和 Psyche,而不是把 wallet 当成产品中心。
Runtime / body for the Oasyce stack. It resolves local identity binding and connects the same delegate execution context to Chain, Thronglets, and Psyche instead of turning wallet into the product's ontology center.
English | API Reference / 完整 API 文档
Sigil:连续性与生命周期语法,不是一个胖 runtime 对象oasyce-sdk:身体与执行面,负责本地 binding、signer、工具入口和跨层桥接Oasyce Chain:授权真相、承诺、结算、公共终局Thronglets:共享环境、delegate continuity、trace / signal / presencePsyche:主观连续性、自我状态、关系残留因此 SDK 的第一原则是:先解析统一的本地执行身份,再把它投射到各层。
oasyce-sdk 不是使用整个栈的前置门票。
Psyche,不需要 sdkThronglets,不需要 sdkOasyce Chain 的 CLI / REST / gRPC,也不需要 sdksdk 才进入主路径所以最优雅的采用顺序是:先独立使用某一层,之后按需增加 binding 和 chain settlement,而不是先装一个总控入口。
想要完整体验(Thronglets + Psyche + SDK + Chain)?一条命令:
Want the full stack (Thronglets + Psyche + SDK + Chain)? One command:
它会依次:检查环境 → 安装 Thronglets → 安装 Psyche → 安装 SDK → 运行 oasyce start 统一编排。任何一层失败不阻断其他层。
It will: check prerequisites → install Thronglets → install Psyche → install SDK → run oasyce start. Each layer degrades gracefully if unavailable.
前置要求 / Prerequisites:Node.js >= 22 + Python >= 3.10
如果你已经单独装好了各层,或者只需要 SDK,默认入口是:
If you already have the individual layers installed, or only need the SDK:
如果这台机器是接收另一台设备发来的 handoff 文件,或者你已经明确知道自己是在加入现有环境,不要先走 start。默认入口改成:
一句话区分:
oasyce startoasyce join如果这台机器以前装过旧的 oasyce / oasyce-net 包,而 oasyce 仍然报
ModuleNotFoundError: No module named 'oasyce',先清掉旧前门再重装:
如果你的 Python 是 externally managed,再补 --break-system-packages,或者改用 pipx install oasyce-sdk。
如果用户给你的不是 handoff 文件,而是这个仓库的 git 链接,把它当成 locator,不是开发指令。默认动作应是:
如果这是接收另一台设备的机器,把第二步换成:
不要默认走 git clone + 本地源码安装,除非用户明确要做开发或调试源码。
它会尽量自动完成:
oasyce-agent正常情况下,只有没有身份时才会问一次 New / Recover。
多设备路径也压成了同一组命令:
oasyce share 默认把连接文件写到 ~/Desktop/oasyce-connection.json,也可以用 --output 覆盖。
这个文件现在是自解释的:它会直接写明“这是一个 handoff artifact”,并声明 preferred_surface。在完整 Oasyce 环境里它通常会推荐 oasyce join <connection-file>;如果主设备只有最小 Thronglets 安装,它仍然会自然退回到 thronglets join <connection-file>。
oasyce 在这里不会自己猜 Thronglets 运行面。它会优先走 Thronglets 写下来的 canonical managed runtime:
如果这层运行面过旧,oasyce share 会直接要求你先刷新,而不是继续说旧协议。正常修复动作只有一个:
如果你刻意把 Thronglets 数据目录放在非默认位置,再额外导出:
这只是统一前门,不改变各产品的独立性。你仍然可以单独使用 Psyche、Thronglets 或 Chain。
你是 AI agent? 按顺序执行以下代码就能操作 Oasyce 链。无需配置文件,无需人类帮忙。
Are you an AI agent? Run the following code blocks in order. No config files, no human help needed.
如果这是:
Wallet.create() 路径oasyce join,不要先新建 signeroasyce start,让前门进入 Recoverwallet 在这里是 signer material,不是完整 identity 概念。默认产品路径应该从本机 binding 出发,而不是从助记词心智出发。
第一次真正发起链上写操作时,SDK 现在会把这台首设备自动视为 root principal,并在本地写入共享 delegate policy。后续同 owner 的其他设备只要通过 Thronglets share / join 或本地 policy bootstrap 接入,就会自动 enroll,不需要再手工 set-policy。
| 模块 / Module | 操作 / Operations |
|---|---|
| datarights | register_asset, buy_shares, sell_shares, delist_asset |
| capability | register_capability, invoke_capability, complete_invocation, claim_invocation, dispute_invocation |
| reputation | submit_feedback |
| work | submit_task, register_executor, assign_task, submit_result, approve_result |
| onboarding | self_register (PoW), send_coins |
| delegate | set_delegate_policy, enroll_delegate, revoke_delegate, delegate_exec |
| anchor | anchor_trace, anchor_batch |
| settlement | (internal: escrow create/release/refund, used by other modules) |
| halving | (automatic: block rewards + halving schedule) |
| 项目 | 值 |
|---|---|
| Chain ID | oasyce-testnet-1 |
| REST API | http://47.93.32.88:1317 |
| RPC | http://47.93.32.88:26657 |
| gRPC | 47.93.32.88:9090 |
| 水龙头 / Faucet | http://47.93.32.88:8080/faucet?address=YOUR_ADDRESS |
| Token | uoas (1 OAS = 1,000,000 uoas) |
反馈回路:让集体智能涌现。 两个方法闭合回路:perceive() 读集体,act() 写集体。
The feedback loop for collective intelligence. Two methods close the loop: perceive() reads the collective, act() writes back.
Psyche / Thronglets 不可用时优雅降级。oasyce-agent 守护进程每次 scan 循环自动参与 perceive/act。
MCP-native AI 工具(Claude Code / Cursor / Codex)直接使用 Thronglets MCP 的 substrate_query / trace_record,无需 AgentRuntime。一键配置:
一条命令,自动确权你的数据资产。 后台守护进程:先完成一次本机 identity binding,然后扫描本地文件 → 隐私检测 → SHA256 哈希 → 链上注册。macOS / Linux / Windows 通用。
One command to auto-manage your data assets. Background daemon: scan, detect PII, hash, register on-chain.
隐私门控(铁律):仅 privacy_risk == "safe" 的文件自动注册。邮箱、手机、身份证、银行卡、API 密钥 → 自动拦截。
配置文件:~/.oasyce/agent.json(自动生成,可手动编辑扫描路径、间隔等)。
让 AI 助手(Claude Desktop / Cursor / Windsurf)直接操作 Oasyce 链。32 个工具(读 + 写)。
32 tools for AI assistants to operate the Oasyce chain directly.
写工具默认复用本机 binding:~/.oasyce/identity.v1.json + ~/.oasyce/wallet.json。如果你先用了 Thronglets,SDK 在第一次本地绑定时会可选吸收 ~/.thronglets/identity.v1.json 里的 owner_account 作为 account hint。OASYCE_MNEMONIC 只是无状态 / 服务器场景下的显式 override。集体智能(perceive/act)用 Thronglets MCP;Thronglets 的默认接入面是 thronglets bootstrap,也可以直接走 oasyce start。
写工具默认复用本机 binding;只有无状态运行时才需要 OASYCE_MNEMONIC。只读:from oasyce_sdk.langchain_tools import oasyce_read_tools
所有错误继承自 OasyceError,可以宽泛或精确地捕获:
异常层级 / Exception hierarchy:
NotFoundError / TimeoutError / ChainErroroas_to_uoas() / uoas_to_oas()requests.Sessionrequests + coincurve + mnemonic,无需 protobuf 库或 Go 二进制Apache-2.0
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/oasyce)<a href="https://allmcps.com/mcp/oasyce"><img src="https://allmcps.com/api/badge/oasyce?style=directory" alt="Oasyce on AllMCPs" /></a>