ai-multi-provider
Multi-provider LLM orchestration system with intelligent routing, fallback chains, cost optimization, and automatic observability.
Skill by JimmyBlanquet
Chalk Labs
Need help deploying ai-multi-provider?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jimmyblanquet-ai-multi-provider
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ai-multi-provider
What's inside
- Skill name
ai-multi-provider- Description
- Multi-provider LLM orchestration system with intelligent routing, fallback chains, cost optimization, and automatic observability.
- License
- MIT
- Instructions
- 388 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (15)
- README.md
- SKILL.md
- client.ts · files/lib/ai/
- config.ts · files/lib/ai/
- fallback.ts · files/lib/ai/
- parse-claude-json.ts · files/lib/ai/helpers/
- anthropic.ts · files/lib/ai/providers/
- base.ts · files/lib/ai/providers/
- factory.ts · files/lib/ai/providers/
- index.ts · files/lib/ai/providers/
- mistral.ts · files/lib/ai/providers/
- openai.ts · files/lib/ai/providers/
- tracer.ts · files/lib/ai/
- install.sh
- client.test.ts · tests/
SKILL.md (first lines)
# AI Multi-Provider Skill **Version:** 1.0.0 **Category:** Core **Extracted from:** Production-tested in a real-world SaaS **Production-ready:** ✅ Yes ## Description Multi-provider LLM orchestration system with intelligent routing, fallback chains, cost optimization, and automatic observability. **Key Features:** - 🔄 **Multi-Provider Support**: Anthropic Claude, OpenAI GPT, Mistral AI - 💰 **Cost Optimization**: Task-based routing (Haiku for cheap tasks, Sonnet for quality) - 🛡️ **Resilience**: Automatic fallback chain with circuit breaker - 📊 **Observability**: Built-in cost tracking, latency monitoring, trace persistence - ⚙️ **Configurable**: Environment variable overrides for all settings - 🎯 **Type-Safe**: Full TypeScript support with Zod schema validation ## What This Skill Provides ### Core Components 1. **LLMClient** (`lib/ai/client.ts`) - Unified interface for all LLM providers - Task-based routing for cost optimization - Automatic fallback chain - Circuit breaker to prevent infinite retries - Timeout handling (30s default) 2. **Multi-Provider Support** (`lib/ai/providers/`) - **Anthropic**: Claude Opus/Sonnet/Haiku with prompt caching (90% cost savings) - **OpenAI**: GPT-4o/mini with native structured outputs - **Mistral**: Mistral Large/Small models - Extensible factory pattern for adding new providers 3. **Configuration System** (`lib/ai/config.ts`) - Task-to-provider mapping - Environment variable overrides - Fallback chain configuration - Retry and timeout settings 4. **Observability** (`lib/ai/tracer.ts`) - Automatic cost calculation (tokens × pricing) - Latency tracking - Trace persistence to Supabase (optional) - Error type detection 5. **Utilities** - JSON parsing with Claude-specific handling - Zod schema validation for structured outputs - Type-safe interfaces ## Installation ### 1. Run Installation Script ```bash cd skills/core/ai-multi-provider bash install.sh ``` This will: - Copy all AI files to your project - Install npm dependencies - Create environment variable template - Set up optional Supabase integration ### 2. Install Dependencies ```bash npm install @anthropic-ai/sdk openai zod # Optional providers npm install @mistralai/mistralai # Optional observability npm install @supabase/supabase-js ``` ### 3. Configure Environment Variables Create or update your `.env.local`: ```bash # Required: At least one provider ANTHROPIC_API_KEY=sk-ant-xxx OPENAI_API_KEY=sk-xxx # Optional MISTRAL_API_KEY=xxx # Optional # Optional: Override default provider LLM_PROVIDER=anthropic # Optional: Override per-task providers LLM_FAST_PROVIDER=anthropic/claude-haiku-4-5 LLM_QUALITY_PROVIDER=anthropic/claude-sonnet-4-5 LLM_EXTRACTION_PROVIDER=anthropic/claude-haiku-4-5 LLM_GENERATION_PROVIDER=anthropic/claude-sonnet-4-5 # Optional: Supabase for trace persistence NEXT_PUBLIC_SUPABASE_URL=https://xxx.supabase.co SUPABASE_SERVICE_ROLE_KEY=xxx ``` ### 4. Optional: Set Up Supabase Tracing If you want automatic cost/latency tracking: ```sql -- Run this migration in your Supabase project CREATE TABLE llm_traces ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), trace_id TEXT NOT NULL, operation TEXT NOT NULL, provider TEXT NOT NULL, model TEXT NOT NULL, tokens_input INTEGER NOT NULL, tokens_output INTEGER NOT NULL, cost DECIMAL(10, 6) NOT NULL, latency_ms INTEGER NOT NULL, status TEXT NOT NULL,
From JimmyBlanquet/project-forge, MIT.
More from JimmyBlanquet/project-forge
- 0.479score
ralph-agent-teams
JimmyBlanquet
Parallel implementation of Ralph++ PRD sub-stories using Claude Opus 4.6 Agent Teams.
SkillCFreshness: CClaude Code +9 - 0.476score
email-oauth-flows
JimmyBlanquet
Production-ready Gmail and Outlook OAuth integration for Next.js with Supabase.
SkillCFreshness: CClaude Code +9 - 0.476score
context-maximizer
JimmyBlanquet
Exploit the 1M token context (Opus 4.6 / Sonnet 4.6) for full codebase awareness in SpecKit.
SkillCFreshness: CClaude Code +9 - 0.476score
auth-supabase-complete
JimmyBlanquet
Production-ready Supabase authentication for Next.js 14+ with RLS patterns, session management, OAuth flows, and comprehensive testing.
SkillCFreshness: CClaude Code +9 - 0.474score
ralph-loop
JimmyBlanquet
Use when implementing features autonomously from a prd.json, spawning fresh Task agents per story with quality gates and atomic commits
SkillCFreshness: CClaude Code +9 - 0.474score
dev-pilot
JimmyBlanquet
Full autonomous pipeline orchestrator that loops over features.json and executes the complete development cycle for each feature: spec → plan → tasks →…
SkillCFreshness: CClaude Code +9 - 0.472score
effort-optimizer
JimmyBlanquet
Optimize API costs by adjusting thinking effort per task type.
SkillCFreshness: CClaude Code +9 - 0.471score
config-centralization
JimmyBlanquet
Type-safe, environment-aware configuration management for Next.js/TypeScript applications using a singleton pattern with runtime validation.
SkillCFreshness: CClaude Code +9 - 0.471score
logging-structured
JimmyBlanquet
Structured logging with typed contexts for Next.js applications.
SkillCFreshness: CClaude Code +9 - 0.471score
rate-limiting-persistent
JimmyBlanquet
Persistent rate limiting using PostgreSQL for atomic counters.
SkillCFreshness: CClaude Code +9 - 0.470score
speckit-archi-review
JimmyBlanquet
Run an architecture audit on the current project to detect drift, layer violations, ADR non-compliance, and technical debt.
SkillCFreshness: CClaude Code +9 - 0.469score
railway-integration
JimmyBlanquet
Railway deployment configuration for backend services and databases.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 2
- Last commit (this folder)
- May 10, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/JimmyBlanquet/project-forge
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from JimmyBlanquet
- 0.479score
ralph-agent-teams
JimmyBlanquet
Parallel implementation of Ralph++ PRD sub-stories using Claude Opus 4.6 Agent Teams.
SkillCFreshness: CClaude Code +9 - 0.476score
auth-supabase-complete
JimmyBlanquet
Production-ready Supabase authentication for Next.js 14+ with RLS patterns, session management, OAuth flows, and comprehensive testing.
SkillCFreshness: CClaude Code +9 - 0.476score
email-oauth-flows
JimmyBlanquet
Production-ready Gmail and Outlook OAuth integration for Next.js with Supabase.
SkillCFreshness: CClaude Code +9 - 0.476score
context-maximizer
JimmyBlanquet
Exploit the 1M token context (Opus 4.6 / Sonnet 4.6) for full codebase awareness in SpecKit.
SkillCFreshness: CClaude Code +9 - 0.474score
dev-pilot
JimmyBlanquet
Full autonomous pipeline orchestrator that loops over features.json and executes the complete development cycle for each feature: spec → plan → tasks →…
SkillCFreshness: CClaude Code +9 - 0.474score
ralph-loop
JimmyBlanquet
Use when implementing features autonomously from a prd.json, spawning fresh Task agents per story with quality gates and atomic commits
SkillCFreshness: CClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get ai-multi-provider running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
ai-multi-provider skill. Agent Mart. https://agentmart.dev/skills/jimmyblanquet-ai-multi-provider (last updated 2026-10-24)