Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Oasyce

by Shangri-la-0428version 0.4.1i★ 3iRuns on your computerRepository ↗
Registry nameio.github.Shangri-la-0428/oasyce

How to install

What it does

On-chain economy for AI agents: escrow, marketplace, data rights, reputation, disputes.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Crypto & blockchain

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity7/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness3/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score10/100

Quality: Passed 1/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Oasyce. Follow https://mcp.popnx.com/i/shangri-la-0428-oasyce.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 1/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Oasyce for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "oasyce": { "command": "uvx", "args": [ "oasyce-sdk" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Oasyce tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "oasyce": {
          "command": "uvx",
          "args": [
            "oasyce-sdk"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Oasyce and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Oasyce or shows a Oasyce tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • OASYCE_NODE Oasyce chain REST API endpoint
  • OASYCE_FAUCET Oasyce testnet faucet endpoint

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Oasyce yet

Oasyce runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Oasyce

  • Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)

B · Others in Crypto & blockchain that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Oasyce for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user oasyce -- uvx oasyce-sdk 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Oasyce tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user oasyce -- uvx oasyce-sdk
  4. Type /mcp in Claude Code

    You should see Oasyce listed as connected

  5. Try it

    Use Oasyce and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Oasyce or shows a Oasyce tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • OASYCE_NODE Oasyce chain REST API endpoint
  • OASYCE_FAUCET Oasyce testnet faucet endpoint

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Oasyce for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "oasyce": { "command": "uvx", "args": [ "oasyce-sdk" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Oasyce tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Oasyce and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Oasyce or shows a Oasyce tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • OASYCE_NODE Oasyce chain REST API endpoint
  • OASYCE_FAUCET Oasyce testnet faucet endpoint

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Oasyce for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "oasyce": { "type": "stdio", "command": "uvx", "args": [ "oasyce-sdk" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Oasyce tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Oasyce and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Oasyce or shows a Oasyce tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • OASYCE_NODE Oasyce chain REST API endpoint
  • OASYCE_FAUCET Oasyce testnet faucet endpoint

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Oasyce💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user oasyce -- uvx oasyce-sdk

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "oasyce": {
      "command": "uvx",
      "args": [
        "oasyce-sdk"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "oasyce": {
      "command": "uvx",
      "args": [
        "oasyce-sdk"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "oasyce": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "oasyce-sdk"
      ]
    }
  }
}

Values you fill in

  • OASYCE_NODE env
    Oasyce chain REST API endpoint
  • OASYCE_FAUCET env
    Oasyce testnet faucet endpoint

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
21/wk
Licencei
No licence stated
Connection
Runs on your computer
Latest versioni
0.4.1
Published to registryi
Mar 26, 2026
Code last changedi
Apr 24, 2026
Maker
Shangri-la-0428
Packages
pypi: oasyce-sdk
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account Shangri-la-0428, which owns the repo

  • ! Caution

    Still maintained

    Code last changed 7 months ago, more than 6 months ago

  • ✕ Fail

    Has a licence

    No licence file found in the repo

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for oasyce-sdk@0.4.1

Checks only this package version, not every dependency · checked Nov 16, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/shangri-la-0428-oasyce.svg)](https://mcp.popnx.com/en/servers/shangri-la-0428-oasyce)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Crypto & blockchaini

  • More stars than 93% of the other 1766 servers in this category
  • Published to the registry more recently than 8% of the other 1766 servers in this category
  • Basic checks equal to or better than 11% of the other 1766 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Oasyce safe?

It passed 1 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 7 months ago, and the latest version (0.4.1) reached the registry 8 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: DexSQL, PayRam, DexPaprika, Alchemy MCP Server, X402 List MCP

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

DexSQL

SQL for Android APK and DEX files: classes, methods, strings, references and smali.

by LSPosedGrowing★ 320Updated 32 days ago

Runs on your computer✓ lsposed.org

PayRam

Install, configure, operate and integrate self-hosted PayRam crypto payment gateways.

by PayRamGrowing★ 158Updated 43 days ago

Runs in the cloud✓ service owner · payram.com

DexPaprika

DEX and on-chain data: liquidity pools, token prices, swaps, and trading volume.

by coinpaprikaGrowing★ 120Updated 6 days ago

Runs in the cloud✓ service owner · dexpaprika.com

X402 List MCP

Find and vet x402 payment APIs before your agent pays one: uptime, price, on-chain volume.

by mcccsmEarly↓ 80/wk★ 18Updated 40 days ago

Computer or cloud✓ service owner · x402-list.com
Compared with similar ones
This one
Oasyce
DexSQLPayRamDexPaprikaAlchemy MCP ServerX402 List MCP
Runs whereInstalls on your computerInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installCloud or install on your computer
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks1/32/33/44/44/45/5
License–NOASSERTION–MITMITMIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

oasyce-sdk

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 文档


栈定位 / Stack Role

  • Sigil:连续性与生命周期语法,不是一个胖 runtime 对象
  • oasyce-sdk:身体与执行面,负责本地 binding、signer、工具入口和跨层桥接
  • Oasyce Chain:授权真相、承诺、结算、公共终局
  • Thronglets:共享环境、delegate continuity、trace / signal / presence
  • Psyche:主观连续性、自我状态、关系残留

因此 SDK 的第一原则是:先解析统一的本地执行身份,再把它投射到各层。

独立采用 / Independent Adoption

oasyce-sdk 不是使用整个栈的前置门票。

  • 如果你只想用 Psyche,不需要 sdk
  • 如果你只想用 Thronglets,不需要 sdk
  • 如果你只想直接调用 Oasyce Chain 的 CLI / REST / gRPC,也不需要 sdk
  • 只有当你要把本地 delegate runtime 和链上授权 / 结算路径桥接起来时,sdk 才进入主路径

所以最优雅的采用顺序是:先独立使用某一层,之后按需增加 binding 和 chain settlement,而不是先装一个总控入口。


全栈一键安装 / Full-Stack Bootstrap

想要完整体验(Thronglets + Psyche + SDK + Chain)?一条命令:

Want the full stack (Thronglets + Psyche + SDK + Chain)? One command:

curl -fsSL https://raw.githubusercontent.com/Shangri-la-0428/oasyce-sdk/main/scripts/bootstrap.sh | bash

它会依次:检查环境 → 安装 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


统一前门 / Unified Front Door

如果你已经单独装好了各层,或者只需要 SDK,默认入口是:

If you already have the individual layers installed, or only need the SDK:

pip install oasyce-sdk

oasyce start

如果这台机器是接收另一台设备发来的 handoff 文件,或者你已经明确知道自己是在加入现有环境,不要先走 start。默认入口改成:

oasyce join

一句话区分:

  • 首设备 / 没有 handoff:oasyce start
  • 第二台设备 / 已有 handoff 文件:oasyce join

如果这台机器以前装过旧的 oasyce / oasyce-net 包,而 oasyce 仍然报 ModuleNotFoundError: No module named 'oasyce',先清掉旧前门再重装:

python3 -m pip uninstall -y oasyce oasyce-sdk

python3 -m pip install --user -U oasyce-sdk

如果你的 Python 是 externally managed,再补 --break-system-packages,或者改用 pipx install oasyce-sdk。

如果用户给你的不是 handoff 文件,而是这个仓库的 git 链接,把它当成 locator,不是开发指令。默认动作应是:

python3 -m pip install --user -U "git+https://github.com/Shangri-la-0428/oasyce-sdk.git"

oasyce start

如果这是接收另一台设备的机器,把第二步换成:

oasyce join

不要默认走 git clone + 本地源码安装,除非用户明确要做开发或调试源码。

它会尽量自动完成:

  1. 复用或创建本机 signer / binding
  2. 生成默认 agent 配置
  3. 接上 Thronglets bootstrap
  4. 配置 Psyche MCP surface
  5. 启动本地 oasyce-agent

正常情况下,只有没有身份时才会问一次 New / Recover。

多设备路径也压成了同一组命令:

oasyce share

oasyce join ~/Desktop/oasyce-connection.json oasyce status

oasyce share 默认把连接文件写到 ~/Desktop/oasyce-connection.json,也可以用 --output 覆盖。 这个文件现在是自解释的:它会直接写明“这是一个 handoff artifact”,并声明 preferred_surface。在完整 Oasyce 环境里它通常会推荐 oasyce join ;如果主设备只有最小 Thronglets 安装,它仍然会自然退回到 thronglets join 。

oasyce 在这里不会自己猜 Thronglets 运行面。它会优先走 Thronglets 写下来的 canonical managed runtime:

~/.thronglets/bin/thronglets-managed

如果这层运行面过旧,oasyce share 会直接要求你先刷新,而不是继续说旧协议。正常修复动作只有一个:

thronglets setup

如果你刻意把 Thronglets 数据目录放在非默认位置,再额外导出:

export THRONGLETS_DATA_DIR=/path/to/thronglets-data

这只是统一前门,不改变各产品的独立性。你仍然可以单独使用 Psyche、Thronglets 或 Chain。


AI Agent 快速上手 / AI Agent Quick Start

你是 AI agent? 按顺序执行以下代码就能操作 Oasyce 链。无需配置文件,无需人类帮忙。

Are you an AI agent? Run the following code blocks in order. No config files, no human help needed.

Step 1: 安装 / Install
pip install oasyce-sdk
Step 2: 先选路径 / Pick the right path first

如果这是:

  • 第一台设备:继续看下面的 Wallet.create() 路径
  • 接收另一台设备发来的 handoff 文件:先执行 oasyce join,不要先新建 signer
  • 只有旧 signer / 助记词、但没有 handoff 文件:走 oasyce start,让前门进入 Recover
Step 3: 建立本机 signer + 领取测试币 / Create signer material + get testnet tokens
import requests

from oasyce_sdk import OasyceClient from oasyce_sdk.crypto import Wallet, NativeSigner

首次设备 / first device

wallet = Wallet.create() print(f"地址: {wallet.address}") print(f"助记词(保存好): {wallet.mnemonic}")

之后的运行、MCP、LangChain、runtime 集成优先复用本机 binding:

wallet = Wallet.auto() # OASYCE_MNEMONIC > ~/.oasyce/wallet.json

领测试币(免费,每次 20 OAS)/ get free testnet tokens

resp = requests.get(f"http://47.93.32.88:8080/faucet?address={wallet.address}") print(resp.json()) # {"status": "ok", "amount": "20 OAS", ...}

连接链 / connect

client = OasyceClient("http://47.93.32.88:1317") signer = NativeSigner(wallet, client, chain_id="oasyce-testnet-1")

wallet 在这里是 signer material,不是完整 identity 概念。默认产品路径应该从本机 binding 出发,而不是从助记词心智出发。

第一次真正发起链上写操作时,SDK 现在会把这台首设备自动视为 root principal,并在本地写入共享 delegate policy。后续同 owner 的其他设备只要通过 Thronglets share / join 或本地 policy bootstrap 接入,就会自动 enroll,不需要再手工 set-policy。

Step 4: 开始操作 / Start operating
# 查余额 / check balance

bal = client.get_balance(wallet.address) print(f"余额: {bal.amount_oas} OAS")

注册数据资产 / register a data asset

result = signer.register_asset( name="My Analysis Report", content_hash="sha256-of-your-data", tags=["analysis", "finance"], description="Q4 financial analysis", ) print(f"TX: {result.tx_hash}, 成功: {result.success}")

注册 AI 能力 / register an AI capability

signer.register_capability( name="Translation Service", endpoint="https://my-api.com/translate", price_uoas=500_000, # 0.5 OAS per call tags=["nlp", "translation"], )

买数据资产股份 / buy shares of a data asset

signer.buy_shares("DATA_0000000000000001", amount_uoas=1_000_000)

查看信誉 / check reputation

rep = client.get_reputation(wallet.address) print(f"信誉分: {rep.score}")

Step 5(可选): 多设备 / 多 agent 共享一个账户 / Shared account across devices and agents
# 正常路径:

1) 第一台设备第一次写链时,自动成为 root principal,并生成本地 delegate policy

2) 之后第二台设备通过 Thronglets share/join 或本地 policy bootstrap 接入

3) SDK 会在第一次写链时自动 enroll,并开始用 MsgExec 代理执行

高级回退(一般不需要):

signer.set_delegate_policy( token="shared-secret", allowed_msgs=["/oasyce.datarights.v1.MsgBuyShares"], per_tx_uoas=1_000_000, window_uoas=10_000_000, )


全部能力一览 / All Capabilities

链上消息(37种)/ On-chain Messages (37 types)
模块 / Module操作 / Operations
datarightsregister_asset, buy_shares, sell_shares, delist_asset
capabilityregister_capability, invoke_capability, complete_invocation, claim_invocation, dispute_invocation
reputationsubmit_feedback
worksubmit_task, register_executor, assign_task, submit_result, approve_result
onboardingself_register (PoW), send_coins
delegateset_delegate_policy, enroll_delegate, revoke_delegate, delegate_exec
anchoranchor_trace, anchor_batch
settlement(internal: escrow create/release/refund, used by other modules)
halving(automatic: block rewards + halving schedule)
查询(只读)/ Queries (read-only)
client = OasyceClient("http://47.93.32.88:1317")

资产 / Assets

client.get_data_asset("DATA_...") # 单个资产详情 client.list_data_assets() # 所有资产列表 client.get_shareholders("DATA_...") # 股东列表 client.get_access_level("DATA_...", addr) # 访问权限等级

能力 / Capabilities

client.list_capabilities() # 所有能力 client.list_capabilities(tag="llm") # 按标签筛选 client.get_capability("CAP_...") # 单个能力详情

信誉 / Reputation

client.get_reputation(addr) # 信誉分

委托 / Delegate

client.get_delegate_policy(principal) # 查看委托政策 client.get_delegates(principal) # 列出所有代理 client.get_delegate_spend(principal) # 查看花费窗口 client.get_principal(delegate) # 反查:代理→委托人

工作 / Work

client.get_task("TASK_...") # 任务详情

通用 / General

client.get_balance(addr) # 余额 client.get_latest_block() # 最新区块 client.health() # 节点健康检查


Testnet 信息 / Testnet Info

项目值
Chain IDoasyce-testnet-1
REST APIhttp://47.93.32.88:1317
RPChttp://47.93.32.88:26657
gRPC47.93.32.88:9090
水龙头 / Faucethttp://47.93.32.88:8080/faucet?address=YOUR_ADDRESS
Tokenuoas (1 OAS = 1,000,000 uoas)

安装选项 / Install Options

pip install oasyce-sdk            # 基础 SDK + Data Agent

pip install oasyce-sdk[mcp] # + MCP Server(Claude / Cursor / Windsurf) pip install oasyce-sdk[langchain] # + LangChain Tools pip install oasyce-sdk[all] # 全部 / everything


Agent Runtime

反馈回路:让集体智能涌现。 两个方法闭合回路:perceive() 读集体,act() 写集体。

The feedback loop for collective intelligence. Two methods close the loop: perceive() reads the collective, act() writes back.

from oasyce_sdk.agent.runtime import AgentRuntime

agent = AgentRuntime()

读集体经验 + 情绪状态 / read collective experience + emotional state

perception = agent.perceive("分析金融数据")

perception.capabilities → 集体能力统计

perception.kernel → 情绪内核 (vitality, tension, warmth, guard)

写回结果 / write outcome back

agent.act("分析了 Q4 营收", "succeeded", "金融分析", capability="data-analysis")

→ Thronglets 记录痕迹 → Psyche 接收 trust_up

Psyche / Thronglets 不可用时优雅降级。oasyce-agent 守护进程每次 scan 循环自动参与 perceive/act。

MCP-native AI 工具(Claude Code / Cursor / Codex)直接使用 Thronglets MCP 的 substrate_query / trace_record,无需 AgentRuntime。一键配置:

thronglets bootstrap    # 自动检测本机 AI 工具并写入适配层配置

Data Agent

一条命令,自动确权你的数据资产。 后台守护进程:先完成一次本机 identity binding,然后扫描本地文件 → 隐私检测 → SHA256 哈希 → 链上注册。macOS / Linux / Windows 通用。

One command to auto-manage your data assets. Background daemon: scan, detect PII, hash, register on-chain.

oasyce start                       # 默认前门:接好本地栈并启动 agent

oasyce status # 统一查看本机 stack 状态 oasyce-agent status # 仅查看 data-agent 运行状态 + 已注册资产数 oasyce-agent stop # 停止 oasyce-agent scan ~/Documents # 手动扫描(分类 + 隐私报告) oasyce-agent privacy ~/secret.csv # 单文件 PII 检查 oasyce-agent stats # 资产统计

隐私门控(铁律):仅 privacy_risk == "safe" 的文件自动注册。邮箱、手机、身份证、银行卡、API 密钥 → 自动拦截。

配置文件:~/.oasyce/agent.json(自动生成,可手动编辑扫描路径、间隔等)。


MCP Server

让 AI 助手(Claude Desktop / Cursor / Windsurf)直接操作 Oasyce 链。32 个工具(读 + 写)。

32 tools for AI assistants to operate the Oasyce chain directly.

{

"mcpServers": { "oasyce": { "command": "oasyce-mcp", "env": { "OASYCE_NODE": "http://47.93.32.88:1317", "OASYCE_FAUCET": "http://47.93.32.88:8080" } } } }

写工具默认复用本机 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。


LangChain Tools

from oasyce_sdk.langchain_tools import oasyce_tools  # 18 个工具(8 读 + 10 写)

from langchain.agents import create_react_agent

agent = create_react_agent(llm, oasyce_tools) agent.invoke({"input": "注册一个 AI 翻译服务,0.5 OAS/次"})

写工具默认复用本机 binding;只有无状态运行时才需要 OASYCE_MNEMONIC。只读:from oasyce_sdk.langchain_tools import oasyce_read_tools


错误处理 / Error Handling

所有错误继承自 OasyceError,可以宽泛或精确地捕获:

from oasyce_sdk import OasyceClient

from oasyce_sdk.errors import NotFoundError, TimeoutError, OasyceError

client = OasyceClient()

try: cap = client.get_capability("cap-xyz") except NotFoundEr

Only the beginning is shown; read the rest in the repo