@pollinations/cli 0.1.9 → 0.1.11
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 +39 -5
- package/SKILL.md +23 -4
- package/dist/index.js +654 -100
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ polli docs # full API reference in the terminal
|
|
|
67
67
|
polli docs /image # one endpoint
|
|
68
68
|
polli docs --open # open in browser
|
|
69
69
|
polli quests # public quest catalog
|
|
70
|
-
polli quests
|
|
70
|
+
polli quests --claimed # already-completed and earned quest status
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
## Account
|
|
@@ -92,22 +92,56 @@ Keys can't be edited — to change a name, budget, or model list, revoke and rec
|
|
|
92
92
|
polli usage # pollen balance
|
|
93
93
|
polli usage --history # recent requests
|
|
94
94
|
polli usage --daily # daily spend
|
|
95
|
-
polli
|
|
95
|
+
polli earnings # developer earnings (default 30 days, --days up to 90)
|
|
96
|
+
polli quests --claimable # only rewards ready to claim
|
|
96
97
|
polli agents list # managed prompt agents
|
|
97
|
-
polli my-models list # invite-only community text and
|
|
98
|
+
polli my-models list # invite-only community text, image, and transcription models
|
|
98
99
|
```
|
|
99
100
|
|
|
100
|
-
Manage agents with API-shaped JSON config files
|
|
101
|
+
Manage agents with API-shaped JSON config files plus their callable model name
|
|
102
|
+
and catalog title:
|
|
101
103
|
|
|
102
104
|
```bash
|
|
103
105
|
polli agents get <id>
|
|
104
|
-
polli agents create --config agent.json
|
|
106
|
+
polli agents create --config agent.json --name my-agent --title "My Agent"
|
|
105
107
|
polli agents update <id> --config agent.json
|
|
106
108
|
polli agents delete <id>
|
|
107
109
|
```
|
|
108
110
|
|
|
111
|
+
`agent.json` contains the complete configuration:
|
|
112
|
+
|
|
113
|
+
```json
|
|
114
|
+
{
|
|
115
|
+
"systemPrompt": "You are a concise research assistant.",
|
|
116
|
+
"baseModel": "openai",
|
|
117
|
+
"mcpServers": ["pollinations"]
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Creating an agent also creates its callable model listing. See [Publish an Agent](https://github.com/pollinations/pollinations/blob/main/BUILD_YOUR_OWN_AGENT.md) for visibility, billing, and lifecycle details.
|
|
122
|
+
|
|
109
123
|
`polli auth login` creates a key with all account permissions Polli needs: `profile`, `usage`, and `keys`. Use `account:usage` for narrow read-only account state like usage and quests. Use `account:keys` to manage keys and, where invite-only My Models access is enabled, my-models. Quest claiming remains in the dashboard.
|
|
110
124
|
|
|
125
|
+
## Coding harnesses
|
|
126
|
+
|
|
127
|
+
Point an agentic coding tool at Pollinations. `on` logs in if needed, mints a
|
|
128
|
+
key for the harness, backs up its config, and writes the provider; `off`
|
|
129
|
+
restores the backup.
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
polli harness --help # supported harnesses
|
|
133
|
+
polli harness dsh on # DeepSeek Harness → Pollinations (default model: deepseek)
|
|
134
|
+
polli harness dsh on --model kimi
|
|
135
|
+
polli harness dsh on --no-mcp # skip MCP tool configuration
|
|
136
|
+
polli harness dsh status
|
|
137
|
+
polli harness dsh off
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
The DSH adapter configures the Pollinations provider, hosted Pollinations MCP,
|
|
141
|
+
and Polli CLI skill globally under `$DSH_HOME` (default `~/.dsh`).
|
|
142
|
+
|
|
143
|
+
See [Coding Harnesses](https://github.com/pollinations/pollinations/blob/main/CODING_HARNESSES.md) for what each profile changes and how to add one.
|
|
144
|
+
|
|
111
145
|
## Links
|
|
112
146
|
|
|
113
147
|
- [gen.pollinations.ai](https://gen.pollinations.ai) — API
|
package/SKILL.md
CHANGED
|
@@ -8,7 +8,7 @@ allowed-tools: Bash(polli *)
|
|
|
8
8
|
|
|
9
9
|
Thin wrapper around `gen.pollinations.ai`. Generates images, text, audio, video; transcribes speech; manages API keys, usage, quests, agents, and invite-only my-models.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
If `polli` is not installed, run `npm i -g @pollinations/cli@latest` (provides the `polli` binary).
|
|
12
12
|
|
|
13
13
|
## When to use this skill
|
|
14
14
|
|
|
@@ -39,9 +39,11 @@ Install: `npm i -g @pollinations/cli@latest` (provides the `polli` binary).
|
|
|
39
39
|
| Filter models by type | `polli models --type image` |
|
|
40
40
|
| Model health + latency | `polli models --stats` (default 60m, `--window <min>`) |
|
|
41
41
|
| Check balance | `polli usage` |
|
|
42
|
+
| Developer earnings | `polli earnings` (`--days <n>`, max 90) |
|
|
42
43
|
| List your quests + claim state | `polli quests` (filters: `--open --claimable --claimed --coming-soon`) |
|
|
43
44
|
| Manage prompt agents | `polli agents list` |
|
|
44
45
|
| Manage invite-only community models | `polli my-models list` |
|
|
46
|
+
| Connect a coding harness to Pollinations | `polli harness dsh on` (available adapters: `polli harness --help`) |
|
|
45
47
|
| Machine-readable output | append `--json` to any command |
|
|
46
48
|
|
|
47
49
|
## Setup
|
|
@@ -147,6 +149,8 @@ Use `--stats` before choosing a model. **Caveat**: the `err%` column counts **5x
|
|
|
147
149
|
polli usage # current pollen balance
|
|
148
150
|
polli usage --history # recent individual requests
|
|
149
151
|
polli usage --daily # daily cost summary
|
|
152
|
+
polli earnings # developer earnings total + per-entity breakdown (default 30d)
|
|
153
|
+
polli earnings --days 7 # rolling window, max 90
|
|
150
154
|
polli quests # your quests + claim state (open/claimable/claimed/coming)
|
|
151
155
|
polli quests --claimable # only rewards ready to claim
|
|
152
156
|
```
|
|
@@ -159,9 +163,10 @@ polli my-models models --base-url https://api.example.com/v1 --bearer-token "$UP
|
|
|
159
163
|
polli my-models create --name my-model --title "My Model" --base-url https://api.example.com/v1 --bearer-token "$UPSTREAM_KEY" --upstream-model gpt-4.1-mini
|
|
160
164
|
polli my-models create --name my-image --title "My Image" --modality image --image-pricing request --completion-image-price 0.01 --base-url https://api.example.com/v1 --bearer-token "$UPSTREAM_KEY" --upstream-model flux
|
|
161
165
|
polli my-models update <id> --description "Updated description"
|
|
166
|
+
polli my-models update <id> --paid-only # only accept Paid Pollen; --no-paid-only reverts
|
|
162
167
|
polli my-models delete <id>
|
|
163
168
|
```
|
|
164
|
-
`my-models` manages owned community text and
|
|
169
|
+
`my-models` manages owned community text, image, and transcription models. Any account can create private models; `communityEndpointsAllowed: true` is required only to publish them. API keys require `account:keys`. Use `account:usage` for narrow read-only usage and `polli quests`; use both permissions when a client needs both read-only account state and admin operations. Quest claiming is dashboard-only; `polli quests` is read-only and account-aware.
|
|
165
170
|
|
|
166
171
|
### Register an image my-model
|
|
167
172
|
```bash
|
|
@@ -172,6 +177,8 @@ Test before creating. The probe reports the pricing mode it detected and the inp
|
|
|
172
177
|
|
|
173
178
|
Two billing modes: `--image-pricing request` charges `--completion-image-price` per generated image, while `--image-pricing tokens` bills returned token usage per 1M through `--prompt-text-price`, `--prompt-image-price`, and `--completion-image-price`.
|
|
174
179
|
|
|
180
|
+
Prices only apply to `--visibility public` models. A private model is owner-only and always free, so every price flag above is stored as `0` until you publish — and making a published model private clears its prices again.
|
|
181
|
+
|
|
175
182
|
`--modality` is fixed at creation — `update` cannot change it.
|
|
176
183
|
|
|
177
184
|
### Manage agents
|
|
@@ -179,11 +186,13 @@ Two billing modes: `--image-pricing request` charges `--completion-image-price`
|
|
|
179
186
|
```bash
|
|
180
187
|
polli agents list
|
|
181
188
|
polli agents get <id>
|
|
182
|
-
polli agents create --config agent.json
|
|
189
|
+
polli agents create --config agent.json --name my-agent --title "My Agent"
|
|
183
190
|
polli agents update <id> --config agent.json
|
|
184
191
|
polli agents delete <id>
|
|
185
192
|
```
|
|
186
|
-
The config file
|
|
193
|
+
The config file contains `systemPrompt`, `baseModel`, and optional `mcpServers`; create also requires `--name` and `--title` for the callable model listing. The only supported server ID is currently `"pollinations"`. Updates replace the complete agent configuration.
|
|
194
|
+
|
|
195
|
+
Creating an agent also creates its callable model listing. Managed agents are text-only and free, with no fallbacks or per-user RPM. Deleting the agent also deletes its model listing. See [Publish an Agent](https://github.com/pollinations/pollinations/blob/main/BUILD_YOUR_OWN_AGENT.md).
|
|
187
196
|
|
|
188
197
|
### Manage API keys
|
|
189
198
|
```bash
|
|
@@ -195,6 +204,16 @@ polli keys revoke <id> # id comes fr
|
|
|
195
204
|
```
|
|
196
205
|
`--permissions <perms...>` scopes what the new key can do on the account (e.g. `profile usage` lets it call `polli --key <new> usage`). **Without `--permissions`, new scoped keys can generate media but cannot read account state** — `polli --key <new> usage` will 403. `"keys"` is auto-stripped from the list so a scoped key can never mint further keys. Existing keys with `account:keys` can manage my-models where that invite-only feature is enabled, but still need `account:usage` for read-only account state. Publishable app keys default developer earnings off; pass `--earnings` to enable them. To inspect a specific key other than the current one, use `polli keys list --json | jq '.[] | select(.id == "<id>")'`. `keys info` is intentionally scoped to the caller's own key.
|
|
197
206
|
|
|
207
|
+
### Connect a coding harness
|
|
208
|
+
```bash
|
|
209
|
+
polli harness --help # supported harnesses
|
|
210
|
+
polli harness dsh on # login if needed, mint key "polli-harness-dsh", write provider + default model
|
|
211
|
+
polli harness dsh on --model kimi # any tool-calling text model from `polli models`
|
|
212
|
+
polli harness dsh on --no-mcp # configure the provider and skill without MCP tools
|
|
213
|
+
polli harness dsh off # restore the config backed up before "on"
|
|
214
|
+
```
|
|
215
|
+
The DSH adapter globally configures the Pollinations provider, hosted Pollinations MCP, and this skill under `$DSH_HOME` (default `~/.dsh`). It stores one dedicated child key in `$DSH_HOME/.env` for the provider and MCP, plus a private snapshot under `~/.pollinations/harnesses/`. Reruns reuse a valid key already in the harness config. Other adapters may use their harness's official plugin or installer instead. Guide: `polli docs` section "Coding Harnesses".
|
|
216
|
+
|
|
198
217
|
### Read API docs
|
|
199
218
|
```bash
|
|
200
219
|
polli docs # full llm.txt reference
|