{"id":50417756,"url":"https://github.com/rainoffallingstar/mypaw","last_synced_at":"2026-05-31T07:01:36.552Z","repository":{"id":357327601,"uuid":"1235078429","full_name":"rainoffallingstar/mypaw","owner":"rainoffallingstar","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-12T08:54:18.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-12T10:40:13.306Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rainoffallingstar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-11T01:51:06.000Z","updated_at":"2026-05-12T08:54:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rainoffallingstar/mypaw","commit_stats":null,"previous_names":["rainoffallingstar/mypaw"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/rainoffallingstar/mypaw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainoffallingstar%2Fmypaw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainoffallingstar%2Fmypaw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainoffallingstar%2Fmypaw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainoffallingstar%2Fmypaw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rainoffallingstar","download_url":"https://codeload.github.com/rainoffallingstar/mypaw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainoffallingstar%2Fmypaw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33722156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-31T07:01:35.755Z","updated_at":"2026-05-31T07:01:36.546Z","avatar_url":"https://github.com/rainoffallingstar.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: Oh My API\nemoji: 🐾\ncolorFrom: pink\ncolorTo: purple\nsdk: docker\npinned: true\nlicense: mit\n---\n\n\u003cdiv align=\"center\"\u003e\n\u003cbr/\u003e\n\n```\n ██████╗ ██╗  ██╗      ███╗   ███╗██╗   ██╗      █████╗ ██████╗ ██╗\n██╔═══██╗██║  ██║      ████╗ ████║╚██╗ ██╔╝     ██╔══██╗██╔══██╗██║\n██║   ██║███████║      ██╔████╔██║ ╚████╔╝      ███████║██████╔╝██║\n██║   ██║██╔══██║      ██║╚██╔╝██║  ╚██╔╝       ██╔══██║██╔═══╝ ██║\n╚██████╔╝██║  ██║      ██║ ╚═╝ ██║   ██║        ██║  ██║██║     ██║\n ╚═════╝ ╚═╝  ╚═╝      ╚═╝     ╚═╝   ╚═╝        ╚═╝  ╚═╝╚═╝     ╚═╝\n```\n\n**统一 AI API 代理网关**\n\n[![Version](https://img.shields.io/badge/CLIProxyAPI-v6.8.37-0f172a?style=flat-square\u0026labelColor=0f172a\u0026color=38bdf8)](.)\n[![SDK](https://img.shields.io/badge/SDK-Docker-0f172a?style=flat-square\u0026labelColor=0f172a\u0026color=6366f1)](.)\n[![Status](https://img.shields.io/badge/Status-Running-0f172a?style=flat-square\u0026labelColor=0f172a\u0026color=22c55e)](.)\n[![License](https://img.shields.io/badge/License-MIT-0f172a?style=flat-square\u0026labelColor=0f172a\u0026color=f59e0b)](.)\n\n\u003cbr/\u003e\n\n\u003e 一个运行在 HuggingFace Space 上的高性能 AI API 代理，\u003cbr/\u003e\n\u003e 统一接入 Claude · Gemini · OpenAI · Codex · Vertex AI\n\n\u003cbr/\u003e\n\n\u003c/div\u003e\n\n---\n\n## ⚡ 支持的模型\n\n| 提供商 | 支持模型 | 接入方式 |\n|--------|----------|----------|\n| 🟣 **Anthropic Claude** | Claude 4.5 / 4.6 全系列 | API Key |\n| 🔵 **Google Gemini** | Gemini 3.1 Pro / Flash | API Key |\n| 🟢 **OpenAI** | GPT-5.1 / GPT-5.2 | API Key |\n| 🟡 **Vertex AI** | Gemini on Vertex | 服务账号 |\n| ⚪ **OpenAI-compat** | 任意兼容 OpenAI 格式的服务 | API Key |\n\n---\n\n## 🚀 快速接入\n\n将你的 API Base URL 替换为本 Space 地址即可：\n\n```bash\n# 原始请求\ncurl https://api.anthropic.com/v1/messages ...\n\n# 替换为本代理\ncurl https://[user_name]-[space_name].hf.space/v1/messages \\\n  -H \"x-api-key: 你的访问密钥\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"model\": \"claude-4-6-sonnet\", \"max_tokens\": 1024, \"messages\": [{\"role\": \"user\", \"content\": \"Hello\"}]}'\n```\n\n### Python 示例\n\n```python\nimport anthropic\n\nclient = anthropic.Anthropic(\n    api_key=\"你的访问密钥\",\n    base_url=\"https://[user_name]-[space_name].hf.space\",\n)\n\nmessage = client.messages.create(\n    model=\"claude-4-6-sonnet\",\n    max_tokens=1024,\n    messages=[{\"role\": \"user\", \"content\": \"你好！\"}]\n)\nprint(message.content)\n```\n\n### OpenAI SDK 兼容\n\n```python\nfrom openai import OpenAI\n\nclient = OpenAI(\n    api_key=\"你的访问密钥\",\n    base_url=\"https://[user_name]-[space_name].hf.space/openai\",\n)\n\nresponse = client.chat.completions.create(\n    model=\"gpt-5.1\",\n    messages=[{\"role\": \"user\", \"content\": \"你好！\"}]\n)\n```\n\n---\n\n## 🏗️ 技术架构\n\n```\n┌─────────────────────────────────────────────────────┐\n│                HuggingFace Space                     │\n│                                                     │\n│   Client Request                                    │\n│        │                                            │\n│        ▼                                            │\n│   ┌─────────────┐                                   │\n│   │             │                                   │\n│   │ CLIProxyAPI │                                   │\n│   │  :7860      │                                   │\n│   │             │                                   │\n│   └──────┬──────┘                                   │\n│          │                                          │\n└──────────┼──────────────────────────────────────────┘\n           │\n    ┌──────┴───────┐\n    │              │\n    ▼              ▼\n Anthropic      Google\n Claude API     Gemini API\n```\n\n---\n\n## ⚙️ 部署配置\n\n### 必需环境变量\n\n在 HuggingFace Space **Settings → Secrets** 中配置：\n\n| 变量名 | 说明 | 示例 |\n|--------|------|------|\n| `MANAGEMENT_PASSWORD` | 管理后台密码 | `your-secure-password` |\n\n## 🔑 添加 API Key\n\n服务启动后，通过管理接口添加你的 API Key：\n\n```bash\n# 添加 Claude Key\ncurl -X POST https://[user_name]-[space_name].hf.space/management/clients \\\n  -H \"Authorization: Bearer $MANAGEMENT_PASSWORD\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"my-client\",\n    \"claude-keys\": [\"sk-ant-api03-xxxxx\"]\n  }'\n\n# 添加 Gemini Key  \ncurl -X POST https://[user_name]-[space_name].hf.space/management/clients \\\n  -H \"Authorization: Bearer $MANAGEMENT_PASSWORD\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"my-client\",\n    \"gemini-keys\": [\"AIzaSy-xxxxx\"]\n  }'\n```\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\u003cbr/\u003e\n\nBuilt with ❤️ · Powered by [CLIProxyAPI](https://github.com/eceasy/cli-proxy-api) · Hosted on [HuggingFace](https://huggingface.co)\n\n\u003cbr/\u003e\n\n\u003c/div\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainoffallingstar%2Fmypaw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frainoffallingstar%2Fmypaw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainoffallingstar%2Fmypaw/lists"}