Selects a Pollinations model for each request and forwards the original conversation unchanged. Routing and model calls use the caller's Pollen.
- Fork this repository.
- In the staging dashboard, choose Add Agent → Code agent and enter your fork's URL.
- Edit
agent.ts, push, then use Sync in the dashboard to deploy the update.
Code agents are currently available on staging. The source repository must be public; the agent itself can be private.
For automatic sync after a push, enable GitHub Actions in your fork and add the repository variable POLLINATIONS_SYNC_URL with https://staging.gen.pollinations.ai/account/agents/YOUR_AGENT_ID/sync. No API key is needed. Without this variable, the workflow skips deployment.