@pollinations/cli 0.1.12 → 0.1.14

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
@@ -98,12 +98,12 @@ polli agents list # managed prompt agents
98
98
  polli my-models list # invite-only community text, image, and transcription models
99
99
  ```
100
100
 
101
- Manage agents with API-shaped JSON config files plus their callable model name
102
- and catalog title:
101
+ Manage agents with API-shaped JSON config files:
103
102
 
104
103
  ```bash
105
104
  polli agents get <id>
106
105
  polli agents create --config agent.json --name my-agent --title "My Agent"
106
+ polli agents create --config code-agent.json
107
107
  polli agents update <id> --config agent.json
108
108
  polli agents delete <id>
109
109
  ```
@@ -129,16 +129,24 @@ 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 bloom on # creates a dedicated key for Bloom CLI
134
+ polli harness dsh on # DeepSeek Harness → Pollinations (default model: deepseek)
134
135
  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
136
+ polli harness dsh on --no-mcp # skip MCP tool configuration
137
+ polli harness opencode on # enables the Pollinations OpenCode plugin + default model
138
+ polli harness openclaw on # adds the Pollinations provider + Polli skill to OpenClaw
139
+ polli harness pi on # native provider, key, startup model, and Polli skill
140
+ polli harness prime on # native Prime Agent provider support
141
+ polli harness <harness> status
142
+ polli harness <harness> off
138
143
  ```
139
144
 
145
+ Bloom stores its dedicated key in `$BLOOM_HOME/.env` (default `~/.bloom/.env`).
140
146
  The DSH adapter configures the Pollinations provider, hosted Pollinations MCP,
141
- and Polli CLI skill globally under `$DSH_HOME` (default `~/.dsh`).
147
+ and Polli CLI skill globally under `$DSH_HOME` (default `~/.dsh`). OpenCode uses
148
+ its official plugin; OpenClaw uses `openclaw.json`, while Pi and Prime Agent use
149
+ their native `models.json` provider support.
142
150
 
143
151
  See [Coding Harnesses](https://github.com/pollinations/pollinations/blob/main/CODING_HARNESSES.md) for what each profile changes and how to add one.
144
152
 
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\|opencode\|pi> on` (available adapters: `polli harness --help`) |
46
+ | Connect a coding harness to Pollinations | `polli harness <bloom\|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.
@@ -187,10 +188,11 @@ Prices only apply to `--visibility public` models. A private model is owner-only
187
188
  polli agents list
188
189
  polli agents get <id>
189
190
  polli agents create --config agent.json --name my-agent --title "My Agent"
191
+ polli agents create --config code-agent.json
190
192
  polli agents update <id> --config agent.json
191
193
  polli agents delete <id>
192
194
  ```
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.
195
+ Prompt-agent config contains `systemPrompt`, `baseModel`, and optional `mcpServers`; create also requires `--name` and `--title`. Code-agent config contains `type: "code_agent"` and a public GitHub `repository` with `agent.ts` at its root; its model ID, title, and description come from GitHub. Use server IDs from the MCP catalog. Prompt-agent updates replace the complete runtime configuration.
194
196
 
195
197
  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
198
 
@@ -207,6 +209,7 @@ polli keys revoke <id> # id comes fr
207
209
  ### Connect a coding harness
208
210
  ```bash
209
211
  polli harness --help # supported harnesses
212
+ polli harness bloom on # create a dedicated key for Bloom CLI
210
213
  polli harness dsh on # login if needed, mint key "polli-harness-dsh", write provider + default model
211
214
  polli harness dsh on --model kimi # any tool-calling text model from `polli models`
212
215
  polli harness dsh on --no-mcp # configure the provider and skill without MCP tools
@@ -216,10 +219,12 @@ polli harness opencode off # remove the plugin setup and stored key
216
219
  polli harness pi on # login if needed, mint key "polli-harness-pi", configure Pi with Pollinations
217
220
  polli harness pi on --model kimi # any tool-calling text model from `polli models`
218
221
  polli harness pi off # restore the Pi config backed up before "on"
222
+ polli harness openclaw on # login if needed, mint key "polli-harness-openclaw", add provider + Polli skill
223
+ polli harness openclaw off # remove the Pollinations provider, key, and skill
219
224
  ```
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.
225
+ 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`; Bloom, OpenCode, OpenClaw, and Pi require their installed commands.
221
226
 
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".
227
+ Bloom already uses Pollinations and only needs a dedicated key in `$BLOOM_HOME/.env` (default `~/.bloom/.env`). 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".
223
228
 
224
229
  ### Read API docs
225
230
  ```bash