autonomous-agent
CreditNexus x402 agent. Use when the user wants stock predictions, backtests, bank linking, or agent/borrower scores. Payment-protected MCP tools (run_prediction, run_backtest, link_bank_account, get_agent_reputation_score, get_borrower_score, and by-email variants) with x402 flow (Aptos + Base). Agent handles 402 → pay → retry autonomously. Supports wallet attestation (signing) for onboarding.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- autonomous-agent
- metadata
- { "clawdbot": { "emoji": "?", "homepage": "https://github.com/FinTechTonic/autonomous-agent", "requires": { "bins": [ "node", "npm" ] } }, "openclaw": { "emoji": "?", "homepage": "https://github.com/FinTechTonic/autonomous-agent", "requires": { "bins": [ "node", "npm" ] }, "skillKey": "autonomous-agent", "primaryEnv": "MCP_SERVER_URL" } }
- description
- CreditNexus x402 agent. Use when the user wants stock predictions, backtests, bank linking, or agent/borrower scores. Payment-protected MCP tools (run_prediction, run_backtest, link_bank_account, get_agent_reputation_score, get_borrower_score, and by-email variants) with x402 flow (Aptos + Base). Agent handles 402 → pay → retry autonomously. Supports wallet attestation (signing) for onboarding.
03 SKILL.md 正文
CreditNexus x402 Agent Skill
Autonomous agent that calls x402-protected MCP tools: stock prediction, backtest, bank linking, and agent/borrower scores. Handles payment flow (402 → pay → retry with payment_payload) with Aptos (prediction/backtest) and Base (banking). Supports wallet attestation (signing) for onboarding (POST /attest/aptos, /attest/evm).
Installation
When this skill is loaded from the autonomous-agent repo, the repo root is the parent of the skill folder {baseDir}. Clone and install from the repo root:
# From repository root (parent of {baseDir} when using this repo)
git clone https://github.com/FinTechTonic/autonomous-agent.git && cd autonomous-agent
npm install
Set MCP_SERVER_URL to your MCP server (e.g. https://borrower.replit.app). Copy .env.example to .env and set:
MCP_SERVER_URL– MCP server base URL (MCP protocol at/mcp)X402_FACILITATOR_URL– x402 facilitator (verify/settle)LLM_BASE_URL,HUGGINGFACE_API_KEYorHF_TOKEN,LLM_MODEL– for inferenceAPTOS_WALLET_PATH,EVM_WALLET_PATH(orEVM_PRIVATE_KEY) – for payments
Run the agent
From the repository root (where package.json and src/ live):
npx cornerstone-agent "Run a 30-day prediction for AAPL"
# Or interactive
npx cornerstone-agent
# Or from repo: npm run agent -- "..." or node src/run-agent.js "..."
x402 flow: Agent calls tool without payment_payload → server returns 402 + paymentRequirements → agent signs, facilitator verify/settle → agent retries with payment_payload → receives result + paymentReceipt.
Wallet attestation (signing)
To prove wallet ownership during onboarding, run from repo root:
- Aptos:
npm run attest:aptosornpx cornerstone-agent-attest-aptos— output to POST /attest/aptos - EVM:
npm run attest:evmornpx cornerstone-agent-attest-evm— output to POST /attest/evm
MCP Tools
All tools are on the MCP server at /mcp. See repo MCP_INTEGRATION_REFERENCE.md for resources and pricing.
| Tool | Resource | Description | Cost |
|---|---|---|---|
run_prediction |
/mcp/prediction/{symbol} |
Stock prediction (symbol, horizon) | ~6¢ |
run_backtest |
/mcp/backtest/{symbol} |
Backtest (symbol, start/end, strategy) | ~6¢ |
link_bank_account |
/mcp/banking/link |
CornerStone/Plaid bank link token | ~5¢ (config) |
get_agent_reputation_score |
/mcp/scores/reputation |
Agent reputation (100 allowlisted); x402 or lender credits | ~6¢ |
get_borrower_score |
/mcp/scores/borrower |
Borrower score (100 or 100+Plaid); x402 or lender credits | ~6¢ |
get_agent_reputation_score_by_email |
/mcp/scores/reputation-by-email |
Reputation by email; requires SCORE_BY_EMAIL_ENABLED | base + extra |
get_borrower_score_by_email |
/mcp/scores/borrower-by-email |
Borrower score by email; requires SCORE_BY_EMAIL_ENABLED | base + extra |
Whitelist your agent at the onboarding flow (e.g. MCP_SERVER_URL/flow.html) so the server allows your wallet.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.