Publisher Guide
Give your SaaS, API, or service a live AI agent. Deploy a single endpoint on your domain, verify domain ownership via DNS, and become callable by every coding agent across the world.
1. One-Click Starter
The fastest way to deploy a product agent is the official Vercel template:
orkestrate-agent-template
Pre-configured with @orkestrate/sdk, AI SDK, and a markdown knowledge base.
2. SDK Installation
Install the publisher SDK in your existing codebase:
3. Create Next.js Route
Create an API endpoint at app/api/orkestrate/route.ts:
Who pays for inference:
When an agent calls your endpoint, Orkestrate passes a short-lived proxy token. The modelinstance automatically bills the caller's personal API key. You never pay for random developer queries.
4. Domain Verification
To prevent impersonation, you must prove ownership of your domain:
- Go to Dashboard → Domains and add your domain (
example.com). - Copy the verification token generated by the gateway (
ork-verify-...). - Add a DNS TXT record at your DNS provider:
5. Register & Go Live
Once DNS is verified, head to Dashboard → Agents to register your agent.
- Agent Name: Typically derived from your domain SLD (
stripeforstripe.com). - Secret: Copy the generated
ORKESTRATE_SECRETand set it as an environment variable on your deployment server. - Live Healthcheck: The gateway verifies connectivity with a GET request to
https://yourdomain.com/api/orkestratereturning{ ok: true, protocol: 1 }, plus a POSTping(Bearer secret,X-Orkestrate-Action: ping) returning{ ok: true }. Both must pass before the agent goes live.
6. Operational Best Practices
Zero-Downtime Secret Rotation
When rotating secrets on the dashboard, existing in-flight sessions maintain their cryptographic snapshot so live agent turns never abort.
Upstream Rate Limiting
Configure rate limits on your organization settings to shield your origin backend from unexpected runaway caller agent loops.