cornerstone-autonomous-agent 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -6
- package/adapters/openclaw/SKILL.md +7 -5
- package/package.json +2 -1
- package/skills/README.md +9 -0
- package/skills/autonomous-agent/SKILL.md +50 -0
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ git clone https://github.com/FinTechTonic/autonomous-agent.git && cd autonomous-
|
|
|
23
23
|
npm install
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
**OpenClaw / Moltbot:**
|
|
26
|
+
**OpenClaw / MoltBook / Moltbot:** Load the skill from `skills/autonomous-agent/` or [adapters/openclaw/SKILL.md](adapters/openclaw/SKILL.md). See [MoltBook / OpenClaw](#moltbook--openclaw) below. Then point `MCP_SERVER_URL` at your MCP server.
|
|
27
27
|
|
|
28
28
|
## Quick Start
|
|
29
29
|
|
|
@@ -114,6 +114,9 @@ autonomous/
|
|
|
114
114
|
│ ├── setup.js # EVM wallet generation
|
|
115
115
|
│ ├── setup-aptos.js # Aptos wallet generation
|
|
116
116
|
│ └── show-agent-addresses.js
|
|
117
|
+
├── skills/ # MoltBook/OpenClaw (AgentSkills layout)
|
|
118
|
+
│ └── autonomous-agent/
|
|
119
|
+
│ └── SKILL.md
|
|
117
120
|
├── adapters/ # OpenClaw, OpenAI, Anthropic, local
|
|
118
121
|
├── .env.example
|
|
119
122
|
└── package.json
|
|
@@ -138,11 +141,42 @@ autonomous/
|
|
|
138
141
|
## Capability + adapters
|
|
139
142
|
|
|
140
143
|
- **Capability:** Core (`src/`) — MCP client, x402 flow, local tools. No OpenAI/Claw/Anthropic logic in code.
|
|
141
|
-
- **Adapters:**
|
|
142
|
-
- [adapters/openclaw/SKILL.md](adapters/openclaw/SKILL.md)
|
|
143
|
-
- [adapters/openai/openapi.yaml](adapters/openai/openapi.yaml) — Custom GPTs / Assistants
|
|
144
|
-
- [adapters/anthropic/tools.json](adapters/anthropic/tools.json) — Claude tools
|
|
145
|
-
- [adapters/local/README.md](adapters/local/README.md) — LM Studio, AutoGen, CrewAI
|
|
144
|
+
- **Adapters:** How each platform uses the capability:
|
|
145
|
+
- **MoltBook / OpenClaw / Moltbot:** `skills/autonomous-agent/SKILL.md` (AgentSkills-compatible; [see below](#moltbook--openclaw)) or [adapters/openclaw/SKILL.md](adapters/openclaw/SKILL.md)
|
|
146
|
+
- **OpenAI:** [adapters/openai/openapi.yaml](adapters/openai/openapi.yaml) — Custom GPTs / Assistants
|
|
147
|
+
- **Claude / Anthropic:** [adapters/anthropic/tools.json](adapters/anthropic/tools.json) — Claude tools
|
|
148
|
+
- **Local / OSS:** [adapters/local/README.md](adapters/local/README.md) — LM Studio, AutoGen, CrewAI
|
|
149
|
+
|
|
150
|
+
## MoltBook / OpenClaw
|
|
151
|
+
|
|
152
|
+
This repo is optimized for **easy skill loading** in MoltBook and OpenClaw (Claude, Anthropic, OpenAI, and other providers work via the same agent; the skill tells the assistant how to run it).
|
|
153
|
+
|
|
154
|
+
- **Skill layout:** The skill lives in `skills/autonomous-agent/SKILL.md` (AgentSkills-compatible, single-line frontmatter, `metadata.openclaw` gating). OpenClaw/MoltBook loads skills from `skills/` subfolders.
|
|
155
|
+
- **Load options:**
|
|
156
|
+
1. **extraDirs:** Add this repo path to `~/.openclaw/openclaw.json` under `skills.load.extraDirs`. OpenClaw will scan `skills/` and load `autonomous-agent`.
|
|
157
|
+
2. **Workspace:** Clone the repo and use it as your OpenClaw workspace; workspace skills are loaded from `<workspace>/skills`.
|
|
158
|
+
3. **Managed skills:** Copy `skills/autonomous-agent` to `~/.openclaw/skills/` for all agents on the machine.
|
|
159
|
+
4. **ClawHub:** When published, install with `clawhub install autonomous-agent` (installs into `./skills` by default).
|
|
160
|
+
- **Config:** In `skills.entries["autonomous-agent"]` you can set `enabled`, `env`, or `apiKey` (maps to `primaryEnv`). Ensure `MCP_SERVER_URL`, x402 facilitator URLs, and LLM/env are set for the agent run.
|
|
161
|
+
- **Run:** From the **repository root** (parent of `skills/`), run `node src/run-agent.js "your message"`.
|
|
162
|
+
|
|
163
|
+
Example `~/.openclaw/openclaw.json` to load this repo’s skills:
|
|
164
|
+
|
|
165
|
+
```json
|
|
166
|
+
{
|
|
167
|
+
"skills": {
|
|
168
|
+
"load": {
|
|
169
|
+
"extraDirs": ["/path/to/autonomous-agent"]
|
|
170
|
+
},
|
|
171
|
+
"entries": {
|
|
172
|
+
"autonomous-agent": {
|
|
173
|
+
"enabled": true,
|
|
174
|
+
"env": { "MCP_SERVER_URL": "https://borrower.replit.app" }
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
```
|
|
146
180
|
|
|
147
181
|
## Deployment order
|
|
148
182
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: autonomous-agent
|
|
3
3
|
description: CreditNexus x402 agent. Use when the user wants stock predictions, backtests, or to open a bank account. Payment-protected MCP tools (run_prediction, run_backtest, open_bank_account) with x402 flow (Aptos + Base). Agent handles 402 → pay → retry autonomously.
|
|
4
|
-
metadata: {"clawdbot":{"emoji":"📈","homepage":"https://github.com/FinTechTonic/autonomous-agent","requires":{"bins":["node","npm"]}}}
|
|
4
|
+
metadata: {"openclaw":{"emoji":"📈","homepage":"https://github.com/FinTechTonic/autonomous-agent","requires":{"bins":["node","npm"]},"primaryEnv":"MCP_SERVER_URL","skillKey":"autonomous-agent"},"clawdbot":{"emoji":"📈","homepage":"https://github.com/FinTechTonic/autonomous-agent","requires":{"bins":["node","npm"]}}}
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# CreditNexus x402 Agent Skill
|
|
@@ -10,15 +10,15 @@ Autonomous agent that calls x402-protected MCP tools: stock prediction, backtest
|
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
|
-
Clone or copy the repo
|
|
13
|
+
Clone or copy the repo. When loaded from OpenClaw/MoltBook, the skill folder is `{baseDir}`; run commands from the **repo root** (parent of `adapters/openclaw` or of `skills/autonomous-agent`).
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
# From repository
|
|
16
|
+
# From repository root
|
|
17
17
|
git clone https://github.com/FinTechTonic/autonomous-agent.git && cd autonomous-agent
|
|
18
18
|
npm install
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Set `MCP_SERVER_URL` to
|
|
21
|
+
Set `MCP_SERVER_URL` to `https://borrower.replit.app`. Copy `.env.example` to `.env` and set:
|
|
22
22
|
|
|
23
23
|
- `MCP_SERVER_URL` – MCP server base URL
|
|
24
24
|
- `X402_FACILITATOR_URL` – x402 facilitator (verify/settle)
|
|
@@ -27,6 +27,8 @@ Set `MCP_SERVER_URL` to your x402 MCP server (e.g. `https://borrower.replit.app`
|
|
|
27
27
|
|
|
28
28
|
## Run the agent
|
|
29
29
|
|
|
30
|
+
From the **repository root** (where `package.json` and `src/` live):
|
|
31
|
+
|
|
30
32
|
```bash
|
|
31
33
|
node src/run-agent.js "Run a 30-day prediction for AAPL"
|
|
32
34
|
# Or interactive
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cornerstone-autonomous-agent",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "CornerStone Agentic Score: autonomous agent that uses an x402-enabled MCP server to predict tickers, backtest trading strategies, and open bank accounts. Handles 402 Payment Required (pay via Aptos/Ethereum facilitator and retry). LangChain.js ReAct agent with Hugging Face inference (OpenAI-compatible endpoint).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/run-agent.js",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"src",
|
|
12
12
|
"adapters",
|
|
13
|
+
"skills",
|
|
13
14
|
".env.example",
|
|
14
15
|
"README.md",
|
|
15
16
|
"SKILL-clawdhub.md",
|
package/skills/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Skills (MoltBook / OpenClaw)
|
|
2
|
+
|
|
3
|
+
This folder follows the **AgentSkills** layout expected by MoltBook and OpenClaw. Each subfolder is one skill with a `SKILL.md` (YAML frontmatter + instructions).
|
|
4
|
+
|
|
5
|
+
| Skill | Description |
|
|
6
|
+
|-------|-------------|
|
|
7
|
+
| [autonomous-agent](autonomous-agent/SKILL.md) | x402 MCP agent: stock prediction, backtest, open bank account (Aptos + Base). |
|
|
8
|
+
|
|
9
|
+
**Loading:** Add this repo path to `skills.load.extraDirs` in `~/.openclaw/openclaw.json` (MoltBook/OpenClaw will load `autonomous-agent` from `skills/autonomous-agent/`), or copy `autonomous-agent` into `~/.openclaw/skills/`, or use the repo as your OpenClaw workspace. See the main [README](../README.md#moltbook--openclaw).
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: autonomous-agent
|
|
3
|
+
description: CreditNexus x402 agent. Use when the user wants stock predictions, backtests, or to open a bank account. Payment-protected MCP tools (run_prediction, run_backtest, open_bank_account) with x402 flow (Aptos + Base). Agent handles 402 → pay → retry autonomously.
|
|
4
|
+
metadata: {"openclaw":{"emoji":"📈","homepage":"https://github.com/FinTechTonic/autonomous-agent","requires":{"bins":["node","npm"]},"primaryEnv":"MCP_SERVER_URL","skillKey":"autonomous-agent"},"clawdbot":{"emoji":"📈","homepage":"https://github.com/FinTechTonic/autonomous-agent","requires":{"bins":["node","npm"]}}}
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# CreditNexus x402 Agent Skill
|
|
8
|
+
|
|
9
|
+
Autonomous agent that calls x402-protected MCP tools: stock prediction, backtest, open bank account. Handles payment flow (402 → pay → retry) with Aptos (prediction/backtest) and Base (banking).
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
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:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# From repository root (parent of {baseDir} when using this repo)
|
|
17
|
+
git clone https://github.com/FinTechTonic/autonomous-agent.git && cd autonomous-agent
|
|
18
|
+
npm install
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Set `MCP_SERVER_URL` to `https://borrower.replit.app`. Copy `.env.example` to `.env` and set:
|
|
22
|
+
|
|
23
|
+
- `MCP_SERVER_URL` – MCP server base URL
|
|
24
|
+
- `X402_FACILITATOR_URL` – x402 facilitator (verify/settle)
|
|
25
|
+
- `LLM_BASE_URL`, `HUGGINGFACE_API_KEY` or `HF_TOKEN`, `LLM_MODEL` – for inference
|
|
26
|
+
- `APTOS_WALLET_PATH`, `EVM_WALLET_PATH` (or `EVM_PRIVATE_KEY`) – for payments
|
|
27
|
+
|
|
28
|
+
## Run the agent
|
|
29
|
+
|
|
30
|
+
From the **repository root** (where `package.json` and `src/` live):
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
node src/run-agent.js "Run a 30-day prediction for AAPL"
|
|
34
|
+
# Or interactive
|
|
35
|
+
node src/run-agent.js
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**x402 flow:** Agent calls tool → server returns 402 with payment requirements → agent pays via facilitator (verify → settle) → retries with PAYMENT-SIGNATURE → receives result.
|
|
39
|
+
|
|
40
|
+
## Tools
|
|
41
|
+
|
|
42
|
+
| Tool | Description | Cost |
|
|
43
|
+
|------|-------------|------|
|
|
44
|
+
| `run_prediction` | Stock prediction (symbol, horizon) | ~6¢ (Aptos) |
|
|
45
|
+
| `run_backtest` | Backtest trading strategy | ~6¢ (Aptos) |
|
|
46
|
+
| `open_bank_account` | CornerStone bank link / open bank account | ~$3.65 (Base) |
|
|
47
|
+
| `get_agent_reputation_score` / `get_borrower_score` | CornerStone scores | ~1¢ |
|
|
48
|
+
| `get_agent_reputation_score_by_email` / `get_borrower_score_by_email` | CornerStone scores by email (extra fee) | base + extra |
|
|
49
|
+
|
|
50
|
+
Whitelist your agent at https://borrower.replit.app/flow.html so the server allows your wallet.
|