agentcap-cli 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agentcap/__init__.py +7 -0
- agentcap/alerts.py +312 -0
- agentcap/clamp.py +174 -0
- agentcap/cli.py +373 -0
- agentcap/data/pricing.json +383 -0
- agentcap/devtools/__init__.py +1 -0
- agentcap/devtools/fake_upstream.py +412 -0
- agentcap/estimate.py +271 -0
- agentcap/ledger.py +387 -0
- agentcap/license.py +634 -0
- agentcap/loop.py +118 -0
- agentcap/pricing.py +620 -0
- agentcap/proxy.py +1181 -0
- agentcap/runner.py +456 -0
- agentcap/upstreams.py +132 -0
- agentcap/usage.py +428 -0
- agentcap_cli-0.1.0.dist-info/METADATA +304 -0
- agentcap_cli-0.1.0.dist-info/RECORD +21 -0
- agentcap_cli-0.1.0.dist-info/WHEEL +4 -0
- agentcap_cli-0.1.0.dist-info/entry_points.txt +2 -0
- agentcap_cli-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2026.10.25",
|
|
3
|
+
"updated": "2026-10-25",
|
|
4
|
+
"verified": true,
|
|
5
|
+
"note": "Official Standard-tier prices in USD per 1M tokens, verified 2026-10-25.",
|
|
6
|
+
"sources": {
|
|
7
|
+
"openai": "https://platform.openai.com/docs/pricing",
|
|
8
|
+
"google": "https://ai.google.dev/gemini-api/docs/pricing"
|
|
9
|
+
},
|
|
10
|
+
"service_tiers": {
|
|
11
|
+
"openai": {
|
|
12
|
+
"default": "1",
|
|
13
|
+
"auto": "1",
|
|
14
|
+
"flex": "0.5",
|
|
15
|
+
"priority": "2",
|
|
16
|
+
"fast": "2",
|
|
17
|
+
"ultrafast": "6"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"models": {
|
|
21
|
+
"openai/gpt-6-astra": {
|
|
22
|
+
"input_per_mtok": "10",
|
|
23
|
+
"cached_input_per_mtok": "1",
|
|
24
|
+
"output_per_mtok": "50",
|
|
25
|
+
"max_output_tokens": 128000,
|
|
26
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
27
|
+
"verified": "2026-10-25",
|
|
28
|
+
"long_context": {
|
|
29
|
+
"threshold_tokens": 272000,
|
|
30
|
+
"input_per_mtok": "20",
|
|
31
|
+
"output_per_mtok": "75",
|
|
32
|
+
"cached_input_per_mtok": "2"
|
|
33
|
+
},
|
|
34
|
+
"cache_write_per_mtok": "25"
|
|
35
|
+
},
|
|
36
|
+
"openai/gpt-6.1-sol": {
|
|
37
|
+
"input_per_mtok": "2",
|
|
38
|
+
"cached_input_per_mtok": "0.10",
|
|
39
|
+
"output_per_mtok": "10",
|
|
40
|
+
"max_output_tokens": 128000,
|
|
41
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
42
|
+
"verified": "2026-10-25",
|
|
43
|
+
"long_context": {
|
|
44
|
+
"threshold_tokens": 272000,
|
|
45
|
+
"input_per_mtok": "4",
|
|
46
|
+
"output_per_mtok": "15",
|
|
47
|
+
"cached_input_per_mtok": "0.20"
|
|
48
|
+
},
|
|
49
|
+
"cache_write_per_mtok": "5"
|
|
50
|
+
},
|
|
51
|
+
"openai/gpt-6-luna": {
|
|
52
|
+
"input_per_mtok": "0.10",
|
|
53
|
+
"cached_input_per_mtok": "0.01",
|
|
54
|
+
"output_per_mtok": "0.50",
|
|
55
|
+
"max_output_tokens": 128000,
|
|
56
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
57
|
+
"verified": "2026-10-25",
|
|
58
|
+
"long_context": {
|
|
59
|
+
"threshold_tokens": 272000,
|
|
60
|
+
"input_per_mtok": "0.20",
|
|
61
|
+
"output_per_mtok": "0.75",
|
|
62
|
+
"cached_input_per_mtok": "0.02"
|
|
63
|
+
},
|
|
64
|
+
"cache_write_per_mtok": "0.25"
|
|
65
|
+
},
|
|
66
|
+
"openai/gpt-6-sol": {
|
|
67
|
+
"input_per_mtok": "2",
|
|
68
|
+
"cached_input_per_mtok": "0.20",
|
|
69
|
+
"output_per_mtok": "10",
|
|
70
|
+
"max_output_tokens": 128000,
|
|
71
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
72
|
+
"verified": "2026-10-25",
|
|
73
|
+
"cache_write_per_mtok": "5"
|
|
74
|
+
},
|
|
75
|
+
"openai/gpt-5.6-sol": {
|
|
76
|
+
"input_per_mtok": "4",
|
|
77
|
+
"cached_input_per_mtok": "0.40",
|
|
78
|
+
"output_per_mtok": "20",
|
|
79
|
+
"max_output_tokens": 128000,
|
|
80
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
81
|
+
"verified": "2026-10-25",
|
|
82
|
+
"cache_write_per_mtok": "10"
|
|
83
|
+
},
|
|
84
|
+
"openai/gpt-5.6-terra": {
|
|
85
|
+
"input_per_mtok": "2",
|
|
86
|
+
"cached_input_per_mtok": "0.20",
|
|
87
|
+
"output_per_mtok": "12",
|
|
88
|
+
"max_output_tokens": 128000,
|
|
89
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
90
|
+
"verified": "2026-10-25",
|
|
91
|
+
"cache_write_per_mtok": "5"
|
|
92
|
+
},
|
|
93
|
+
"openai/gpt-5.6-luna": {
|
|
94
|
+
"input_per_mtok": "0.20",
|
|
95
|
+
"cached_input_per_mtok": "0.02",
|
|
96
|
+
"output_per_mtok": "1.20",
|
|
97
|
+
"max_output_tokens": 128000,
|
|
98
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
99
|
+
"verified": "2026-10-25",
|
|
100
|
+
"cache_write_per_mtok": "0.50"
|
|
101
|
+
},
|
|
102
|
+
"openai/gpt-5.5": {
|
|
103
|
+
"input_per_mtok": "5",
|
|
104
|
+
"cached_input_per_mtok": "0.50",
|
|
105
|
+
"output_per_mtok": "30",
|
|
106
|
+
"max_output_tokens": 128000,
|
|
107
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
108
|
+
"verified": "2026-10-25",
|
|
109
|
+
"long_context": {
|
|
110
|
+
"threshold_tokens": 272000,
|
|
111
|
+
"input_per_mtok": "10",
|
|
112
|
+
"output_per_mtok": "45",
|
|
113
|
+
"cached_input_per_mtok": "1.00"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"openai/gpt-5.4": {
|
|
117
|
+
"input_per_mtok": "2.50",
|
|
118
|
+
"cached_input_per_mtok": "0.25",
|
|
119
|
+
"output_per_mtok": "15",
|
|
120
|
+
"max_output_tokens": 128000,
|
|
121
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
122
|
+
"verified": "2026-10-25",
|
|
123
|
+
"long_context": {
|
|
124
|
+
"threshold_tokens": 272000,
|
|
125
|
+
"input_per_mtok": "5",
|
|
126
|
+
"output_per_mtok": "22.50",
|
|
127
|
+
"cached_input_per_mtok": "0.50"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"openai/gpt-5.4-mini": {
|
|
131
|
+
"input_per_mtok": "0.75",
|
|
132
|
+
"cached_input_per_mtok": "0.075",
|
|
133
|
+
"output_per_mtok": "4.50",
|
|
134
|
+
"max_output_tokens": 128000,
|
|
135
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
136
|
+
"verified": "2026-10-25"
|
|
137
|
+
},
|
|
138
|
+
"openai/gpt-5.4-nano": {
|
|
139
|
+
"input_per_mtok": "0.20",
|
|
140
|
+
"cached_input_per_mtok": "0.02",
|
|
141
|
+
"output_per_mtok": "1.25",
|
|
142
|
+
"max_output_tokens": 128000,
|
|
143
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
144
|
+
"verified": "2026-10-25"
|
|
145
|
+
},
|
|
146
|
+
"openai/gpt-5.3-codex": {
|
|
147
|
+
"input_per_mtok": "1.75",
|
|
148
|
+
"cached_input_per_mtok": "0.175",
|
|
149
|
+
"output_per_mtok": "14",
|
|
150
|
+
"max_output_tokens": 128000,
|
|
151
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
152
|
+
"verified": "2026-10-25"
|
|
153
|
+
},
|
|
154
|
+
"openai/gpt-5.2": {
|
|
155
|
+
"input_per_mtok": "1.75",
|
|
156
|
+
"cached_input_per_mtok": "0.175",
|
|
157
|
+
"output_per_mtok": "14",
|
|
158
|
+
"max_output_tokens": 128000,
|
|
159
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
160
|
+
"verified": "2026-10-25"
|
|
161
|
+
},
|
|
162
|
+
"openai/gpt-5.1": {
|
|
163
|
+
"input_per_mtok": "1.25",
|
|
164
|
+
"cached_input_per_mtok": "0.125",
|
|
165
|
+
"output_per_mtok": "10",
|
|
166
|
+
"max_output_tokens": 128000,
|
|
167
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
168
|
+
"verified": "2026-10-25"
|
|
169
|
+
},
|
|
170
|
+
"openai/gpt-5": {
|
|
171
|
+
"input_per_mtok": "1.25",
|
|
172
|
+
"cached_input_per_mtok": "0.125",
|
|
173
|
+
"output_per_mtok": "10",
|
|
174
|
+
"max_output_tokens": 128000,
|
|
175
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
176
|
+
"verified": "2026-10-25"
|
|
177
|
+
},
|
|
178
|
+
"openai/gpt-5-mini": {
|
|
179
|
+
"input_per_mtok": "0.25",
|
|
180
|
+
"cached_input_per_mtok": "0.025",
|
|
181
|
+
"output_per_mtok": "2",
|
|
182
|
+
"max_output_tokens": 128000,
|
|
183
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
184
|
+
"verified": "2026-10-25"
|
|
185
|
+
},
|
|
186
|
+
"openai/gpt-5-nano": {
|
|
187
|
+
"input_per_mtok": "0.05",
|
|
188
|
+
"cached_input_per_mtok": "0.005",
|
|
189
|
+
"output_per_mtok": "0.40",
|
|
190
|
+
"max_output_tokens": 128000,
|
|
191
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
192
|
+
"verified": "2026-10-25"
|
|
193
|
+
},
|
|
194
|
+
"openai/gpt-4.1": {
|
|
195
|
+
"input_per_mtok": "2",
|
|
196
|
+
"cached_input_per_mtok": "0.50",
|
|
197
|
+
"output_per_mtok": "8",
|
|
198
|
+
"max_output_tokens": 32768,
|
|
199
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
200
|
+
"verified": "2026-10-25"
|
|
201
|
+
},
|
|
202
|
+
"openai/gpt-4.1-mini": {
|
|
203
|
+
"input_per_mtok": "0.40",
|
|
204
|
+
"cached_input_per_mtok": "0.10",
|
|
205
|
+
"output_per_mtok": "1.60",
|
|
206
|
+
"max_output_tokens": 32768,
|
|
207
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
208
|
+
"verified": "2026-10-25"
|
|
209
|
+
},
|
|
210
|
+
"openai/gpt-4.1-nano": {
|
|
211
|
+
"input_per_mtok": "0.10",
|
|
212
|
+
"cached_input_per_mtok": "0.025",
|
|
213
|
+
"output_per_mtok": "0.40",
|
|
214
|
+
"max_output_tokens": 32768,
|
|
215
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
216
|
+
"verified": "2026-10-25"
|
|
217
|
+
},
|
|
218
|
+
"openai/gpt-4o": {
|
|
219
|
+
"input_per_mtok": "2.50",
|
|
220
|
+
"cached_input_per_mtok": "1.25",
|
|
221
|
+
"output_per_mtok": "10",
|
|
222
|
+
"max_output_tokens": 16384,
|
|
223
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
224
|
+
"verified": "2026-10-25"
|
|
225
|
+
},
|
|
226
|
+
"openai/gpt-4o-mini": {
|
|
227
|
+
"input_per_mtok": "0.15",
|
|
228
|
+
"cached_input_per_mtok": "0.075",
|
|
229
|
+
"output_per_mtok": "0.60",
|
|
230
|
+
"max_output_tokens": 16384,
|
|
231
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
232
|
+
"verified": "2026-10-25"
|
|
233
|
+
},
|
|
234
|
+
"openai/o3": {
|
|
235
|
+
"input_per_mtok": "2",
|
|
236
|
+
"cached_input_per_mtok": "0.50",
|
|
237
|
+
"output_per_mtok": "8",
|
|
238
|
+
"max_output_tokens": 128000,
|
|
239
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
240
|
+
"verified": "2026-10-25"
|
|
241
|
+
},
|
|
242
|
+
"openai/o4-mini": {
|
|
243
|
+
"input_per_mtok": "1.10",
|
|
244
|
+
"cached_input_per_mtok": "0.275",
|
|
245
|
+
"output_per_mtok": "4.40",
|
|
246
|
+
"max_output_tokens": 128000,
|
|
247
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
248
|
+
"verified": "2026-10-25"
|
|
249
|
+
},
|
|
250
|
+
"openai/text-embedding-3-small": {
|
|
251
|
+
"input_per_mtok": "0.02",
|
|
252
|
+
"cached_input_per_mtok": "0",
|
|
253
|
+
"output_per_mtok": "0",
|
|
254
|
+
"max_output_tokens": 1,
|
|
255
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
256
|
+
"verified": "2026-10-25"
|
|
257
|
+
},
|
|
258
|
+
"openai/text-embedding-3-large": {
|
|
259
|
+
"input_per_mtok": "0.13",
|
|
260
|
+
"cached_input_per_mtok": "0",
|
|
261
|
+
"output_per_mtok": "0",
|
|
262
|
+
"max_output_tokens": 1,
|
|
263
|
+
"source": "https://platform.openai.com/docs/pricing",
|
|
264
|
+
"verified": "2026-10-25"
|
|
265
|
+
},
|
|
266
|
+
"google/gemini-4-argon": {
|
|
267
|
+
"input_per_mtok": "2",
|
|
268
|
+
"cached_input_per_mtok": "0.10",
|
|
269
|
+
"output_per_mtok": "10",
|
|
270
|
+
"max_output_tokens": 65536,
|
|
271
|
+
"source": "https://ai.google.dev/gemini-api/docs/pricing",
|
|
272
|
+
"verified": "2026-10-25",
|
|
273
|
+
"schedule": [
|
|
274
|
+
{
|
|
275
|
+
"effective_from": "2026-12-01",
|
|
276
|
+
"input_per_mtok": "4",
|
|
277
|
+
"cached_input_per_mtok": "0.20",
|
|
278
|
+
"output_per_mtok": "20"
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
"google/gemini-3.8-flash": {
|
|
283
|
+
"input_per_mtok": "0.75",
|
|
284
|
+
"cached_input_per_mtok": "0.075",
|
|
285
|
+
"output_per_mtok": "3.75",
|
|
286
|
+
"max_output_tokens": 65536,
|
|
287
|
+
"source": "https://ai.google.dev/gemini-api/docs/pricing",
|
|
288
|
+
"verified": "2026-10-25",
|
|
289
|
+
"schedule": [
|
|
290
|
+
{
|
|
291
|
+
"effective_from": "2027-01-01",
|
|
292
|
+
"input_per_mtok": "1.50",
|
|
293
|
+
"cached_input_per_mtok": "0.15",
|
|
294
|
+
"output_per_mtok": "7.50"
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
"google/gemini-3.6-flash": {
|
|
299
|
+
"input_per_mtok": "0.75",
|
|
300
|
+
"cached_input_per_mtok": "0.075",
|
|
301
|
+
"output_per_mtok": "3.75",
|
|
302
|
+
"max_output_tokens": 65536,
|
|
303
|
+
"source": "https://ai.google.dev/gemini-api/docs/pricing",
|
|
304
|
+
"verified": "2026-10-25",
|
|
305
|
+
"schedule": [
|
|
306
|
+
{
|
|
307
|
+
"effective_from": "2027-01-01",
|
|
308
|
+
"input_per_mtok": "1.50",
|
|
309
|
+
"cached_input_per_mtok": "0.15",
|
|
310
|
+
"output_per_mtok": "7.50"
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
"google/gemini-3.5-flash-lite": {
|
|
315
|
+
"input_per_mtok": "0.30",
|
|
316
|
+
"cached_input_per_mtok": "0.03",
|
|
317
|
+
"output_per_mtok": "2.50",
|
|
318
|
+
"max_output_tokens": 65536,
|
|
319
|
+
"source": "https://ai.google.dev/gemini-api/docs/pricing",
|
|
320
|
+
"verified": "2026-10-25"
|
|
321
|
+
},
|
|
322
|
+
"google/gemini-3.1-flash-lite": {
|
|
323
|
+
"input_per_mtok": "0.25",
|
|
324
|
+
"cached_input_per_mtok": "0.025",
|
|
325
|
+
"output_per_mtok": "1.50",
|
|
326
|
+
"max_output_tokens": 65536,
|
|
327
|
+
"source": "https://ai.google.dev/gemini-api/docs/pricing",
|
|
328
|
+
"verified": "2026-10-25"
|
|
329
|
+
},
|
|
330
|
+
"google/gemini-3.1-pro-preview": {
|
|
331
|
+
"input_per_mtok": "2",
|
|
332
|
+
"cached_input_per_mtok": "0.20",
|
|
333
|
+
"output_per_mtok": "12",
|
|
334
|
+
"max_output_tokens": 65536,
|
|
335
|
+
"source": "https://ai.google.dev/gemini-api/docs/pricing",
|
|
336
|
+
"verified": "2026-10-25",
|
|
337
|
+
"long_context": {
|
|
338
|
+
"threshold_tokens": 200000,
|
|
339
|
+
"input_per_mtok": "4",
|
|
340
|
+
"output_per_mtok": "18",
|
|
341
|
+
"cached_input_per_mtok": "0.40"
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"google/gemini-3-flash-preview": {
|
|
345
|
+
"input_per_mtok": "0.50",
|
|
346
|
+
"cached_input_per_mtok": "0.05",
|
|
347
|
+
"output_per_mtok": "3",
|
|
348
|
+
"max_output_tokens": 65536,
|
|
349
|
+
"source": "https://ai.google.dev/gemini-api/docs/pricing",
|
|
350
|
+
"verified": "2026-10-25"
|
|
351
|
+
},
|
|
352
|
+
"google/gemini-2.5-pro": {
|
|
353
|
+
"input_per_mtok": "1.25",
|
|
354
|
+
"cached_input_per_mtok": "0.125",
|
|
355
|
+
"output_per_mtok": "10",
|
|
356
|
+
"max_output_tokens": 65536,
|
|
357
|
+
"source": "https://ai.google.dev/gemini-api/docs/pricing",
|
|
358
|
+
"verified": "2026-10-25",
|
|
359
|
+
"long_context": {
|
|
360
|
+
"threshold_tokens": 200000,
|
|
361
|
+
"input_per_mtok": "2.50",
|
|
362
|
+
"output_per_mtok": "15",
|
|
363
|
+
"cached_input_per_mtok": "0.25"
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"google/gemini-2.5-flash": {
|
|
367
|
+
"input_per_mtok": "0.30",
|
|
368
|
+
"cached_input_per_mtok": "0.03",
|
|
369
|
+
"output_per_mtok": "2.50",
|
|
370
|
+
"max_output_tokens": 65536,
|
|
371
|
+
"source": "https://ai.google.dev/gemini-api/docs/pricing",
|
|
372
|
+
"verified": "2026-10-25"
|
|
373
|
+
},
|
|
374
|
+
"google/gemini-2.5-flash-lite": {
|
|
375
|
+
"input_per_mtok": "0.10",
|
|
376
|
+
"cached_input_per_mtok": "0.01",
|
|
377
|
+
"output_per_mtok": "0.40",
|
|
378
|
+
"max_output_tokens": 65536,
|
|
379
|
+
"source": "https://ai.google.dev/gemini-api/docs/pricing",
|
|
380
|
+
"verified": "2026-10-25"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Developer helpers (not used by the proxy at runtime)."""
|