forked from DouDOU-start/airgate-claude
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.yaml
More file actions
212 lines (211 loc) · 5.52 KB
/
Copy pathplugin.yaml
File metadata and controls
212 lines (211 loc) · 5.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# 本文件由 backend/cmd/genmanifest 自动生成,请勿手工修改。
id: gateway-claude
name: Claude 网关
version: dev
description: Claude Messages API 网关
author: airgate
type: gateway
min_core_version: 1.0.0
dependencies: []
frontend_widgets:
- slot: account-identity
entry_file: index.js
title: Claude 账号身份
- slot: account-create
entry_file: index.js
title: 创建 Claude 账号
- slot: account-edit
entry_file: index.js
title: 编辑 Claude 账号
- slot: account-usage-window
entry_file: index.js
title: 账号用量窗口
- slot: usage-metric-detail
entry_file: index.js
title: Claude 计量明细
- slot: usage-cost-detail
entry_file: index.js
title: Claude 费用明细
gateway:
platform: claude
mode: simple
routes:
- method: POST
path: /v1/messages
description: Messages API
- method: POST
path: /v1/messages/count_tokens
description: Token 计数
- method: GET
path: /v1/models
description: 模型列表
models:
- id: claude-fable-5
name: Claude Fable 5
context_window: 1000000
max_output_tokens: 128000
capabilities:
- chat
- reasoning
input_price: 10
output_price: 50
cached_input_price: 1
cache_creation_price: 12.5
cache_creation_1h_price: 20
- id: claude-haiku-4-5-20251001
name: Claude Haiku 4.5
context_window: 200000
max_output_tokens: 64000
capabilities:
- chat
- reasoning
input_price: 1
output_price: 5
cached_input_price: 0.1
cache_creation_price: 1.25
cache_creation_1h_price: 2
- id: claude-opus-4-1-20250805
name: Claude Opus 4.1
context_window: 200000
max_output_tokens: 32000
capabilities:
- chat
- reasoning
input_price: 15
output_price: 75
cached_input_price: 1.5
cache_creation_price: 18.75
cache_creation_1h_price: 30
- id: claude-opus-4-5-20251101
name: Claude Opus 4.5
context_window: 200000
max_output_tokens: 64000
capabilities:
- chat
- reasoning
input_price: 5
output_price: 25
cached_input_price: 0.5
cache_creation_price: 6.25
cache_creation_1h_price: 10
- id: claude-opus-4-6
name: Claude Opus 4.6
context_window: 1000000
max_output_tokens: 128000
capabilities:
- chat
- reasoning
input_price: 5
output_price: 25
cached_input_price: 0.5
cache_creation_price: 6.25
cache_creation_1h_price: 10
- id: claude-opus-4-7
name: Claude Opus 4.7
context_window: 1000000
max_output_tokens: 128000
capabilities:
- chat
- reasoning
input_price: 5
output_price: 25
cached_input_price: 0.5
cache_creation_price: 6.25
cache_creation_1h_price: 10
- id: claude-opus-4-8
name: Claude Opus 4.8
context_window: 1000000
max_output_tokens: 128000
capabilities:
- chat
- reasoning
input_price: 5
output_price: 25
cached_input_price: 0.5
cache_creation_price: 6.25
cache_creation_1h_price: 10
- id: claude-sonnet-4-20250514
name: Claude Sonnet 4
context_window: 200000
max_output_tokens: 64000
capabilities:
- chat
- reasoning
input_price: 3
output_price: 15
cached_input_price: 0.3
cache_creation_price: 3.75
cache_creation_1h_price: 6
- id: claude-sonnet-4-5-20250929
name: Claude Sonnet 4.5
context_window: 200000
max_output_tokens: 64000
capabilities:
- chat
- reasoning
input_price: 3
output_price: 15
cached_input_price: 0.3
cache_creation_price: 3.75
cache_creation_1h_price: 6
- id: claude-sonnet-4-6
name: Claude Sonnet 4.6
context_window: 1000000
max_output_tokens: 64000
capabilities:
- chat
- reasoning
input_price: 3
output_price: 15
cached_input_price: 0.3
cache_creation_price: 3.75
cache_creation_1h_price: 6
account_types:
- key: apikey
label: API Key
description: 使用 Anthropic API Key 直接访问
fields:
- key: api_key
label: API Key
type: password
required: true
placeholder: sk-ant-...
- key: base_url
label: API 地址
type: text
required: false
placeholder: https://api.anthropic.com
- key: oauth
label: OAuth
description: 通过 Session Key 或浏览器授权获取 OAuth Token
fields:
- key: session_key
label: Session Key
type: password
required: false
placeholder: sk-ant-sid01-...(可选,用于自动获取 Token)
- key: access_token
label: Access Token
type: password
required: false
placeholder: 自动获取
- key: refresh_token
label: Refresh Token
type: password
required: false
placeholder: 自动获取
- key: expires_at
label: 过期时间
type: text
required: false
placeholder: 自动填充
- key: base_url
label: API 地址
type: text
required: false
placeholder: https://api.anthropic.com
- key: tls_profile
label: TLS 指纹 Profile
type: select
required: false
placeholder: auto