perplexity-multi-env-setup

Featured

Configure Perplexity Sonar API across development, staging, and production environments. Use when setting up multi-environment search integrations, managing API keys per environment, or controlling cost through model routing by env. Trigger with phrases like "perplexity environments", "perplexity staging", "perplexity dev prod", "perplexity environment config".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Perplexity Multi-Environment Setup ## Overview Configure Perplexity Sonar API across dev/staging/prod. Key decisions per environment: which models are allowed (sonar vs sonar-pro), rate limits, and cost caps. All environments use the same base URL (`https://api.perplexity.ai`) but different API keys with different budget limits. ## Environment Strategy | Environment | Model | Rate Limit | Key Source | Monthly Budget | |-------------|-------|-----------|------------|----------------| | Development | `sonar` only | 5 RPM self-imposed | `.env.local` | $10 | | Staging | `sonar` only | 20 RPM | CI secrets | $50 | | Production | `sonar` + `sonar-pro` | 50 RPM | Secret manager | $500+ | ## Prerequisites - Separate Perplexity API keys per environment - `openai` package installed - Secret management (env files for dev, vault/KMS for prod) ## Instructions ### Step 1: Configuration Structure ``` config/ perplexity/ base.ts # OpenAI client + base URL development.ts # Dev: sonar only, low limits staging.ts # Staging: sonar only, moderate limits production.ts # Prod: full model access index.ts # Environment resolver ``` ### Step 2: Base Configuration ```typescript // config/perplexity/base.ts import OpenAI from "openai"; export const PERPLEXITY_BASE_URL = "https://api.perplexity.ai"; export function createPerplexityClient(apiKey: string): OpenAI { if (!apiKey) throw new Error("Perplexity API key is required"); if (!apiKe...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

perplexity-enterprise-rbac

Configure Perplexity API key scoping, per-team model access, cost controls, and search domain restrictions for enterprise deployments. Trigger with phrases like "perplexity enterprise", "perplexity RBAC", "perplexity team access", "perplexity roles", "perplexity permissions".

2,266 Updated today
jeremylongshore
AI & Automation Featured

perplexity-install-auth

Install and configure Perplexity Sonar API authentication. Use when setting up a new Perplexity integration, configuring API keys, or initializing the OpenAI-compatible client for Perplexity. Trigger with phrases like "install perplexity", "setup perplexity", "perplexity auth", "configure perplexity API key", "perplexity sonar setup".

2,266 Updated today
jeremylongshore
AI & Automation Featured

perplexity-local-dev-loop

Configure Perplexity local development with mocking, testing, and hot reload. Use when setting up a development environment, configuring test workflows, or establishing a fast iteration cycle with Perplexity Sonar API. Trigger with phrases like "perplexity dev setup", "perplexity local development", "perplexity dev environment", "develop with perplexity", "mock perplexity".

2,266 Updated today
jeremylongshore
AI & Automation Featured

mistral-multi-env-setup

Configure Mistral AI across development, staging, and production environments. Use when setting up multi-environment deployments, configuring per-environment secrets, or implementing environment-specific Mistral AI configurations. Trigger with phrases like "mistral environments", "mistral staging", "mistral dev prod", "mistral environment setup".

2,266 Updated today
jeremylongshore
AI & Automation Featured

apollo-multi-env-setup

Configure Apollo.io multi-environment setup. Use when setting up development, staging, and production environments, or managing multiple Apollo configurations. Trigger with phrases like "apollo environments", "apollo staging", "apollo dev prod", "apollo multi-tenant", "apollo env config".

2,266 Updated today
jeremylongshore