diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2a531ee --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/deploy-pollinations-production.yml b/.github/workflows/deploy-pollinations-production.yml new file mode 100644 index 0000000..04bd161 --- /dev/null +++ b/.github/workflows/deploy-pollinations-production.yml @@ -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 }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3bdd52e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +dist/ +.DS_Store diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7166646 --- /dev/null +++ b/LICENSE @@ -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. diff --git a/README.md b/README.md index 4c989cd..c75dc8c 100644 --- a/README.md +++ b/README.md @@ -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. @@ -59,10 +64,11 @@ 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 @@ -70,5 +76,46 @@ curl -fsSL https://raw.githubusercontent.com/pollinations/pollinations/main/apps - **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. diff --git a/build.mjs b/build.mjs new file mode 100644 index 0000000..b2ff57a --- /dev/null +++ b/build.mjs @@ -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 }); +} diff --git a/deploy.json b/deploy.json deleted file mode 100644 index 8a94d7f..0000000 --- a/deploy.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "target": "pages", - "credentials": "apps", - "subdomain": "openclaw", - "output": "." -} diff --git a/index.html b/index.html index f152be3..48059a2 100644 --- a/index.html +++ b/index.html @@ -8,13 +8,15 @@ + content="Connect OpenClaw to Pollinations models with the published Polli CLI."> - - + + + + + content="Connect OpenClaw to Pollinations models with the published Polli CLI."> @@ -37,9 +39,8 @@ OpenClaw @@ -49,10 +50,8 @@

pollinations.ai × OpenClaw

-

Use 25+ AI models as your OpenClaw brain through a single API. Free models with - web search, vision & reasoning — connect your account and start building in 30 - seconds. -

+

Use Pollinations models in your OpenClaw agent. Connect once with the + published Polli CLI, then choose from the current model catalog.

@@ -67,241 +66,86 @@

pollinations.ai × OpenClaw< -
-
+
+
1
-
Get your API key
+

Install OpenClaw and Polli

-
Free credits included — connect to get started:
- -
or paste your key manually: enter.pollinations.ai
-
-
-