⌘K
Change language Switch ThemeSign In
Narrow Mode
Sub2API: A Guide to Building Your Own Claude Code Proxy =======================================================
Sub2API: A Guide to Building Your Own Claude Code Proxy =======================================================  ### 向阳乔木
@vista8
Sub2API自建Claude Code中转站,原来这么简单!
甚至能把OpenAI订阅转成Claude Code可用API。
- 服务器安装好 Redis 和 PostgreSQL,终端执行
安装后会有Web界面,一步步配置数据库、账户等信息。
- 账户管理->添加自己的OpenAI订阅、Gemini订阅等。
- 用户管理->给自己账户加足够的钱(否则用不了)
- API密钥-> 创建API key,导入CC Switch就能用。Show More
Mar 14, 2026, 2:13 AM View on X
9 Replies
10 Retweets
113 Likes
12.4K Views  向阳乔木 @vista8
One Sentence Summary
Learn how to use Sub2API to convert subscriptions from OpenAI and others into Claude Code-compatible APIs and set up your own proxy.
Summary
This tweet presents a practical technical solution for setting up a Claude Code API proxy using the Sub2API project. The author details the installation steps, including server environment configuration (Redis, PostgreSQL), script installation, web interface setup, and how to import OpenAI/Gemini subscriptions to generate API Keys usable with Claude Code. This offers a convenient path for developers looking to use non-native APIs with Claude Code.
AI Score
82
Influence Score 54
Published At Today
Language
Chinese
Tags
Sub2API
Claude Code
API Proxy
OpenAI
Developer Tools HomeArticlesPodcastsVideosTweets
Sub2API: A Guide to Building Your Own Claude Code Proxy |... ===============