Skip to content

Commit 4b585da

Browse files
[Smart Accounts Kit] Add Gator CLI Skill (#2719)
* add gator-cli SKILL * add alpha version warning * apply reviewer suggestion Co-authored-by: Byron Gravenorst <50852695+bgravenorst@users.noreply.github.com> --------- Co-authored-by: Byron Gravenorst <50852695+bgravenorst@users.noreply.github.com>
1 parent 5795d3d commit 4b585da

1 file changed

Lines changed: 58 additions & 8 deletions

File tree

smart-accounts-kit/get-started/use-with-openclaw.md

Lines changed: 58 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,63 @@ import TabItem from "@theme/TabItem";
99

1010
# Use the Smart Accounts Kit with OpenClaw
1111

12-
Use the MetaMask Smart Accounts Kit [OpenClaw skill](https://docs.openclaw.ai/tools/skills) to interact with the Smart Accounts Kit using natural language prompts.
12+
Use the MetaMask Smart Accounts Kit [OpenClaw skills](https://docs.openclaw.ai/tools/skills) to interact with the Smart Accounts Kit using natural language prompts.
1313

14-
[OpenClaw](https://openclaw.ai/) is an open-source platform for AI agents that enables you to build, deploy, and
15-
manage AI assistants with access to various tools and skills. The skill enables you to create smart accounts,
16-
delegations, and request advanced permissions through an AI assistant.
14+
[OpenClaw](https://openclaw.ai/) is an open-source platform for AI agents that enables you to build, deploy, and
15+
manage AI assistants with access to various tools and skills. The Smart Accounts Kit provides the below two skills.
1716

18-
## Install the skill
17+
## Gator CLI skill
18+
19+
This skill enables your agent to grant, redeem, inspect and revoke ERC-7710 delegations using the [@metamask/gator-cli](https://www.npmjs.com/package/@metamask/gator-cli) package.
20+
21+
:::warning Alpha version
22+
23+
This CLI is in alpha version, and stores agent's private key in a local
24+
JSON file (`~/.gator-cli/`). Please proceed with caution, and do not use
25+
it with accounts holding significant funds.
26+
27+
:::
28+
29+
### Install
30+
31+
<Tabs>
32+
<TabItem value="clawhub-ap" label="ClawHub">
33+
34+
```bash
35+
clawhub install gator-cli
36+
```
37+
38+
</TabItem>
39+
<TabItem value="prompt-ap" label="OpenClaw prompt">
40+
41+
```txt
42+
Install the skill from https://github.com/MetaMask/openclaw-skills/blob/main/metamask/gator-cli/SKILL.md
43+
```
44+
45+
</TabItem>
46+
</Tabs>
47+
48+
### Reference
49+
50+
The skill provides access to the following commands:
51+
52+
| Command | Description |
53+
|-----------|---------------------------------------------------|
54+
| `init` | Generate a private key and save config. |
55+
| `create` | Upgrade an EOA to an EIP-7702 smart account. |
56+
| `show` | Display the EOA address. |
57+
| `status` | Check config and on chain account status. |
58+
| `balance` | Show native or ERC-20 balance. |
59+
| `grant` | Create, sign, and store a delegation. |
60+
| `redeem` | Redeem a delegation using an action type. |
61+
| `revoke` | Revoke a delegation on chain. |
62+
| `inspect` | View delegations for your account. |
63+
64+
## Smart Accounts Kit skill
65+
66+
This skill helps your agent learn about the Smart Accounts Kit and its capabilities, and integrate them into your applications.
67+
68+
### Install
1969

2070
<Tabs>
2171
<TabItem value="clawhub" label="ClawHub">
@@ -42,12 +92,12 @@ Install the skill from https://github.com/smartgator/smart-accounts-kit-skills.g
4292
</TabItem>
4393
</Tabs>
4494

45-
## Skill reference
95+
### Reference
4696

47-
The skill helps your agent learn about the Smart Accounts Kit and its capabilities, and integrate them into your applications. The skill provides access to the following capabilities:
97+
The skill provides access to the following capabilities:
4898

4999
| Capability | Description |
50100
|------------|-------------|
51-
| [`Smart accounts`](https://github.com/smartgator/smart-accounts-kit-skills/blob/main/references/smart-accounts.md) | Helps you integrate MetaMask smart accounts to support batch transactions, multi-sig signatures, and gas sponsorship.|
101+
| [`Smart accounts`](https://github.com/smartgator/smart-accounts-kit-skills/blob/main/references/smart-accounts.md) | Helps you integrate MetaMask smart accounts to support batch transactions, multi-sig signatures, and gas sponsorship. |
52102
| [`Delegation`](https://github.com/smartgator/smart-accounts-kit-skills/blob/main/references/delegations.md) | Helps you integrate delegations with scopes and caveats. |
53103
| [`Advanced Permissions`](https://github.com/smartgator/smart-accounts-kit-skills/blob/main/references/advanced-permissions.md) | Helps you integrate Advanced Permissions. |

0 commit comments

Comments
 (0)