loading…
Search for a command to run...
loading…
MCP server with 12 tools enabling AI agents (Claude, ChatGPT) to manage Algorand-based subscriptions, including locking funds in vaults and automated payments.
MCP server with 12 tools enabling AI agents (Claude, ChatGPT) to manage Algorand-based subscriptions, including locking funds in vaults and automated payments.
Lock ALGO in smart contract vaults you own. An autonomous agent releases payments on billing day.
Every transaction is verifiable on Algorand.
Explore the live app >>
View Demo
·
API Docs
·
Report Bug
·
Request Feature
Built for AlgoBharat Hack Series 3.0, targeting the Agentic Commerce track, specifically the A2A Autonomous Payments and A2A Agentic Commerce Framework categories.
![]() Landing Page |
![]() Dashboard |
![]() Subscriptions |
![]() Escrow Vaults |
Most subscription trackers are just spreadsheets with a nicer font. They show you what you spend, but they cannot do anything about it. Unsubscribely puts your subscriptions on-chain. You lock funds in an escrow vault you own, an autonomous agent releases payments on billing day, and every transaction is verifiable on Algorand.
Here is why this is different:
[!NOTE] The average Indian developer pays for 8-12 SaaS tools in USD, losing 5-7% to forex markup per transaction. Unsubscribely eliminates this with sub-penny on-chain settlement on Algorand.
| Contract | App ID | Explorer |
|---|---|---|
| ServiceRegistry A2A discovery, 5 services seeded | 759205676 | Lora |
| AgentEscrowVaultV2 template Box-storage billing history | 759205677 | Lora |
Autonomous agent wallet: RVHOYLPY4L47JYCYEMCP7EMEC2AZ3HV53YHSL2ZISX6PSO5EQ6H5YVAE5U
Per-user vaults (Standard, AgentV2, Time-Lock, Multi-Sig, Dispute, ASA, Cancellation Insurance) are deployed on demand from the dashboard. MainNet singletons are not yet deployed. The app shows clear guards on mainnet for ServiceRegistry-dependent UIs.
[!IMPORTANT] Security: Smart contracts are compiled with AlgoKit/PuyaPy and tested on TestNet. A formal third-party security audit is planned before any MainNet deployment with real user funds. All contracts are open source for community review.
flowchart TD
subgraph USER_LAYER["User Layer"]
USER([?? User])
WALLET[?? Pera / Defly / Lute]
TG[?? Telegram Bot]
CHROME[?? Chrome Extension]
end
subgraph APP_LAYER["Application Layer � Vercel"]
FRONTEND[React Dashboard<br/>14 pages � Vite � Tailwind]
API[Serverless APIs<br/>gmail-scan � mcp-token � x402]
end
subgraph AGENT_LAYER["Agent Layer � Railway"]
AGENT[? Autonomous Agent<br/>14 skills � 30-min cron]
MCP[MCP Server<br/>12 tools � Bearer auth � JSON-RPC]
end
subgraph BLOCKCHAIN["? Algorand TestNet"]
VAULTS[Escrow Vaults<br/>8 contract types � TEAL v11]
REGISTRY[ServiceRegistry<br/>A2A discovery � BoxMap]
PROOFS[Cancellation Proofs<br/>immutable on-chain notes]
ORACLE[Gora Oracle � ALGO/USD]
DEX[Tinyman DEX � ASA swap]
end
subgraph AI_AGENTS["AI Agents"]
CLAUDE([Claude Desktop])
GPT([ChatGPT])
end
subgraph DATA["Data Layer"]
DB[(Supabase<br/>Postgres + RLS)]
end
USER --> WALLET
USER --> TG
USER --> CHROME
WALLET -->|sign + deploy| VAULTS
WALLET --> FRONTEND
FRONTEND --> API
FRONTEND --> DB
API --> DB
TG -->|commands| API
CHROME -->|detect subs| API
AGENT -->|release � kill| VAULTS
AGENT -->|write| PROOFS
AGENT -->|lookup| REGISTRY
AGENT -->|notify| TG
AGENT --> DB
CLAUDE -->|JSON-RPC 2.0| MCP
GPT -->|JSON-RPC 2.0| MCP
MCP --> AGENT
ORACLE -.->|price feed| FRONTEND
DEX -.->|fund vaults| VAULTS
| Integration | Status | How it's used | Proof |
|---|---|---|---|
| x402 Protocol | ✅ Live | HTTP 402 payment gating on AI Optimizer | x402-demo page |
| Pera SDK | ✅ Live | Wallet connection, transaction signing, vault deployment | Agent wallet txns |
| Tinyman SDK/Router | ✅ Live | Swap any ASA → ALGO to fund vaults (deep-link + analytics API) | Tinyman pool |
| Gora Oracle | ✅ Live | ALGO/USD price feed on vault cards (on-chain contract read + Vestige fallback) | App ID 159512493 |
| NFDomains (DID) | ✅ Live | .algo name resolution on dashboard wallet card | nf.domains |
| Pera Connect | ✅ Live | WalletConnect v2 for Pera/Defly/Lute mobile wallets | Pera SDK |
| ServiceRegistry | 🚀 Deployed | On-chain A2A service discovery (5 services seeded) | App 759205676 |
| AgentEscrowVaultV2 | 🚀 Deployed | Box Storage billing history, autonomous release | App 759205677 |
To get a local copy up and running, follow these steps.
[!TIP] The web app works fully without the agent running. You can browse, add subscriptions, connect a wallet, and create vaults without any Railway or Telegram setup. The agent only adds autonomous vault releases.
pip install algokit
[!TIP] No wallet? The app is fully browsable without connecting Pera. You only need a wallet to deploy escrow vaults or sign transactions.
Clone the repo
git clone https://github.com/devndesigner6/unsubly.git
cd unsubly
Install dependencies
npm install
Set up environment variables
cp .env.example .env
Open .env.example first - every variable is documented with comments and a generation command. At minimum fill in:
VITE_SUPABASE_URL and VITE_SUPABASE_PUBLISHABLE_KEY from Supabase, Settings, APISUPABASE_SERVICE_ROLE_KEY from Supabase, Settings, API (service_role key)CEREBRAS_API_KEY from cloud.cerebras.ai - powers AI Chat page and Telegram botAGENT_WALLET_MNEMONIC and VITE_AGENT_WALLET_ADDRESS - generate with the one-liner in .env.exampleRun the database schema (first time only)
supabase/migrations/FULL_SCHEMA_SETUP.sql and run itStart the dev server
npm run dev
App runs at http://localhost:5000
Mac users: port 5000 conflicts with AirPlay Receiver. Either disable AirPlay (System Settings, AirDrop & Handoff) or change the port in
vite.config.tsandpackage.jsonscripts to5001.
Run the test suite
npx vitest run # frontend unit tests
cd smart_contracts && pytest tests/ # smart contract tests
Production build and serve
npm run build
npm run start
The production agent is a real OpenClaw Gateway workspace, separate from the web app. OpenClaw owns the runtime and cron schedule; the existing Unsubscribely vault code is exposed through the unsubscribely_vault_monitor workspace skill.
cd agents/openclaw
npm install
npm run start
Create agents/openclaw/.env or export these values before starting:
AGENT_WALLET_MNEMONIC=your_25_word_mnemonic
SUPABASE_URL=https://your-project-id.supabase.co
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
TELEGRAM_CHAT_ID=your_telegram_chat_id
ALGO_NETWORK=testnet
SERVICE_REGISTRY_APP_ID_TESTNET=759205676
OPENCLAW_MODEL=google/gemini-2.0-flash
OPENAI_API_KEY=your_model_provider_key
npm run start writes an OpenClaw config, seeds a recurring OpenClaw cron job named Unsubscribely vault monitor, and starts openclaw gateway run. The cron job runs every 30 minutes and tells OpenClaw to execute npm run monitor:vaults from this workspace.
For a direct deterministic check without the Gateway, run:
npm run monitor:vaults
Recompile contracts (pre-compiled artifacts are already included):
algokit compile py smart_contracts/escrow/contract.py
algokit compile py smart_contracts/agent_escrow/contract.py
algokit compile py smart_contracts/agent_escrow_v2/contract.py
algokit compile py smart_contracts/service_registry/contract.py
algokit compile py smart_contracts/time_locked/contract.py
algokit compile py smart_contracts/multi_sig/contract.py
algokit compile py smart_contracts/dispute/contract.py
algokit compile py smart_contracts/asa_escrow/contract.py
Deploy singleton contracts (requires a funded testnet account):
TESTNET_MNEMONIC="..." node scripts/deploy.js
| Problem | Fix |
|---|---|
| Wallet not connecting | Make sure Pera Wallet is set to Testnet (Settings, Developer Settings, Node Configuration) |
| "Recipient has not opted in" error | The recipient address must have received at least 1 ALGO before a vault can pay them. Send a small amount first from the faucet |
| Agent wallet balance too low | Fund the agent wallet at bank.testnet.algorand.network. It needs ALGO to pay transaction fees |
| AI Chat returns error | Check that CEREBRAS_API_KEY is set in your .env and valid at cloud.cerebras.ai |
| Supabase RLS errors | Make sure you ran FULL_SCHEMA_SETUP.sql in the SQL Editor. Missing tables cause silent 403s |
| x402 payment rejected | Ensure X402_PAY_TO_ADDRESS matches VITE_AGENT_WALLET_ADDRESS or leave both blank to disable x402 in dev |
1. Lock - Add a subscription and deploy an escrow vault from the dashboard. Choose from 7 vault types: Standard, AgentV2, Time-Lock, Multi-Sig, Dispute, ASA, or Cancellation Insurance. Your ALGO sits in a contract you own.
2. Release - OpenClaw checks every 30 minutes. When a billing date hits, it verifies the recipient against the on-chain ServiceRegistry, checks your spending guardrails, and calls release() on the contract. Funds go directly on-chain. You get a Telegram notification with the transaction ID.
3. Prove - Mint an ARC-3 NFT receipt after each release. AgentEscrowVaultV2 also writes an immutable BillingRecord into Box Storage per cycle, giving you a full on-chain billing history.
Phase 1 current - Free for users. Revenue from x402 micro-payments: external AI agents pay 0.001 ALGO per API call to access subscription data. No API keys, no subscriptions needed. Payment IS the credential.
Phase 2 post-audit - Mainnet launch. Premium MCP access ($5/mo for write+admin scope). ServiceRegistry listing fee (one-time ALGO payment for service providers to publish).
Phase 3 - B2B vault infrastructure. Companies use escrow contracts for employee subscription procurement. Agent handles vendor payments autonomously.
Target users: Indian developers and freelancers (25-35) managing 8-12 SaaS tools (Notion, GitHub, Cursor, Figma) totaling $50-150/month in USD, losing 5-7% to forex fees per transaction.
Why Algorand: 3.3s finality � sub-penny fees � ARC-4 ABI for clean contract interfaces � Box Storage for on-chain history � instant settlement without L2 complexity.
Contributions welcome. Fork ? branch ? commit ? PR. Run npm test before submitting.
Code style: TypeScript strict, Tailwind CSS, ESLint defaults.
Apache 2.0 - see LICENSE.
Hemanth Peddada - @hemanttbuilds � [email protected] � hemanthme.in
Run in your terminal:
claude mcp add unsubly -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.