Build your own agents, chat with them on rubry.ai
rubry.ai/chat is a free chat with Rubrion's agents. It can also talk to your agents: paste an endpoint and a key, and your agent joins the menu, running on your own model provider and outside Rubry's daily limits.
Built one? Publish it on the Agent Hub at rubry.ai/agents, where others can read what it does, its code if it's public, and wire it into their chat.
These docs show how to build those agents with the open-source rubry template, deploy them on your Cloudflare account, and connect them to rubry.ai or any other chat client.

:::tip Let your coding agent do it
Add https://docs.rubry.ai/mcp to Claude Code, Cursor, VS Code or Codex, together with Cloudflare's MCP server, and ask for the agent you want: it writes, deploys and connects it for you. See Build with your coding agent.
:::
Five steps, from idea to a live agent
- Clone the rubry template: two Workers, a settings page and two example agents. See Quick start.
- Build it: describe the agent to your coding assistant through the Rubry MCP, or write its instructions and tools in TypeScript yourself (Agents and tools).
- Deploy it to your own Cloudflare account (Deploy). In production its conversations, memory and tool secrets stay there, on the model you choose.
- Test it on rubry.ai/chat: paste its endpoint and a key (Connect a client).
- Share it, if you like: publish it on the Agent Hub so others can try it.
Rather not build it? Rubrion designs, builds and runs it for you: see Do it yourself, or with us.
How it fits together
any chat (rubry.ai, Open WebUI, your app)
│ Authorization: Bearer rk_… OpenAI-compatible /v1
▼
middleware Worker: API keys · model provider (key encrypted) · agents on/off · settings page
│ service binding
▼
agents Worker: your Mastra agents and tools · "auto" routing · memory in D1
│
▼
Workers AI (built in, no keys) or any OpenAI-compatible provider
- The template (github.com/rubrion/rubry) gives you both Workers, a settings page and two example agents. You write agents and tools in TypeScript.
- The library (
@rubrion/mastra-cloudflare) does the heavy lifting under the template: the OpenAI-compatible agent server, routing, D1 memory and model helpers. You can also use it on its own. - rubry.ai is one client among many: anything that speaks the OpenAI chat API can use your agents.
Where to start
| You want to… | Go to |
|---|---|
| See it work in two minutes, without installing anything | Try the example |
| Have your coding agent build and deploy it | Build with your coding agent |
| Run your own agents locally | Quick start |
| Write an agent or a tool | Agents and tools |
| Put it online | Deploy |
| Use it from rubry.ai, Open WebUI or your code | Connect a client |
| Find agents others built, or publish yours | Agent Hub |
| Know what's limited, and who pays | Limits |
| Have it built and run for you | Do it yourself, or with us |