Two AI models debate until they agree on a plan.
Parley is an open-source collaborative planning tool that leverages dual AI models to create comprehensive, well-vetted plans. Select any two models from 300+ options via OpenRouter, enter your planning prompt, and watch them deliberate in real-time until they reach consensus.
- Dual Model Selection - Choose any two AI models from OpenRouter's extensive catalog
- Real-time Streaming - Watch agents think and respond as it happens
- Human Intervention - Jump into the conversation anytime to steer direction
- Agreement Detection - Planning automatically concludes when both agents agree
- All Cloudflare - Runs on Cloudflare Pages + Workers for edge performance
- Agent A (Proposer) creates an initial plan based on your prompt
- Agent B (Critic) reviews and provides constructive feedback
- Agents iterate back and forth, refining the plan
- When both agents agree, the final plan is presented
- You can intervene at any point to add context or redirect
- Frontend: SvelteKit 2 + Svelte 5
- Styling: Tailwind CSS v4
- Backend: Cloudflare Workers
- AI: OpenRouter API (300+ models)
- Streaming: Server-Sent Events (SSE)
- Bun or Node.js
- Wrangler CLI
- OpenRouter API key
cd packages/parley
bun installSet your OpenRouter API key:
# For local development
echo "OPENROUTER_API_KEY=your_key_here" > .dev.vars
# For production
wrangler secret put OPENROUTER_API_KEYbun run devbun run build
bun run deploy| Variable | Description |
|---|---|
OPENROUTER_API_KEY |
Your OpenRouter API key |
Agents are equipped with specialized tools for planning:
<think>- Internal reasoning (visible to users)<propose_plan>- Submit or update the plan<critique>- Provide constructive criticism<ask_question>- Request clarification<agree>- Accept the current plan
MIT
Built by coey.dev