@pollinations/cli 0.1.11 → 0.1.13

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
@@ -129,16 +129,22 @@ key for the harness, backs up its config, and writes the provider; `off`
129
129
  restores the backup.
130
130
 
131
131
  ```bash
132
- polli harness --help # supported harnesses
133
- polli harness dsh on # DeepSeek Harness → Pollinations (default model: deepseek)
132
+ polli harness --help # supported harnesses
133
+ polli harness dsh on # DeepSeek Harness → Pollinations (default model: deepseek)
134
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
135
+ polli harness dsh on --no-mcp # skip MCP tool configuration
136
+ polli harness opencode on # enables the Pollinations OpenCode plugin + default model
137
+ polli harness openclaw on # adds the Pollinations provider + Polli skill to OpenClaw
138
+ polli harness pi on # native provider, key, startup model, and Polli skill
139
+ polli harness prime on # native Prime Agent provider support
140
+ polli harness <harness> status
141
+ polli harness <harness> off
138
142
  ```
139
143
 
140
144
  The DSH adapter configures the Pollinations provider, hosted Pollinations MCP,
141
- and Polli CLI skill globally under `$DSH_HOME` (default `~/.dsh`).
145
+ and Polli CLI skill globally under `$DSH_HOME` (default `~/.dsh`). OpenCode uses
146
+ its official plugin; OpenClaw uses `openclaw.json`, while Pi and Prime Agent use
147
+ their native `models.json` provider support.
142
148
 
143
149
  See [Coding Harnesses](https://github.com/pollinations/pollinations/blob/main/CODING_HARNESSES.md) for what each profile changes and how to add one.
144
150
 
package/SKILL.md CHANGED
@@ -43,7 +43,7 @@ If `polli` is not installed, run `npm i -g @pollinations/cli@latest` (provides t
43
43
  | List your quests + claim state | `polli quests` (filters: `--open --claimable --claimed --coming-soon`) |
44
44
  | Manage prompt agents | `polli agents list` |
45
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`) |
46
+ | Connect a coding harness to Pollinations | `polli harness <dsh\|opencode\|openclaw\|pi\|prime> on` (available adapters: `polli harness --help`) |
47
47
  | Machine-readable output | append `--json` to any command |
48
48
 
49
49
  ## Setup
@@ -160,10 +160,11 @@ polli quests --claimable # only rewards ready to claim
160
160
  ```bash
161
161
  polli my-models list
162
162
  polli my-models models --base-url https://api.example.com/v1 --bearer-token "$UPSTREAM_KEY"
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
163
+ polli my-models create --name my-model --title "My Model" --api chat_completions --url https://api.example.com/v1/chat/completions --bearer-token "$UPSTREAM_KEY" --upstream-model gpt-4.1-mini --required-safety privacy,secrets,sexual,violence,shield
164
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
165
165
  polli my-models update <id> --description "Updated description"
166
166
  polli my-models update <id> --paid-only # only accept Paid Pollen; --no-paid-only reverts
167
+ polli my-models update <id> --required-safety privacy,secrets,sexual,violence,shield
167
168
  polli my-models delete <id>
168
169
  ```
169
170
  `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.
@@ -190,7 +191,7 @@ polli agents create --config agent.json --name my-agent --title "My Agent"
190
191
  polli agents update <id> --config agent.json
191
192
  polli agents delete <id>
192
193
  ```
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
+ The config file contains `systemPrompt`, `baseModel`, and optional `mcpServers`; create also requires `--name` and `--title` for the callable model listing. Use server IDs from the MCP catalog. Updates replace the complete agent configuration.
194
195
 
195
196
  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
197
 
@@ -211,8 +212,17 @@ polli harness dsh on # login if needed, mint key "polli-harness-d
211
212
  polli harness dsh on --model kimi # any tool-calling text model from `polli models`
212
213
  polli harness dsh on --no-mcp # configure the provider and skill without MCP tools
213
214
  polli harness dsh off # restore the config backed up before "on"
215
+ polli harness opencode on # enable the Pollinations OpenCode plugin
216
+ polli harness opencode off # remove the plugin setup and stored key
217
+ polli harness pi on # login if needed, mint key "polli-harness-pi", configure Pi with Pollinations
218
+ polli harness pi on --model kimi # any tool-calling text model from `polli models`
219
+ polli harness pi off # restore the Pi config backed up before "on"
220
+ polli harness openclaw on # login if needed, mint key "polli-harness-openclaw", add provider + Polli skill
221
+ polli harness openclaw off # remove the Pollinations provider, key, and skill
214
222
  ```
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".
223
+ 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, OpenClaw, and Pi require their installed commands.
224
+
225
+ 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. OpenClaw adds a `pollinations` provider to `~/.openclaw/openclaw.json`, stores a dedicated key in `env.vars`, and installs this skill under `~/.openclaw/skills/polli/`. 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".
216
226
 
217
227
  ### Read API docs
218
228
  ```bash