nemovideo-tools 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 +21 -0
- package/README.md +120 -0
- package/SKILL.md +150 -0
- package/dist/index.js +1323 -0
- package/dist/index.js.map +1 -0
- package/package.json +63 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 NemoVideo
|
|
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, LIABILITY, 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
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# NemoVideo Tools
|
|
2
|
+
|
|
3
|
+
AI video creation and editing from the command line. Describe what you want, AI creates it.
|
|
4
|
+
|
|
5
|
+
> Create videos by chatting — no GUI needed. Works with Claude Code, Codex, OpenClaw, Cursor, and any AI IDE.
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g nemovideo-tools
|
|
11
|
+
nemovideo setup
|
|
12
|
+
nemovideo create --prompt "5-second coffee product showcase" --export
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## What It Does
|
|
16
|
+
|
|
17
|
+
- **Text to Video** — describe a scene, get a video
|
|
18
|
+
- **AI Editing** — add BGM, titles, transitions by chatting
|
|
19
|
+
- **Export** — render and download MP4
|
|
20
|
+
- **Upload** — bring your own footage
|
|
21
|
+
|
|
22
|
+
## Prerequisites
|
|
23
|
+
|
|
24
|
+
- Node.js >= 18
|
|
25
|
+
- NemoVideo account with API key ([nemovideo.com](https://nemovideo.com))
|
|
26
|
+
|
|
27
|
+
## Install
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# Global install
|
|
31
|
+
npm install -g nemovideo-tools
|
|
32
|
+
|
|
33
|
+
# Or run without install
|
|
34
|
+
npx nemovideo-tools create --prompt "..."
|
|
35
|
+
|
|
36
|
+
# Claude Code plugin install
|
|
37
|
+
claude install-plugin nemovideo/nemovideo-tools
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Setup
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
nemovideo setup
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
This guides you through:
|
|
47
|
+
1. Register at nemovideo.com
|
|
48
|
+
2. Generate API key at nemovideo.com workspace → API Keys
|
|
49
|
+
3. Paste key into CLI
|
|
50
|
+
|
|
51
|
+
## Commands
|
|
52
|
+
|
|
53
|
+
| Command | Description |
|
|
54
|
+
|---------|-------------|
|
|
55
|
+
| `nemovideo create -p "..."` | Create a new video |
|
|
56
|
+
| `nemovideo chat <id> -p "..."` | Edit an existing project |
|
|
57
|
+
| `nemovideo export <id>` | Render and download |
|
|
58
|
+
| `nemovideo upload <file> --project <id>` | Upload assets |
|
|
59
|
+
| `nemovideo open <id>` | Open in browser |
|
|
60
|
+
| `nemovideo project list` | List projects |
|
|
61
|
+
| `nemovideo project get <id>` | Project details |
|
|
62
|
+
| `nemovideo project download <id>` | Download video |
|
|
63
|
+
| `nemovideo credits` | Check balance |
|
|
64
|
+
| `nemovideo setup` | Configure API key |
|
|
65
|
+
| `nemovideo config set/get` | Manage settings |
|
|
66
|
+
|
|
67
|
+
## Examples
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# Create and auto-export
|
|
71
|
+
nemovideo create -p "10s tech product demo, modern style" -d 10 --export
|
|
72
|
+
|
|
73
|
+
# Create, edit, then export
|
|
74
|
+
nemovideo create -p "coffee product showcase"
|
|
75
|
+
nemovideo chat proj_abc -p "add lo-fi background music"
|
|
76
|
+
nemovideo chat proj_abc -p "add title 'Morning Brew' at the beginning"
|
|
77
|
+
nemovideo export proj_abc -o ./coffee-video.mp4
|
|
78
|
+
|
|
79
|
+
# Upload your own footage
|
|
80
|
+
nemovideo upload ./raw-footage.mp4 --project proj_abc
|
|
81
|
+
nemovideo chat proj_abc -p "trim to first 5 seconds and add subtitles"
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Configuration
|
|
85
|
+
|
|
86
|
+
Config stored at `~/.config/nemovideo/config.json`.
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
nemovideo config set api_key nmv_usr_xxx # API token
|
|
90
|
+
nemovideo config set base_url https://... # Gateway URL
|
|
91
|
+
nemovideo config set output_dir ./output # Default output directory
|
|
92
|
+
nemovideo config get # Show all config
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Environment variable `NEMOVIDEO_API_KEY` overrides the stored api_key:
|
|
96
|
+
```bash
|
|
97
|
+
export NEMOVIDEO_API_KEY=nmv_usr_xxx
|
|
98
|
+
nemovideo credits
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## For AI IDE Users
|
|
102
|
+
|
|
103
|
+
This package comes with a `SKILL.md` that teaches AI agents (Cursor, Claude Code, etc.) how to use it. Install the package, and your AI assistant can create videos for you.
|
|
104
|
+
|
|
105
|
+
## Supported Formats
|
|
106
|
+
|
|
107
|
+
| Type | Formats |
|
|
108
|
+
|------|---------|
|
|
109
|
+
| Video | mp4, mov, avi, webm, mkv |
|
|
110
|
+
| Image | jpg, png, gif, webp |
|
|
111
|
+
| Audio | mp3, wav, m4a, aac |
|
|
112
|
+
|
|
113
|
+
## Links
|
|
114
|
+
|
|
115
|
+
- [NemoVideo](https://nemovideo.com) — Product website
|
|
116
|
+
- [Documentation](https://docs.nemovideo.com) — Full docs
|
|
117
|
+
|
|
118
|
+
## License
|
|
119
|
+
|
|
120
|
+
MIT
|
package/SKILL.md
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: nemo-video
|
|
3
|
+
version: "0.1.0"
|
|
4
|
+
description: >
|
|
5
|
+
AI video creation and editing via CLI. Create videos from text descriptions,
|
|
6
|
+
edit with background music, titles, transitions, and export MP4 files.
|
|
7
|
+
Requires API key from nemovideo.com (paid).
|
|
8
|
+
Supports mp4, mov, avi, webm, mkv, jpg, png, gif, webp, mp3, wav, m4a, aac.
|
|
9
|
+
homepage: https://nemovideo.com
|
|
10
|
+
repository: https://github.com/nemovideo/nemovideo-tools
|
|
11
|
+
metadata: {"openclaw": {"emoji": "🎬", "requires": {"env": [], "configPaths": ["~/.config/nemovideo/"]}, "primaryEnv": "NEMO_API_KEY"}}
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# NemoVideo Tools — AI Video Creation
|
|
15
|
+
|
|
16
|
+
Create and edit videos by running `nemovideo` commands. No GUI needed.
|
|
17
|
+
|
|
18
|
+
## Prerequisites
|
|
19
|
+
|
|
20
|
+
Requires Node.js >= 18 and a paid NemoVideo account.
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install -g nemovideo-tools
|
|
24
|
+
nemovideo setup
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
`nemovideo setup` guides you through: register → billing → API key configuration.
|
|
28
|
+
If already configured, verify with `nemovideo credits`.
|
|
29
|
+
|
|
30
|
+
## Commands
|
|
31
|
+
|
|
32
|
+
### Create Video
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
nemovideo create --prompt "5-second coffee product showcase, warm tones"
|
|
36
|
+
nemovideo create --prompt "10s tech demo" --duration 10 --ratio 16:9
|
|
37
|
+
nemovideo create --prompt "short intro" --export # create + auto export
|
|
38
|
+
nemovideo create --prompt "short intro" --export -o ./out.mp4 # with custom output path
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
| Flag | Short | Default | Description |
|
|
42
|
+
|------|-------|---------|-------------|
|
|
43
|
+
| `--prompt` | `-p` | (required) | Video description |
|
|
44
|
+
| `--duration` | `-d` | 5 | Duration in seconds |
|
|
45
|
+
| `--ratio` | `-r` | 16:9 | Aspect ratio: 16:9, 9:16, 1:1 |
|
|
46
|
+
| `--export` | `-e` | off | Auto export after creation |
|
|
47
|
+
| `--output` | `-o` | ./output/<name>.mp4 | Output path (with --export) |
|
|
48
|
+
|
|
49
|
+
Returns `project_id` for subsequent commands.
|
|
50
|
+
|
|
51
|
+
### Edit Existing Project
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
nemovideo chat <project_id> --prompt "add background music"
|
|
55
|
+
nemovideo chat <project_id> --prompt "change duration to 10 seconds"
|
|
56
|
+
nemovideo chat <project_id> --prompt "add title 'Hello World' at the beginning"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Export Video
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
nemovideo export <project_id>
|
|
63
|
+
nemovideo export <project_id> --output ./my-video.mp4
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Export is free — only creation/editing consumes credits.
|
|
67
|
+
|
|
68
|
+
### Upload Assets
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
nemovideo upload ./footage.mp4 --project <project_id>
|
|
72
|
+
nemovideo upload ./music.mp3 --project <project_id>
|
|
73
|
+
nemovideo upload ./logo.png --project <project_id>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Supported: mp4, mov, avi, webm, mkv, jpg, png, gif, webp, mp3, wav, m4a, aac.
|
|
77
|
+
|
|
78
|
+
### Open in Browser
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
nemovideo open <project_id>
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Project Management
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
nemovideo project list
|
|
88
|
+
nemovideo project get <project_id>
|
|
89
|
+
nemovideo project download <project_id> --output ./video.mp4
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Credits
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
nemovideo credits # check balance
|
|
96
|
+
nemovideo credits history # consumption history
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Typical Workflow
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# 1. Create a video
|
|
103
|
+
nemovideo create -p "product showcase video, 10 seconds, modern style" -d 10
|
|
104
|
+
|
|
105
|
+
# 2. Edit it
|
|
106
|
+
nemovideo chat <project_id> -p "add upbeat background music"
|
|
107
|
+
nemovideo chat <project_id> -p "add title 'Our Product' at the beginning"
|
|
108
|
+
|
|
109
|
+
# 3. Export
|
|
110
|
+
nemovideo export <project_id> -o ./product-video.mp4
|
|
111
|
+
|
|
112
|
+
# 4. Or do it all in one step
|
|
113
|
+
nemovideo create -p "product showcase" --export -o ./product-video.mp4
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## One-Step Workflow (for simple requests)
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
nemovideo create --prompt "5-second sunset timelapse" --export
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Error Handling
|
|
123
|
+
|
|
124
|
+
| Error | What to do |
|
|
125
|
+
|-------|------------|
|
|
126
|
+
| "API key not configured" | Run `nemovideo setup` |
|
|
127
|
+
| "Token expired" | Run `nemovideo setup` to reconfigure |
|
|
128
|
+
| "Insufficient credits" | Top up at nemovideo.com/dashboard/billing |
|
|
129
|
+
| "Rate limited" | Wait a moment and retry |
|
|
130
|
+
| Connection dropped | Run `nemovideo project get <id>` to check status |
|
|
131
|
+
|
|
132
|
+
## Configuration
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
nemovideo config set api_key <nmv_usr_xxx>
|
|
136
|
+
nemovideo config set base_url https://mega-x-api-prod.nemovideo.ai
|
|
137
|
+
nemovideo config set output_dir ./output
|
|
138
|
+
nemovideo config get
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Config stored at `~/.config/nemovideo/config.json`.
|
|
142
|
+
|
|
143
|
+
Environment variable `NEMOVIDEO_API_KEY` overrides the stored api_key.
|
|
144
|
+
|
|
145
|
+
## Cost Reference
|
|
146
|
+
|
|
147
|
+
- Video creation: ~100 credits/clip
|
|
148
|
+
- Video editing: ~50 credits/session
|
|
149
|
+
- Export/render: free
|
|
150
|
+
- Check balance: `nemovideo credits`
|