Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
pull_request:
push:
branches: [main]

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: "24"
- run: npm ci
- run: npm test
- run: npm run build
18 changes: 18 additions & 0 deletions .github/workflows/deploy-pollinations-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Deploy / Pollinations production

on:
push:
branches: [production]
workflow_dispatch:

permissions:
contents: read

jobs:
deploy:
if: github.event_name == 'workflow_dispatch' || vars.AUTO_DEPLOY == 'true'
uses: pollinations/pollinations/.github/workflows/deploy-pollinations-site.yml@75c8b4c4c409ce6537b8fb73c054c0155617a7f9
with:
site-name: openclaw
secrets:
POLLINATIONS_API_KEY: ${{ secrets.POLLINATIONS_API_KEY }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
.DS_Store
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 pollinations.ai

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
55 changes: 51 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Pollinations x OpenClaw
# Pollinations × OpenClaw

[![Made with pollinations.ai](https://cdn.jsdelivr.net/npm/@pollinations/ui@0.1.0-alpha.25/dist/brand/badge-made-with.svg)](https://pollinations.ai)

Setup website for connecting your own OpenClaw installation to Pollinations.
The OpenClaw runtime and Polli CLI are maintained separately.

Use **Pollinations AI models** as your OpenClaw brain through a single API.

Expand Down Expand Up @@ -59,16 +64,58 @@ untouched.
## Legacy one-liner

The old `curl ... | bash -s -- KEY` script still works and forwards to the
same CLI:
same published CLI. The key is passed through the process environment; the
website never receives it:

```bash
curl -fsSL https://raw.githubusercontent.com/pollinations/pollinations/main/apps/openclaw/setup-pollinations.sh | bash -s -- YOUR_API_KEY
curl -fsSL https://raw.githubusercontent.com/pollinations/openclaw/main/setup-pollinations.sh | bash -s -- YOUR_API_KEY
```

## Links

- **API Docs:** https://gen.pollinations.ai/docs
- **Get API Key:** https://enter.pollinations.ai/keys
- **Models:** https://gen.pollinations.ai/v1/models
- **GitHub:** https://github.com/pollinations/pollinations
- **Website:** https://openclaw.pollinations.app
- **GitHub:** https://github.com/pollinations/openclaw
- **Discord:** https://discord.gg/k9F7SyTgqn

## Development and deployment

This is a static site with no runtime npm dependencies. Use Node.js 24 or newer:

```bash
npm ci
npm test
npm run build
python3 -m http.server 16389 --directory dist --bind 127.0.0.1
```

Open `http://127.0.0.1:16389`. The build copies only public assets into `dist`.
The page uses the published CLI for setup; it does not sign in, generate content,
or receive API keys in the browser.

Merge changes into `main`, then promote `main` to `production` through a PR.
With `AUTO_DEPLOY=true`, each production push calls the same pinned
[shared Sites workflow](https://github.com/pollinations/pollinations/blob/75c8b4c4c409ce6537b8fb73c054c0155617a7f9/.github/workflows/deploy-pollinations-site.yml)
as Websim, CatGPT and Sirius. It builds/tests without a deployment credential,
then publishes `dist` as `openclaw` and verifies every file with the released
`@pollinations/cli@0.1.72` on a separate runner.

`POLLINATIONS_API_KEY` belongs in this repository's GitHub `production`
environment. The CI key needs Sites (`account:machines`) access under Polli's
account, with zero generation budget and no model access. Never put it in the
site or build job. Manual deployments use the same workflow on `production`.

The migration keeps the existing `.ai` deployment available until the `.app`
site passes validation. After cutover, `.ai` redirects to `.app`. Roll back by
reverting the source change and promoting the revert; routing can return to the
retained Pages deployment while a failed migration is investigated.

## Attribution

Extracted from `pollinations/pollinations/apps/openclaw` at `a69766cd10`,
preserving 22 app-history commits and their authors. Historical secret-like
strings in the optional meditation script are redacted in this repository's
copied history. MIT license retained. The OpenClaw and Pollinations names,
logos, and the original Builders Night attribution remain credited to their owners.
16 changes: 16 additions & 0 deletions build.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { cpSync, mkdirSync, rmSync } from "node:fs";

rmSync("dist", { recursive: true, force: true });
mkdirSync("dist");
for (const path of [
"index.html",
"src",
"fonts",
"public",
"logo-text-white.svg",
"openclaw-logo.svg",
"setup-pollinations.sh",
"skills",
]) {
cpSync(path, `dist/${path}`, { recursive: true });
}
6 changes: 0 additions & 6 deletions deploy.json

This file was deleted.

Loading
Loading