Quick Start

Get a second AI opinion on your code in under 30 seconds. Choose the integration that fits your workflow.

MCP Server

Works with Claude Code, Claude Desktop, Codex (app, CLI, and VS Code extension), VS Code + Copilot, Cursor, and Windsurf.

Option A: Paste your API key for instant setup

claude_desktop_config.json
{
  "mcpServers": {
    "2ndopinion": {
      "command": "npx",
      "args": ["-y", "2ndopinion-cli", "mcp"],
      "env": {
        "SECONDOPINION_API_KEY": "sk_2op_your_key_here"
      }
    }
  }
}

Option B: Use JWT auth (requires CLI login)

claude_desktop_config.json
{
  "mcpServers": {
    "2ndopinion": {
      "command": "npx",
      "args": ["-y", "2ndopinion-cli", "mcp"]
    }
  }
}

Run 2ndopinion login first to store a JWT locally.

Then restart your AI tool

Full setup guide

REST API

Build custom integrations, CI pipelines, or internal tooling with the HTTP gateway.

1. Get an API key from your dashboard

2. Make your first request

terminal
curl -X POST https://get2ndopinion.dev/api/gateway/opinion \
  -H "X-2ndOpinion-Key: sk_2op_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"diff": "...", "llm": "codex"}'

3. Parse the JSON response

Full API reference

CLI

Terminal-native experience with watch mode, interactive menus, and auto-fix.

1. Install globally

terminal
npm install -g 2ndopinion-cli

2. Create an account

terminal
2ndopinion signup
CLI documentation

Skills Marketplace

Browse and run community-built AI tools, or create and sell your own.

Browse Skills

Find specialized AI tools for security, compliance, framework-specific reviews, and more.

Open Marketplace

Run a Skill

Execute any skill via the API. Skills cost 1–20 credits per run. Creators earn 70%.

terminal
curl -X POST https://get2ndopinion.dev/api/gateway/skills/django-security-audit \
  -H "X-2ndOpinion-Key: sk_2op_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"diff": "..."}'

Authentication

2ndOpinion supports two authentication methods:

  • API KeyCreate API keys in the dashboard. Pass as X-2ndOpinion-Key header or Bearer token. Best for API and MCP.
  • JWTReturned from /api/auth/login. Pass as Bearer token. Used by the CLI.