@outis-wallet/agent-cli 0.0.0-stage → 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 AboveThought LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,26 @@
1
- # Temporary Holding Version
1
+ # @outis-wallet/agent-cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The Outis CLI for AI agents: a bot (Claude Code, OpenClaw, Hermes, Codex, anything that runs commands)
4
+ gets a Starknet account of its own, funded from the user's Outis wallet, and spends from it within
5
+ limits the user sets and the account enforces on-chain. The bot never holds a key that can do more
6
+ than its session allows.
7
+
8
+ ```bash
9
+ npm i -g @outis-wallet/agent-cli
10
+ outis connect --name "Trader" --ask send,swap --json
11
+ ```
12
+
13
+ `connect` prints a link and a 16-digit code. The user opens the link in the Outis wallet (the Chrome
14
+ extension), checks the code, chooses what the bot may do and its limits, and approves. Then:
15
+
16
+ ```bash
17
+ outis connect --wait --json # picks the session up once it is registered
18
+ outis budget --json # what is left to spend
19
+ outis send 1 STRK 0x… --json # a transfer within the budget
20
+ ```
21
+
22
+ `outis --help` lists every command. [SKILL.md](SKILL.md) teaches an agent to use it.
23
+
24
+ Sepolia only for now. Agent accounts are new and unaudited: keep what you put in them small.
25
+
26
+ Requires Node.js 22 or later.
package/SKILL.md ADDED
@@ -0,0 +1,94 @@
1
+ ---
2
+ name: outis
3
+ description: Act on Starknet from an Outis agent account, within a budget the user approved. Use when the user wants you to send tokens, call contracts, or sign messages (e.g. to play Surround) with their Outis wallet, or asks what you may spend.
4
+ ---
5
+
6
+ # Outis agent account
7
+
8
+ You have a wallet of your own: a small Outis agent account the user funds, which you drive through a
9
+ session they approved in their Outis keychain. The session decides what you can call, how much you can
10
+ spend per token and in fees, which messages you can sign, and until when. The limits are enforced
11
+ on-chain: you can't go over them, and you never hold a key that can.
12
+
13
+ Always pass `--json` and read the result: `{"ok": true, ...}`, or
14
+ `{"ok": false, "error": {"code", "message", "next"}}`. `next` says what to do.
15
+
16
+ ## First: get a session
17
+
18
+ ```bash
19
+ outis status --json
20
+ ```
21
+
22
+ If there's no session (`no_session`) or it expired (`session_expired`):
23
+
24
+ ```bash
25
+ outis connect --name "<your name>" --ask send,sign --json
26
+ ```
27
+
28
+ `--ask` names actions the keychain knows: `send`, `swap`, `sign`. For anything else, ask by name:
29
+
30
+ ```bash
31
+ outis connect --name "<your name>" \
32
+ --method 0x04a1…9c2f:play:"to play Foo" \
33
+ --message ./move.json --json
34
+ ```
35
+
36
+ `--method <contract>:<entrypoint>[:<why>]` asks for one contract method (never an approval).
37
+ `--message <file>` asks to sign messages of the same domain and type as the example typed data in the
38
+ file (SNIP-12 revision 1, for this network's chain). Give a method a reason: the user sees it, and decides.
39
+
40
+ Show the user the `link` and the `fingerprint`. The link opens in their Outis wallet (the extension
41
+ where they have it): they check that it shows the same fingerprint, choose what you may do and your
42
+ budget, and approve. Then:
43
+
44
+ ```bash
45
+ outis connect --wait --json
46
+ ```
47
+
48
+ It waits up to 10 minutes for the approval to land on-chain.
49
+
50
+ ## What you may do
51
+
52
+ ```bash
53
+ outis budget --json # spending left per token and for fees, when each resets, the expiry
54
+ outis balance --json # what the account holds
55
+ ```
56
+
57
+ Check `budget` before a plan that spends. Your own transactions stop an hour before the session
58
+ expires (`transactionsUntil`).
59
+
60
+ ## Acting
61
+
62
+ ```bash
63
+ outis send <amount> <token> <recipient> --json # e.g. send 1.5 STRK 0x123…
64
+ outis execute <contract> <entrypoint> [calldata...] --json # felts; u256:N for a u256
65
+ outis call <contract> <entrypoint> [calldata...] --json # read only
66
+ outis tx <hash> --wait --json
67
+ ```
68
+
69
+ Tokens are `STRK`, `ETH`, `USDC`… or an address. Amounts are in whole tokens (`1.5`), not base units.
70
+
71
+ ## Signing messages
72
+
73
+ ```bash
74
+ outis sign <typed-data.json> --json # or - to read it from stdin
75
+ ```
76
+
77
+ Only SNIP-12 revision 1 messages of the kinds the session allows. The signature is only valid while the
78
+ session is, so the CLI refuses when less than a day is left (`--min-life <seconds>` to change that;
79
+ `--min-life 0` only for a message checked right away).
80
+
81
+ ## Errors
82
+
83
+ | code | meaning | what to do |
84
+ |------|---------|------------|
85
+ | `no_session` | not connected yet | `outis connect` |
86
+ | `session_expired` | expired, revoked, or less than an hour left for transactions | `outis connect` for a new one |
87
+ | `method_not_allowed` | the session doesn't allow that call or message | ask the user for a session that does |
88
+ | `over_budget` | over a spending limit or the fee budget | `outis budget`; wait for `resetsAt` or ask the user |
89
+ | `out_of_gas` | not enough STRK for the fee | ask the user to top the account up |
90
+ | `reverted` | the contract refused | read `message` |
91
+
92
+ Never ask the user for a private key or recovery phrase: the CLI never needs one.
93
+
94
+ `--network devnet` (or `OUTIS_NETWORK`) for a local devnet; `OUTIS_RPC_URL` to use another node.