Open SourceJanuary 2026

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.

Polydev Logo

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 dev

Environment 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=false

Tip: 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@latest

Or 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 = 600

Feature 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.

FlagDescriptionSelf-HostedHosted
NEXT_PUBLIC_CREDITS_ENABLEDCredits system for API usagefalsetrue
NEXT_PUBLIC_CHAT_ENABLEDMulti-model chat interfacetruetrue
NEXT_PUBLIC_SUBSCRIPTION_ENABLEDStripe subscription tiersfalsetrue
NEXT_PUBLIC_ADMIN_ENABLEDAdmin panel for managementfalsetrue
NEXT_PUBLIC_REFERRALS_ENABLEDReferral programfalsetrue
NEXT_PUBLIC_IS_HOSTEDHosted version indicatorfalsetrue

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
Get Started Free →

Polydev

Multi-model perspectives for your coding agents