OhMyGPT API
English
  • 中文
  • English
  • 日本語
OhMyGPT
OhMyGPT
English
  • 中文
  • English
  • 日本語
  1. Archive documents
  • Introduction to this site
  • Change log
  • OpenAI
    • Responses
      • Create model response
      • Get model response
      • Delete model response
      • Cancel response
      • List input items
    • Conversations
      • create conversation
      • Retrieve conversation
      • update conversation
      • delete conversation
      • Create items
      • list items
      • Retrieve item
      • Delete item
    • create completion
      POST
    • TTS text to speech
      POST
    • Embeddings
      POST
    • image generation
      POST
    • image editing
      POST
  • Store
    • List chat completions
      POST
    • Get chat completed
      POST
    • Deletion of chat completed
      POST
  • Claude
    • Anthropic native Completions enterprise commercial API
      POST
    • Anthropic native Messages API
      POST
    • Anthropic native Messages Token Count API
      POST
  • OAuth开放API
    • Introduction to Open OAuth API
    • User authorization page
      GET
    • Code display page
      GET
    • Apply for access_token
      POST
    • Read basic user information
      POST
    • Read user balance information
      POST
    • Charge user fees
      POST
    • Create a Stripe Checkout recharge order for the user
      POST
    • Create a Stripe Invoice recharge order for the user
      POST
    • Call other open APIs
      POST
    • Read user management token through OAuth Token
      POST
    • Update user management token through OAuth Token
      POST
  • other
    • search
      • Google Custom Search API
      • Google Search By Serper
    • Azure
      • Azure text-to-speech
      • Azure gets TTS voice list
  • Override rules
    • Create rules
    • Update rules
    • delete rule
    • Get rules
    • list rules
    • Batch enable/disable
    • Copy rules
    • test rules
    • Get statistics
    • Get restriction configuration
    • Check rule name
    • Batch delete
    • Export rules
    • Import rules
  • image generation
    • other
      • ND image generation API
    • Flux
      • Flux Schnell image generation
      • Flux Dev image generation
      • Flux Pro image generation
      • Flux Pro 1.1 image generation
      • Flux 1.1 Pro Ultura image generation
  • Storage service
    • File storage service
    • File upload
    • File information update
    • Delete files
    • User query (pagination)
    • User metadata query (by fileUinqueIds)
    • File download interface (Public file download)
    • File download interface (Private private file download)
    • Obtain public file metadata
  • API KEY management
    • Create new API Key
    • Modify API Key information
    • Query all API Keys of the user
    • Delete the specified API Key
    • Interface for querying user membership expiration date
    • User balance query interface
    • Query the current model magnification interface
  • Archive documents
    • Self-service invoicing system usage documentation
    • Telegram Bot usage documentation
    • Self-built Cloudflare Worker anti-generation tutorial
    • Claude Code forwarding service
    • CodeX forwarding service
    • Introduction to the new website
  • Model list
    GET
  1. Archive documents

Claude Code forwarding service

Introduction#

Recently, this site has launched a Claude Code forwarding service. The effect is the same as the official CC subscription. The bottom layer is the official Messages native API specially provided for Claude Code. Due to official restrictions, direct chat cannot be done, but if necessary, you can find a way to bypass the restrictions.
Advantages: No subscription required, pay-as-you-go, safe and trustworthy forwarding service, the price is 0.5% off the original price, enabling the freedom of Claude Code, and it can also be used for GitHub Action.
250717 is newly online and open, and the web-rev-series Claude reverse model is also being further actively maintained. However, it may still encounter instability caused by account closure, and is not recommended for online commercial services.

One-click installation tutorial (recommended)#

Type directly into the command line
npx omgvibe
You can quickly configure the environment.
Introduction: https://www.ohmygpt.com/cli-agent
Project code: https://github.com/DogeNet-LLC/omgvibe

Claude Code client manual configuration tutorial#

Set Claude Code JSON#

Edit ~/.claude/settings.json
The focus is on the env part of JSON, which focuses on the following three items:
env.ANTHROPIC_API_KEY is set to your OhMyGPT API Key
env.ANTHROPIC_BASE_URL is set to https://{anyOhMyGPT API Host}/api/v1/ai/openai/cc-omg/. If you are inside a wall, you can use a mirror host accessible within the wall.
Example:
{
  "env": {
    "DISABLE_TELEMETRY": "1",
    "OTEL_METRICS_EXPORTER": "otlp",
"ANTHROPIC_API_KEY": "Your OhMyGPT APIKey",
"ANTHROPIC_BASE_URL": "https://api.ohmygpt.com/api/v1/ai/openai/cc-omg/",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC":1
  },
  "includeCoAuthoredBy": false,
  "apiKeyHelper": "echo 'hello world'",
  "permissions": {
    "allow": [],
    "deny": []
  }
}

start up#

Enter claude to start claude:
1.
Choose a theme
image.png
2.
**Ask whether to use a custom APIKey. The default here is No but you need to select Yes: **
image.png
3.
Start having fun using it
image.png
image.png
image.png
If you encounter problems, you can provide feedback via email ( help@ohmygpt.com ) or website:
image.png

Claude Code GitHub Action configuration tutorial#

Official documentation:
https://docs.anthropic.com/en/docs/claude-code/github-actions#manual-setup
Set up GitHub Action Secret:
ANTHROPIC_BASE_URL: https://api.ohmygpt.com/api/v1/ai/openai/cc-omg/
ANTHROPIC_API_KEY: Your OhMyGPT API Key
Example .github/workflows/claude.yaml
Effect: After the setting is completed, you can directly @claude in issue/pr and let Claude complete the task,realizing issue-oriented programming
修改于 2025-10-15 08:07:31
上一页
Self-built Cloudflare Worker anti-generation tutorial
下一页
CodeX forwarding service
Built with