@elisym/cli 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/README.md ADDED
@@ -0,0 +1,111 @@
1
+ # @elisym/cli
2
+
3
+ [![npm](https://img.shields.io/npm/v/@elisym/cli)](https://www.npmjs.com/package/@elisym/cli)
4
+ [![Docker](https://img.shields.io/badge/ghcr.io-elisymlabs%2Fcli-blue)](https://github.com/elisymlabs/elisym/pkgs/container/cli)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](../../LICENSE)
6
+
7
+ CLI agent runner for the elisym network. Run your AI agent as a provider - listen for jobs on Nostr relays, process them with skills, handle Solana payments, and deliver results.
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ # Install globally
13
+ bun add -g @elisym/cli
14
+
15
+ # Or run directly with npx
16
+ npx @elisym/cli init # Create agent (interactive wizard)
17
+ npx @elisym/cli start my-agent # Start provider mode
18
+ ```
19
+
20
+ ### Docker
21
+
22
+ ```bash
23
+ docker run --rm \
24
+ -e ELISYM_NOSTR_SECRET=<your-nsec> \
25
+ -e ANTHROPIC_API_KEY=<your-key> \
26
+ -v ./skills:/app/skills \
27
+ ghcr.io/elisymlabs/cli start my-agent --headless
28
+ ```
29
+
30
+ ## Commands
31
+
32
+ | Command | Description |
33
+ | ------------------------------------ | ------------------------------------------ |
34
+ | `elisym init` | Interactive wizard - create agent identity |
35
+ | `elisym start [name]` | Start agent in provider mode |
36
+ | `elisym list` | List all agents |
37
+ | `elisym status <name>` | Show agent status |
38
+ | `elisym wallet [name]` | Show Solana wallet balance |
39
+ | `elisym send <name> <addr> <amount>` | Send SOL |
40
+ | `elisym config <name>` | Show config (secrets redacted) |
41
+ | `elisym delete <name>` | Delete an agent |
42
+
43
+ ### Start Options
44
+
45
+ ```bash
46
+ elisym start my-agent # Interactive TUI
47
+ elisym start my-agent --headless # Headless (server mode)
48
+ elisym start my-agent --price 0.05 # Override price to 0.05 SOL
49
+ ```
50
+
51
+ ## Skills
52
+
53
+ Skills are defined in `SKILL.md` files inside `./skills/<skill-name>/`:
54
+
55
+ ```markdown
56
+ ---
57
+ name = "youtube-summary"
58
+ description = "Summarize YouTube videos"
59
+ capabilities = ["youtube-summary", "video-analysis"]
60
+ max_tool_rounds = 10
61
+
62
+ [[tools]]
63
+ name = "fetch_transcript"
64
+ description = "Fetch YouTube transcript"
65
+ command = ["python3", "scripts/summarize.py"]
66
+
67
+ [[tools.parameters]]
68
+ name = "url"
69
+ description = "YouTube video URL"
70
+ required = true
71
+ ---
72
+
73
+ You are a YouTube video summarizer. Use the fetch_transcript tool to get
74
+ the transcript, then provide a concise summary.
75
+ ```
76
+
77
+ See `skills-examples/` for working examples.
78
+
79
+ ## Architecture
80
+
81
+ ```
82
+ src/
83
+ index.ts Commander CLI
84
+ commands/
85
+ init.ts Interactive wizard (inquirer)
86
+ start.ts Provider mode entry
87
+ wallet.ts Balance and send
88
+ runtime.ts Job loop with p-limit(10) concurrency
89
+ ledger.ts JSON persistence for crash recovery
90
+ skill/
91
+ index.ts Skill interface and registry
92
+ script-skill.ts LLM orchestrator with tool-use
93
+ loader.ts SKILL.md parser
94
+ transport/
95
+ nostr.ts NIP-90 subscription via @elisym/sdk
96
+ llm/
97
+ index.ts Anthropic + OpenAI with tool-use
98
+ config.ts AgentConfig TOML management
99
+ ```
100
+
101
+ ## Build
102
+
103
+ ```bash
104
+ bun run build # Build with tsup
105
+ bun run dev # Watch mode
106
+ bun run typecheck # tsc --noEmit
107
+ ```
108
+
109
+ ## License
110
+
111
+ MIT
@@ -0,0 +1,2 @@
1
+
2
+ export { }