dengyie

Cnb2api — AI skill for Claude Code

AI community

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

  • J Space Cognition Suite V3.7 — J-Space Cognition Suite V3.7 - AI cognitive-enhancement Skills based on Anthropic's J-space global workspace r 3k ★
  • 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 ★

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*

[![Tokens](https://img.shields.io/badge/DeepSeek%20Tokens-Up%20to%20200M%2Fmo%20(Free)-10a37f?style=flat&logo=deepseek)](#quota-calc) [![test](https://github.com/dengyie/cnb2api/actions/workflows/test.yml/badge.svg)](https://github.com/dengyie/cnb2api/actions/workflows/test.yml) ![node](https://img.shields.io/badge/node-%E2%89%A522-brightgreen) ![dependencies](https://img.shields.io/badge/dependencies-0-success) [![license](https://img.shields.io/badge/license-MIT-blue)](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