# linweiyuan/go-chatgpt-api

一个尝试绕过 Cloudflare 来使用 ChatGPT 接口的程序

Repository: https://github.com/linweiyuan/go-chatgpt-api
Canonical: https://ross.abutalabs.com/products/go-chatgpt-api
Language: Go
License: MIT
License Family: permissive
Archived: true
Last push: 2024-03-20T13:50:19+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 91
- inputs: {"age_days": 1284, "days_push": 896, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1387, forks 407 (observed 2026-08-28T04:04:35.177052+00:00)

## What it is
A Go service that bypasses Cloudflare protection to access ChatGPT's unofficial web endpoints, exposing them as an HTTP API. It also offers a web-to-API imitation endpoint that lets access tokens be used as API keys with OpenAI-compatible clients.

## Use cases
- use ChatGPT web interface programmatically via API
- convert ChatGPT access token into an OpenAI-compatible API endpoint
- self-host a proxy for ChatGPT requests behind Cloudflare
- integrate ChatGPT into third-party clients that only support API keys
- query GPT-3.5 and GPT-4 conversations through a local server

## When to choose
- you need an OpenAI-compatible shim for ChatGPT web sessions (historical use)
- you want a self-hosted Docker service proxying ChatGPT endpoints

## When to avoid
- starting a new project today - the project is declared dead and endpoints no longer work
- you need official, supported OpenAI API access
- you require maintained software with active support

## Facets
- artifact type: service
- maturity: abandoned
- function: http-server, api-framework, proxy, chatbot, llm-inference
- domain: large-language-models, chatbots, apis, self-hosted, privacy
- platform: self-hosted, go
- tags: chatgpt, openai, cloudflare-bypass, web-to-api, reverse-proxy, access-token, unofficial-api, docker, linux, web-server

## Member repositories
- linweiyuan/go-chatgpt-api (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:35.177052+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:39:50.273313+00:00, confidence not recorded.
  - readme: https://github.com/linweiyuan/go-chatgpt-api (fetched 2026-08-28T04:04:35.177052+00:00, sha 6dc745cf01c5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
