ccflare

by snipeshipVerified

The ultimate CC proxy

1,039
Stars
144
Forks
TypeScript
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/snipeship/ccflare

Getting Started

Guides for using skills like ccflare.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

ccflare 🛡️

A multi-provider native proxy for Anthropic and OpenAI.

ccflare routes each provider by URL prefix, load-balances across multiple accounts, and keeps full request history, rate-limit state, and usage analytics without translating provider payloads.

ccflare Dashboard

Why ccflare?

  • Native passthrough — Anthropic stays Anthropic, OpenAI stays OpenAI
  • Multi-provider routing — route by /v1/{provider}/*
  • Compatibility routes — route by /v1/ccflare/* with family-prefixed models
  • Account failover — retry another account when one provider account is rate limited
  • Built-in observability — dashboard, request history, analytics, logs, and health endpoints
  • Flexible auth — API key and OAuth account support

Quick start

git clone https://github.com/snipeship/ccflare
cd ccflare
bun install

# Start the server + dashboard on http://localhost:8080
bun run start

# Or launch the TUI, which can also start the server
bun run ccflare

Verify the server is up:

curl http://localhost:8080/health

How routing works

ccflare proxies requests by provider prefix:

  • http://localhost:8080/v1/anthropic/*
  • http://localhost:8080/v1/openai/*
  • http://localhost:8080/v1/ccflare/*

Examples:

  • /v1/anthropic/v1/messageshttps://api.anthropic.com/v1/messages
  • /v1/openai/chat/completionshttps://api.openai.com/v1/chat/completions
  • /v1/openai/responseshttps://api.openai.com/v1/responses

The /v1/{provider} prefix is stripped exactly once before forwarding upstream.

Compatibility routes keep the client-facing schema but select a provider family from the model prefix:

  • openai/<model-id> → prefers codex, then openai
  • anthropic/<model-id> → prefers claude-code, then anthropic

Examples:

  • /v1/ccflare/openai/chat/completions with "model":"openai/gpt-5.4"
  • /v1/ccflare/openai/responses with "model":"anthropic/claude-sonnet-4"
  • /v1/ccflare/anthropic/messages with "model":"openai/gpt-4o-mini"

Account setup

API key accounts

Add accounts through the management API:

curl -X POST http://localhost:8080/api/accounts \
  -H "content-type: application/json" \
  -d '{
    "name": "anthropic-main",
    "provider": "anthropic",
    "auth_method": "api_key",
    "api_key": "sk-ant-..."
  }'

curl -X POST http://localhost:8080/api/accounts \
  -H "content-type: application/json" \
  -d '{
    "name": "openai-main",
    "provider": "openai",
    "auth_method": "api_key",
    "api_key": "sk-openai-..."
  }'

OAuth accounts

Use the CLI/TUI for interactive OAuth setup:

# Claude Code OAuth
bun run ccflare --add-account work --provider claude-code

# Codex OAuth
bun run ccflare --add-account codex --provider codex

The management API also exposes provider-specific auth endpoints:

  • POST /api/auth/anthropic/init
  • POST /api/auth/anthropic/complete
  • POST /api/auth/openai/init
  • POST /api/auth/openai/complete

Provider configuration

Anthropic clients

Point Anthropic SDKs or curl at the Anthropic-prefixed base URL:

export ANTHROPIC_BASE_URL=http://localhost:8080/v1/anthropic

OpenAI clients

Point OpenAI-compatible clients at the OpenAI-prefixed base URL:

export OPENAI_BASE_URL=http://localhost:8080/v1/openai

You can configure both providers at the same time and ccflare will keep account selection isolated per provider.

Example usage

Anthropic example

curl -X POST http://localhost:8080/v1/anthropic/v1/messages \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-3-7-sonnet",
    "max_tokens": 128,
    "messages": [
      { "role": "user", "content": "Say hello from ccflare." }
    ]
  }'

OpenAI chat completions example

curl -X POST http://localhost:8080/v1/openai/chat/completions \
  -H "content-type: application/json" \
  -d '{
    "model": "gpt-4o-mini",
    "messages": [
      { "role": "user", "content": "Say hello from ccflare." }
    ]
  }'

OpenAI Responses API example

curl -X POST http://localhost:8080/v1/openai/responses \
  -H "content-type: application/json" \
  -d '{
    "model": "gpt-4o",
    "input": "Summarize why provider-prefixed routing is useful."
}'

ccflare compatibility example

curl -X POST http://localhost:8080/v1/ccflare/openai/chat/completions \
  -H "content-type: application/json" \
  -d '{
    "model": "anthropic/claude-sonnet-4",
    "messages": [
      { "role": "user", "content": "Say hello from the compatibility route." }
    ]
  }'

Management API

Key endpoints:

  • GET /health — status, account count, strategy, supported providers
  • GET /api/accounts — list accounts
  • POST /api/accounts — create an account
  • PATCH /api/accounts/:id — update an account (rename, change base_url)
  • DELETE /api/accounts/:id — remove an account
  • POST /api/accounts/:id/pause / resume — exclude or restore an account
  • POST /api/accounts/:id/rename — rename an account
  • GET /api/requests — recent request summaries
  • GET /api/requests/detail — detailed request info with payloads
  • GET /api/requests/stream — live request stream via SSE
  • GET /api/analytics — aggregated analytics
  • GET /api/stats — usage and performance stats
  • POST /api/stats/reset — reset usage statistics
  • GET /api/logs/stream — live server logs via SSE
  • GET /api/logs/history — historical log entries
  • GET /api/config — current configuration
  • GET /api/config/strategy — current load balancing strategy
  • POST /api/config/strategy — update load balancing strategy
  • GET /api/strategies — list available strategies
  • GET /api/config/retention — data retention settings
  • POST /api/config/retention — update data retention settings
  • POST /api/maintenance/cleanup — run data cleanup
  • POST /api/maintenance/compact — compact the database

UI and developer tools

  • Dashboard: http://localhost:8080
  • TUI: bun run ccflare
  • Server only: bun run start

Requirements

  • Bun >= 1.2.8
  • Anthropic and/or OpenAI credentials

Documentation

Additional repo docs live in docs/:

License

MIT — see LICENSE.

Frequently Asked Questions

What is ccflare?

ccflare is an open-source api integration skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by snipeship. The ultimate CC proxy. It has 1,039 GitHub stars.

Is ccflare safe to use?

Yes. ccflare passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install ccflare?

Clone the repository with "git clone https://github.com/snipeship/ccflare" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is ccflare written in?

ccflare is primarily written in TypeScript. It is open-source under snipeship on GitHub, so you can review or fork the full source.

Are there alternatives to ccflare?

Yes. SkillsLLM lists many other API Integration skills you can browse and compare side by side. Open the API Integration category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ccflare against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

CLIProxyAPI

by router-for-me

Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini 3.1 Pro, GPT 5.6 Series, Grok 4.5, Claude model through API

48,3767,452Go
API Integration
View details

sub2api

by Wei-Shaw

Sub2API 一站式开源中转服务,让 Claude、Openai 、Gemini、Grok订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。

38,8308,041Go
API Integration
View details

claude-code-hub

by ding113

一个现代化的 Claude Code & Codex API 代理服务,提供智能负载均衡、用户管理和使用统计功能。

3,328387TypeScript
API Integration
View details

cc-gateway

by motiful

AI API identity gateway — reverse proxy that normalizes device fingerprints and telemetry for privacy-preserving API proxying

3,013501TypeScript
API Integration
View details

octopus

by bestruirui

One Hub All LLMs For You | 为个人打造的 LLM API 聚合网关

2,483394TypeScript
API Integration
View details

MIXAPI

by aiprodcoder

大模型API网关-全新AI大模型接口管理与API聚合分发系统 , 支持将多种大模型转换成统一的OpenAI兼容接口,Claude接口,Gemini接口,可供个人或者企业内部大模型API 统一管理和渠道分发使用(key管理与二次分发),支持国际国内所有主流大模型,gemini,claude,qwen3,kimi-k2,豆包等,提供单可执行文件, docker镜像,一键部署,开箱即用,完全开源,自主可控!本项目基于New-API和One-API,整合了NewAPI,OneAPI所有功能及众多第三方插件为一身,功能超强!

904270Go
API Integration
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details