Cnb2api — AI skill for Claude Code
Turn CNB cloud-workspace in-network AI into production OpenAI & Anthropic (Claude Code) APIs.
How to install Cnb2api
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open dengyie/cnb2api and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cnb2api does
Turn CNB cloud-workspace in-network AI into production OpenAI & Anthropic (Claude Code) APIs. Zero deps, v5.2 self-healing HA, quota CLI.
Alternatives in AI
- WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
- Anthropic SDK TypeScript — Access to Anthropic's safety-first language model APIs in TypeScript 2.1k ★
- onWatch — Open-source Go CLI that tracks AI API quota usage across 7 providers (Synthetic, Z.ai, Anthropic, Codex, GitHu 397 ★
README
cnb2api
**Turn CNB Cloud Workspace In-Network AI into a Production-Ready API Gateway**
**Get Up to 200M Free DeepSeek Tokens Monthly · Zero External Dependencies · 7×24h Self-Healing HA**
*OpenAI + Anthropic Dual Protocols · Zero-Config Claude Code Direct Connect · v5.2 Architecture · Terminal Quota Dashboard*
[-10a37f?style=flat&logo=deepseek)](#quota-calc) [](https://github.com/dengyie/cnb2api/actions/workflows/test.yml)   [](LICENSE)
English · [简体中文](README.zh-CN.md)
**TL;DR**: CNB grants verified orgs **500 ~ 1,166 AI Credits** and **1,600 compute core-hours** monthly for free. Combined with CNB's 30x prompt caching discount, you can enjoy **up to ~200 Million DeepSeek Tokens per month for free**! However, the AI completion endpoint is strictly locked inside the workspace intranet with ephemeral pipeline tokens, while containers are recycled daily. **cnb2api** runs inside the workspace, converts it into a standard public API with zero dependencies, and leverages a **v5.2 dual-watchdog self-healing architecture** to deliver permanent domain access and 7×24 HA.
Why cnb2api?
| Dimension | cnb2api (This Project) | Community Web NPC Scrapers | Direct Public Calling |
|---|---|---|---|
| Monthly Free Quota | Up to ~200M DeepSeek Tokens (1,166 Credits + Prompt Cache) | Unstable, easily rate-limited or banned | 0 (Blocked by network isolation) |
| Access Route | Official Workspace Intranet Endpoint | Web frontend anonymous NPC chat | Official Public Endpoint |
| Compliance & Account | 100% Compliant, consumes your org's quota | Violates ToS, s |
Related Skills
Amux
Bidirectional LLM API adapter with IR pattern. Seamlessly convert between OpenAI, Anthropic, DeepSeek, and mor
Aigateway
Protocol-faithful, multi-provider AI gateway for OpenAI, Anthropic, Gemini, and OpenAI-compatible APIs — nativ
Residoo
Find secrets your AI coding agent leaked to disk. Free, MIT, zero deps, zero network calls. Beat TruffleHog an
Chrome Bridge
CLI for browser automation: let any AI agent drive your real Chrome — logged-in tabs, zero deps, no relaunch,
Itwillsync
Sync any terminal-based AI coding agent to your phone. Claude Code, Aider, Codex. Local network, zero cloud.
AI Quota Meter
Claude Code knows how much quota you have left on nearly every turn, and only shows you if you ask. This puts
Related Agents
Grok Agent 01
ONLY job: find free or freemium AI token/API plans (OpenAI-compatible, Anthropic, Google, open routers, studen
LLM Integrator
LLM integration specialist who connects to OpenAI/Anthropic/Ollama APIs, designs prompt templates, implements
Langchain Prompt Designer
Especialista en system prompts de agentes LangChain (LLM nodes en N8N, OpenAI Agents, Anthropic, etc.). Diseña