# CCHP Documentation > CCHP (Claude Code Hub Plus) is an LLM gateway for teams. Admins connect upstream providers and set up billing and limits, and members use their own LLM keys to call models through AI tools such as Claude Code and Codex. Each link below points to the Markdown version of a docs page; the web page is the same URL without `.md`. All pages in one file: . Full-text search over these pages: `GET https://cch-plus.com/api/docs/search?q=&lang=en` returns JSON with the matching sections, their URLs and snippets. ## Introduction - [Introduction](https://cch-plus.com/en/docs/index.md): Documentation for CCHP covering installation and deployment, organization and provider management, operations settings, and how to connect Claude Code, Codex, and other AI tools to CCHP. ## Installation - [Installation overview](https://cch-plus.com/en/docs/installation.md): Learn which components make up a CCHP deployment, choose the installation method that fits you from Docker Compose, k3s / k8s, and binaries, and check the hardware requirements. - [Install with Docker Compose](https://cch-plus.com/en/docs/installation/docker-compose.md): Install CCHP on a Linux server with Docker Compose, set up HTTPS, complete the first-run setup wizard, and learn how to upgrade, back up, and uninstall. - [Install on k3s / k8s](https://cch-plus.com/en/docs/installation/kubernetes.md): Deploy CCHP on a single k3s node with 11 manifest files, covering how to save the files, fill in your domains and secrets, deploy and complete the setup wizard, and back up, upgrade, and uninstall. - [Install from binaries](https://cch-plus.com/en/docs/installation/binary.md): Run CCHP with systemd on one Linux host: prepare PostgreSQL and Dragonfly, extract the binaries, write the configuration, and start the services, then set up a reverse proxy, PgDog, and upgrades. - [Reduced-security deployment (LAN testing)](https://cch-plus.com/en/docs/installation/lan-testing.md): Turn on CCH_INSECURE_DEPLOYMENT to test CCHP over plain http on a LAN, with providers on private addresses, and learn exactly what it turns off, how to set it for Docker Compose, k3s / k8s and binaries, and what stops working in the browser. - [Storage, observability, and platform operations](https://cch-plus.com/en/docs/installation/ops-and-storage.md): Day-2 operations for self-hosted CCHP deployments—S3 default object storage and migration, request archiving with Langfuse/S3 export, task result storage, internal Prometheus metrics ports, PostgreSQL RLS, live cron scheduling, CPU/PGO profiling, database retention, CC Hub import, and Watchtower auto-updates. ## CLI (cchp) - [CLI (cchp)](https://cch-plus.com/en/docs/cli.md): Install and use cchp, the official command-line tool for managing CCHP servers, automating control-plane workflows safely, and reading or searching the CCHP documentation from your terminal or AI coding agents. ## Organizations and teams - [Organizations vs. teams](https://cch-plus.com/en/docs/organizations.md): Learn how the platform, organizations, teams, and users relate in CCHP, which settings each organization keeps separately, which ones you set on teams, and what each role can do. - [Manage organizations](https://cch-plus.com/en/docs/organizations/organizations.md): How a platform super admin creates organizations and sub-organizations, reorganizes the organization tree, sets the default organization, and suspends or reactivates organizations, and how an organization admin changes their organization's settings. - [Manage teams](https://cch-plus.com/en/docs/organizations/teams.md): Create teams and sub-teams in an organization, add members and assign team roles, and set a team's multiplier, available provider groups, limits, and allowed clients. - [Manage users](https://cch-plus.com/en/docs/organizations/users.md): Invite users or create accounts directly, assign members to teams, change organization roles, set expiry dates and limits, change a member's email or password, and suspend or remove members. - [Model management and pricing](https://cch-plus.com/en/docs/organizations/models.md): View model price statuses, reference prices, folded aliases, and peak/off-peak billing in Model Management, price models through Pricing source or organization copies, and check unpriced models in price table import results. - [Limits on every level and postpaid organizations](https://cch-plus.com/en/docs/organizations/limits.md): Learn how the spend limits of LLM keys, users, teams, and organizations are held together for every request, how usage counts towards the levels above, who sets each level, and how postpaid organizations are billed. - [Default organization and invite codes](https://cch-plus.com/en/docs/organizations/invitations.md): Turn on sign-up and set the default organization that new users join automatically, generate organization and team invite codes, approve join requests, revoke invite codes, and learn how users join an organization with an invite code. - [Customize the sidebar](https://cch-plus.com/en/docs/organizations/sidebar.md): Hide or move the console sidebar's built-in entries and groups, change icons, and add link entries that open a URL or a console page, or embedded page entries that open inside the console. - [Permissions and custom roles](https://cch-plus.com/en/docs/organizations/permissions.md): Learn how CCHP's built-in roles and privilege ranks work, create and maintain custom organization roles, add or remove members directly in role details, control whether organization admins can view members' request content, and use the System permission center and Identity Diagnostics to repair drift. - [Audit logs and finance events](https://cch-plus.com/en/docs/organizations/audit-finance.md): Search and stream platform and organization audit logs, investigate sensitive actions across system and tenant scopes, and reconcile top-ups, package purchases, redeem codes, and refunds in Finance Events. ## Providers - [Providers and provider groups](https://cch-plus.com/en/docs/providers.md): Learn how providers, endpoints, provider keys, and provider groups relate to each other, and how a user's request reaches the upstream through a provider group. - [Create a provider](https://cch-plus.com/en/docs/providers/create-provider.md): Create a provider in Provider Management, complete basic settings such as the top-up ratio on its details page, and then add endpoints and provider keys to it and add them to provider groups. - [Provider endpoints](https://cch-plus.com/en/docs/providers/endpoints.md): Add endpoints to a provider by entering the upstream's Base URL and selecting request formats, and learn how several endpoints take part in routing, plus endpoint status, network settings, and reachability checks. - [Provider keys](https://cch-plus.com/en/docs/providers/keys.md): Add an upstream API key to a provider and set its model whitelist and provider groups, adjust the cost multiplier, priority, and weight, and learn about disabling, deleting, automatic cooldown, and balance checks. - [Network proxies](https://cch-plus.com/en/docs/providers/network-proxies.md): Send CCHP's outbound requests through HTTP, HTTPS, SOCKS5, or SOCKS5h proxies — set the global proxy, give providers or provider keys their own proxy group, and learn what the gateway does when a proxy is unavailable. - [Provider groups](https://cch-plus.com/en/docs/providers/groups.md): Create provider groups and add provider keys to them, set group multipliers and member billing multipliers, restrict the groups that organizations and teams can use, and learn how members' LLM keys choose groups. - [Group routing strategies](https://cch-plus.com/en/docs/providers/routing-strategy.md): Learn about the four routing strategies for provider groups and the default Price priority strategy, change a group's routing strategy, and learn how the gateway retries and switches provider keys after a request fails. - [Provider cost multipliers vs. user billing multipliers](https://cch-plus.com/en/docs/providers/multipliers.md): Learn which multipliers are used only for routing and cost statistics and which count toward the user's bill, how each kind is multiplied together, and where to set them in the console. - [Multimodal endpoints, Realtime, and cross-protocol translation](https://cch-plus.com/en/docs/providers/multimodal-protocols.md): Learn about CCHP's pairwise cross-protocol translation across all endpoint families, OpenAI Responses WebSocket mode, Realtime voice and SIP, async image/video/3D tasks and callbacks, Message Batches, Anthropic Files, and Azure/AWS upstream credentials. - [Gateway web search](https://cch-plus.com/en/docs/providers/web-search.md): Connect 11 search provider types including Exa, Tavily, Brave, and SearXNG in Provider Management, and configure web search takeover priority, domain filtering, page fetch, and call limits per provider group. ## Operations - [Operations settings](https://cch-plus.com/en/docs/operations.md): Learn about the operations features that a platform super admin configures for the whole platform, including online payments, packages, redeem codes, third-party sign-in, content moderation, client access control, daily usage reports, upstream balances, and management API tokens. - [Set up payment channels](https://cch-plus.com/en/docs/operations/payment-channels.md): Connect payment gateways such as Stripe, Alipay, and WeChat Pay in the operations settings, configure and test the callback URLs, and let users top up and buy packages online in their wallet. - [Set up login providers](https://cch-plus.com/en/docs/operations/login-providers.md): Set the registration toggle, two-step verification, and session lengths, add GitHub, Google, Linux.do, or custom OIDC third-party sign-in to the login page, and learn about human verification and Enterprise SSO. - [Set up packages](https://cch-plus.com/en/docs/operations/plans.md): Create usage packages and time packages in the operations settings, set their prices, credit, purchase rules, allowed scope, eligible buyers, dedicated prices, and override rules, control whether a package is listed, and learn how users buy and renew packages in their wallet. - [Set up redeem codes](https://cch-plus.com/en/docs/operations/redeem-codes.md): Generate credit or package redeem codes in bulk in Operations Settings, limit who can redeem them and how many each person can redeem, disable or revoke codes, and learn how users redeem codes in their wallet and where redemptions are recorded. - [Prompt safety and content moderation](https://cch-plus.com/en/docs/operations/content-safety.md): Check prompts before requests are forwarded with sensitive-word regex rules, decision models, and blocking thresholds, redact requests with the privacy filter, and view blocked requests, statistics, and cooldowns on the Content Safety page. - [Client access control](https://cch-plus.com/en/docs/operations/client-access.md): Identify AI clients calling CCHP with platform-level client definitions, and tighten client permissions layer by layer across three independent evaluation chains (caller, provider group, and provider candidate), with rule locks, revision history, and self-service API key tightening. - [Upstream ratios and balances](https://cch-plus.com/en/docs/operations/upstream-balance.md): Have CCHP read upstream account balances and group ratios on a schedule: pause provider keys automatically when the balance is low, write group ratios into the cost multiplier, and send alerts when a provider's balance falls below the alert line. - [Create a management token](https://cch-plus.com/en/docs/operations/management-tokens.md): Create a management API token in Account & Security, set its permissions and expiration, use it to call the CCHP management API from scripts or external systems, and rotate or revoke it when needed. - [Request and response overrides](https://cch-plus.com/en/docs/operations/overrides.md): Conditionally rewrite request headers, model names, paths, JSON bodies, and responses across ten scopes from Global to LLM keys, with rule locks, built-in presets, template variables, a rule validator, and hot-reloadable override body size limits. - [Notifications and daily usage reports](https://cch-plus.com/en/docs/operations/notifications.md): Configure alert thresholds, email notifications, and 9 webhook/messaging channels, subscribe to all alert events across 7 domains, and schedule daily organization and platform usage reports. - [Privacy filter and bidirectional obfuscation](https://cch-plus.com/en/docs/operations/privacy-filter.md): Automatically detect and replace emails, phone numbers, ID numbers, and API keys before requests go upstream, with bidirectional format-preserving obfuscation and lossless restoration, observability and archive retention policies, custom rules, live testing, and a high-availability local encrypted cache. - [System security, visitor IP, and human verification](https://cch-plus.com/en/docs/operations/security.md): Diagnose reverse-proxy and Cloudflare CDN chains with the client IP inspector, manage the built-in auto-updating IP location database, configure automatic IP blocking (20028) and threat intelligence, and configure Cap PoW and cloud human verification per action. - [Transactional email, custom domains, and site branding](https://cch-plus.com/en/docs/operations/mail-and-domains.md): Configure SMTP delivery and readiness checks, manage 28 email scenarios with 5-language dark-mode templates, bind global/organization/team custom domains with cross-domain relay sign-in, and customize site branding and legal pages. - [Feature flags](https://cch-plus.com/en/docs/operations/feature-flags.md): Enable or disable Beta and experimental features from the console, review all default-off flags, 5-second cluster-wide propagation, audited change reasons, one-click rollback, plus maintenance mode and console display settings. - [Plugins, error rules, and model safety](https://cch-plus.com/en/docs/operations/plugins-and-errors.md): Install and manage extension plugins in System Management, configure custom upstream error matching and failover rules, and run 32 built-in plus custom model safety detection rules to spot model watering or MITM poisoning. - [CLI clients and Device Flow](https://cch-plus.com/en/docs/operations/identity-apps.md): Register external CLI clients under Sign-in Methods, manage their enabled state and permission scopes, and understand OAuth 2.0 Device Authorization Flow browser approval and localhost development support. ## User engagement - [Daily check-in](https://cch-plus.com/en/docs/engagement/check-in.md): Turn on daily check-in and set the reward amount, reward distribution, and check-in day boundary time zone, set it separately for an organization or team, view and revoke granted check-in rewards, and learn how users check in from their wallet. - [Discount rules](https://cch-plus.com/en/docs/engagement/discounts.md): Set up discounts that apply under conditions in Activities, learn how several discounts multiply from top to bottom, when "Stop matching lower rules" stops the multiplying, and how discounts apply to API usage and package prices. - [Flash campaigns](https://cch-plus.com/en/docs/engagement/flash-campaigns.md): For a set period, add campaign discounts, temporarily list or unlist packages and top-up tiers, switch to different check-in settings, and notify users in the console and by marketing email before the campaign starts. - [Referral rewards](https://cch-plus.com/en/docs/engagement/referral.md): Set up referral links and reward rules, set separate rules for an organization or team, assign referral suffixes to specific users, and learn how users generate referral links, bind to an inviter, and view referral rewards. - [Compensation and clawbacks](https://cch-plus.com/en/docs/engagement/compensation.md): Revoke or claw back redeem codes, packages, check-in rewards, top-up bonuses, and referral rewards that members received, grant compensation to members, refund or claw back the costs of past requests and top-ups by percentage, and learn how these adjustments appear in users' wallets. - [System announcements](https://cch-plus.com/en/docs/engagement/announcements.md): Platform super admins create, schedule, edit, and delete system announcements, email selected users when an announcement is published, and view read stats. Users read announcements in the sign-in popup, the top bar notifications, and the announcements page. ## User guide - [Create an LLM key](https://cch-plus.com/en/docs/guide/llm-keys.md): Create an LLM key in API Keys and choose a routing strategy, restrict the models the key can call and set limits, copy the full key or view it again, disable or revoke the key, and check its usage in Call Records. - [Provider groups and your final price](https://cch-plus.com/en/docs/guide/pricing.md): Learn how a request's cost is calculated from the model's base price and billing multipliers, estimate unit prices in Models & Pricing, check the charge for each request in Call Records, and understand the billing unit your balance uses. - [View available models](https://cch-plus.com/en/docs/guide/models.md): Find the models you can call in Models & Pricing, compare prices across provider groups, and copy the model ID. Or call the gateway's /v1/models with an LLM key to get the list of models that key can call right now. - [Check service status](https://cch-plus.com/en/docs/guide/status.md): See the success rate, time to first token, and output speed of the most-used models in each provider group on the status page, and learn what the colors and overall status mean and what to do when the success rate drops. Platform super admins can turn off the status page or choose which groups are public. - [Choose an AI tool to connect to CCHP](https://cch-plus.com/en/docs/guide/clients.md): Choose Claude Code, Codex, OpenCode, OpenClaw, or Hermes Agent for installation, configuration, and verification instructions. - [Connect with a configuration manager](https://cch-plus.com/en/docs/guide/configuration-tools.md): Add CCHP as a custom provider in Magpie or CC Switch and configure your AI clients with the gateway, key, and models. - [Connect Claude Code](https://cch-plus.com/en/docs/guide/claude-code.md): Install Claude Code, connect it to CCHP with a configuration manager or by editing its config file manually, and verify the connection. - [Connect Codex](https://cch-plus.com/en/docs/guide/codex.md): Install the Codex CLI, connect it to CCHP with a configuration manager or by editing its config file manually, and verify the connection. - [Connect OpenCode](https://cch-plus.com/en/docs/guide/opencode.md): Install OpenCode on macOS, Linux, or Windows, add CCHP as a custom provider in the config file, call models on the CCHP gateway in the OpenAI format with your LLM key, and confirm in Call Records that the requests reached CCHP. - [Connect OpenClaw](https://cch-plus.com/en/docs/guide/openclaw.md): Download and install OpenClaw, complete the initial setup, add CCHP as a custom model provider in the config file, choose the OpenAI or Anthropic request format, authenticate with an LLM key and set the default model, then test the connection and confirm the requests in Call Records. - [Connect Hermes Agent](https://cch-plus.com/en/docs/guide/hermes-agent.md): Install Hermes Agent on macOS, Linux, or Windows and connect it to the CCHP gateway with an LLM key. Add a custom endpoint with the hermes model wizard or the config file, enter the model ID and context length, and verify the connection. - [Request logs, tracing, and leaderboards](https://cch-plus.com/en/docs/guide/request-logs.md): Monitor live and historical calls in Request Logs, filter by Session ID, IP geolocation, and quick filters, inspect routing retries, overrides, and client access rejections in the decision chain and trace view, verify list prices at settlement, and analyze usage across five leaderboards. - [Account security, two-step verification, and sessions](https://cch-plus.com/en/docs/guide/account-security.md): Configure your password, TOTP authenticator, recovery codes, and passkeys in Account & Security, understand step-up verification, manage active sessions and paginated GeoIP sign-in history, and link external accounts or bind an inviter. - [Wallet, top-ups, and billing](https://cch-plus.com/en/docs/guide/wallet-and-billing.md): Check your personal balance, postpaid organization credit, and estimated days left in Wallet, read active packages, deduction order, and spend forecast charts, top up online with QR codes, buy or renew packages, redeem codes in bulk, and reconcile payment and referral records. ## Reference - [Data Sources & Acknowledgements](https://cch-plus.com/en/docs/data-sources.md): Public data sources aggregated by the CCHP cloud pricing table, with licensing and attribution details. - [CCHP Contributor License Agreement](https://cch-plus.com/en/docs/cla.md): This CCHP Contributor License Agreement (the “Agreement”) is a legally binding agreement between the person or entity identified as the Project Owner in the Acceptance Record and the person or entity identified as the Contributor in the Acceptance Record.