Cloaked Agent

io.github.CloakedAgentPublished by GitHub account CloakedAgentv0.2.0Updated Oct 24, 2026

Trustless spending accounts for AI agents on Solana with on-chain enforced limits.

VerifiedSTDIODesktop onlyFinanceDeveloper Tools

Overview

AI-generated overview

Local MCP server giving an AI assistant a Solana spending account with on-chain limits, so it can check balances and pay SOL or USDC.

What you can do
Check the agent vault's available balance and token balances, and read spending limits and constraints from on-chain state. Send SOL or USDC to a destination address within per-transaction, daily and total limits. Fetch x402-protected resources with automatic payment. Optionally enable USDC with per-token constraints and use a privacy mode that hides the wallet-agent link.
When to use it
Use it when you want an assistant to pay for pay-per-use APIs or send small crypto amounts while spending caps are enforced by a Solana program rather than by trust in the agent.
Requirements
Runs locally over stdio via npx from the npm package, on desktop clients only. Requires a CLOAKED_AGENT_KEY (base58 agent private key); optional CLOAKED_BACKEND_URL and SOLANA_RPC_URL, which defaults to the Solana devnet endpoint. Needs network access to Solana RPC and the backend.
Before you install
The agent key CLOAKED_AGENT_KEY is a private key that controls a funded vault; anyone holding it can act within the limits. The assistant can move real funds and make automatic x402 payments, so set limits deliberately and start on devnet. Requests go to the configured backend and Solana RPC endpoints.

Installation

In SourceWeft

  1. Open Cloaked Agent in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

@cloakedagent/sdk

Trustless spending accounts for AI agents on Solana

Give AI agents spending power without giving them your wallet keys. On-chain enforced limits they literally cannot bypass.

Documentation · Website · GitHub

Installation

bash
npm install @cloakedagent/sdk

Quick Start

For AI Agents (MCP)

Add to your Claude Desktop or MCP-compatible client:

json
{  "mcpServers": {    "cloaked": {      "command": "npx",      "args": ["@cloakedagent/sdk/mcp"],      "env": {        "CLOAKED_AGENT_KEY": "your-agent-key-here"      }    }  }}

For Developers

typescript
import { CloakedAgent } from "@cloakedagent/sdk";
// Load agent from keyconst agent = new CloakedAgent(agentKey, rpcUrl);
// Check balanceconst balance = await agent.getBalance();
// Spend within limitsawait agent.spend({  destination: recipientPubkey,  amount: 100_000_000 // 0.1 SOL in lamports});
// Spend USDCawait agent.spendToken({  destination: recipientPubkey,  mint: USDC_MINT,  amount: 5_000_000 // 5 USDC});

Features

  • On-chain constraints - Per-tx, daily, and total limits enforced by Solana program
  • MCP integration - Works with Claude and other AI agents via Model Context Protocol
  • x402 support - Automatic payment for pay-per-use APIs
  • USDC support - Send USDC with per-token spending constraints
  • Privacy mode - Optional ZK proofs to hide wallet-agent link

API

CloakedAgent

typescript
// Create from agent keyconst agent = new CloakedAgent(agentKey: string, rpcUrl: string);
// Propertiesagent.publicKey      // Agent's public keyagent.vaultPda       // Vault address (holds funds)agent.agentStatePda  // State account address
// Methodsawait agent.getBalance()           // Get vault balance in lamportsawait agent.getStatus()            // Get full status with constraintsawait agent.spend({ destination, amount })  // Spend SOLawait agent.spendToken({ destination, mint, amount }) // Spend USDCawait agent.getTokenBalance(mint)   // Get token balanceawait agent.enableToken(owner, mint, constraints) // Enable USDC

MCP Tools

When running as MCP server, provides these tools:

  • cloak_balance - Check available balance
  • cloak_status - Get spending limits and constraints
  • cloak_pay - Send SOL or USDC to destination
  • cloak_x402_fetch - Fetch x402-protected resources with auto-payment

License

MIT

Source: sdk/README.md at commit b9f1ee8

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.2.0LatestSep 16, 2026

Score

50% 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 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts