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
{
"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)
{
"mcpServers": {
"2ndopinion": {
"command": "npx",
"args": ["-y", "2ndopinion-cli", "mcp"]
}
}
}Run 2ndopinion login first to store a JWT locally.
Then restart your AI tool
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
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
CLI
Terminal-native experience with watch mode, interactive menus, and auto-fix.
1. Install globally
npm install -g 2ndopinion-cli
2. Create an account
2ndopinion signup
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 MarketplaceRun a Skill
Execute any skill via the API. Skills cost 1–20 credits per run. Creators earn 70%.
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-Keyheader orBearertoken. Best for API and MCP. - JWTReturned from
/api/auth/login. Pass asBearertoken. Used by the CLI.