Polydev is Now Open Source
Self-host Polydev with your own API keys. Get multi-model AI perspectives for your coding agents without any external dependencies.

We're excited to announce that Polydev is now fully open source. You can self-host the entire platform using your own API keys from OpenAI, Anthropic, Google, and X.AI. No external service required.
Quick Start
Option 1: Use the Hosted Service (Easiest)
Get started instantly with our hosted service. No setup required.
# Install the MCP server
npx polydev-ai@latest
# Get your token from polydev.ai/dashboard/mcp-tokens
export POLYDEV_USER_TOKEN="pd_your_token_here"Option 2: Self-Host with Your Own API Keys
Full control over your data and API keys. Bring your own credentials.
# Clone the repository
git clone https://github.com/polydev-ai/polydev.git
cd polydev
# Install dependencies
npm install
# Configure environment
cp .env.example .env.local
# Add your API keys to .env.local
# Start the server
npm run devEnvironment Configuration
Create a .env.local file with your API keys:
# Database (Supabase)
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
# AI Providers (add the ones you want to use)
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GOOGLE_API_KEY=...
XAI_API_KEY=...
# Feature Flags (self-hosted defaults)
NEXT_PUBLIC_CREDITS_ENABLED=false
NEXT_PUBLIC_CHAT_ENABLED=true
NEXT_PUBLIC_SUBSCRIPTION_ENABLED=false
NEXT_PUBLIC_IS_HOSTED=falseTip: You only need to configure the AI providers you want to use. Polydev will automatically use available providers for multi-model consultation.
IDE Integration
Claude Code
claude mcp add polydev -- npx -y polydev-ai@latestOr add to your ~/.claude.json:
{
"mcpServers": {
"polydev": {
"command": "npx",
"args": ["-y", "polydev-ai@latest"],
"env": {
"POLYDEV_USER_TOKEN": "pd_your_token_here"
}
}
}
}Cursor / Windsurf / Cline
Add to your MCP configuration:
{
"mcpServers": {
"polydev": {
"command": "npx",
"args": ["-y", "polydev-ai@latest"],
"env": {
"POLYDEV_USER_TOKEN": "pd_your_token_here"
}
}
}
}OpenAI Codex CLI
Add to ~/.codex/config.toml:
[mcp_servers.polydev]
command = "npx"
args = ["-y", "polydev-ai@latest"]
[mcp_servers.polydev.env]
POLYDEV_USER_TOKEN = "pd_your_token_here"
[mcp_servers.polydev.timeouts]
tool_timeout = 180
session_timeout = 600Feature Flags
Polydev uses feature flags to control which features are enabled. This allows the same codebase to power both the open-source and hosted versions.
| Flag | Description | Self-Hosted | Hosted |
|---|---|---|---|
| NEXT_PUBLIC_CREDITS_ENABLED | Credits system for API usage | false | true |
| NEXT_PUBLIC_CHAT_ENABLED | Multi-model chat interface | true | true |
| NEXT_PUBLIC_SUBSCRIPTION_ENABLED | Stripe subscription tiers | false | true |
| NEXT_PUBLIC_ADMIN_ENABLED | Admin panel for management | false | true |
| NEXT_PUBLIC_REFERRALS_ENABLED | Referral program | false | true |
| NEXT_PUBLIC_IS_HOSTED | Hosted version indicator | false | true |
Usage
Once connected, your AI agent can call the get_perspectives tool:
{
"tool": "get_perspectives",
"arguments": {
"prompt": "How should I refactor this authentication flow?"
}
}Or simply mention "polydev" or "perspectives" in your prompt:
"Use polydev to debug this infinite loop"
"Get perspectives on: Should I use Redis or PostgreSQL for caching?"Self-Hosted vs Hosted
Self-Hosted
- Full control over your data
- Use your own API keys
- No external dependencies
- Customize as needed
- MIT licensed
Hosted (polydev.ai)
- Zero setup required
- Managed API keys
- Usage dashboard & analytics
- Team collaboration
- 500 free messages to start