@pollinations/cli 0.1.10 → 0.1.12

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 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 mine # your completed and earned quest status
70
+ polli quests --claimed # already-completed and earned quest status
71
71
  ```
72
72
 
73
73
  ## Account
@@ -92,7 +92,8 @@ 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 quests mine --completed # completed and earned quests
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
98
  polli my-models list # invite-only community text, image, and transcription models
98
99
  ```
@@ -107,8 +108,40 @@ polli agents update <id> --config agent.json
107
108
  polli agents delete <id>
108
109
  ```
109
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
+
110
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.
111
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
+
112
145
  ## Links
113
146
 
114
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
- Install: `npm i -g @pollinations/cli@latest` (provides the `polli` binary).
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\|opencode\|pi> 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, image, and transcription models for invite-only accounts. It requires `communityEndpointsAllowed: true` plus a key with `account:keys`, or an authenticated dashboard session through the API. 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.
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
@@ -187,6 +192,8 @@ polli agents delete <id>
187
192
  ```
188
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.
189
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).
196
+
190
197
  ### Manage API keys
191
198
  ```bash
192
199
  polli keys list # list all keys on the account
@@ -197,6 +204,23 @@ polli keys revoke <id> # id comes fr
197
204
  ```
198
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.
199
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
+ polli harness opencode on # enable the Pollinations OpenCode plugin
215
+ polli harness opencode off # remove the plugin setup and stored key
216
+ polli harness pi on # login if needed, mint key "polli-harness-pi", configure Pi with Pollinations
217
+ polli harness pi on --model kimi # any tool-calling text model from `polli models`
218
+ polli harness pi off # restore the Pi config backed up before "on"
219
+ ```
220
+ Each adapter checks that its harness can be launched before login, key creation, or configuration. DSH's official launch uses `npx`, so its adapter checks for `npx`; OpenCode and Pi require their installed commands.
221
+
222
+ The DSH adapter globally configures the Pollinations provider, hosted Pollinations MCP, and this skill under `$DSH_HOME` (default `~/.dsh`). OpenCode enables the existing Pollinations plugin and stores its dedicated key in the plugin config. Pi writes `~/.pi/agent/models.json`, `auth.json`, and `settings.json`, and installs this skill under `~/.pi/agent/skills/polli/`. Guide: `polli docs` section "Coding Harnesses".
223
+
200
224
  ### Read API docs
201
225
  ```bash
202
226
  polli docs # full llm.txt reference