From 74b7f27c061d5df43a8212eee071d32871538cf3 Mon Sep 17 00:00:00 2001 From: Anton Volnuhin Date: Thu, 6 Aug 2026 01:59:18 +0300 Subject: [PATCH] pi: capture the cursorapi provider and reformat models.json Local drift that was never added: a cursorapi provider pointing at http://127.0.0.1:8788/v1, plus the formatting pi itself writes. No key material -- the apiKey fields hold env var names or the local placeholder. --- dot_pi/agent/models.json | 948 ++++++++++++++++++++++----------------- 1 file changed, 530 insertions(+), 418 deletions(-) diff --git a/dot_pi/agent/models.json b/dot_pi/agent/models.json index 3b499b0..8b5bd48 100644 --- a/dot_pi/agent/models.json +++ b/dot_pi/agent/models.json @@ -1,448 +1,560 @@ { - "providers": { - "alibaba-code-plan": { - "api": "openai-completions", - "apiKey": "!. /Users/anton/dev/librenew/.env 2>/dev/null; printf %s \"$ALIBABA_CODE_PLAN_API_KEY\"", - "baseUrl": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1", - "compat": { - "supportsDeveloperRole": false + "providers" : { + "alibaba-code-plan" : { + "api" : "openai-completions", + "apiKey" : "!. /Users/anton/dev/librenew/.env 2>/dev/null; printf %s \"$ALIBABA_CODE_PLAN_API_KEY\"", + "baseUrl" : "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1", + "compat" : { + "supportsDeveloperRole" : false }, - "models": [ + "models" : [ { - "id": "qwen3.8-max-preview", - "name": "Qwen 3.8 Max", - "reasoning": true, - "input": [ + "contextWindow" : 1000000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0, + "output" : 0 + }, + "id" : "qwen3.8-max-preview", + "input" : [ "text" ], - "contextWindow": 1000000, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } + "maxTokens" : 131072, + "name" : "Qwen 3.8 Max", + "reasoning" : true } ] }, - "kimi-coding": { - "apiKey": "!. /Users/anton/dev/librenew/.env 2>/dev/null; printf %s \"$KIMI_CODE_API_KEY\"", - "compat": { - "supportsDeveloperRole": false + "anthropic-byok" : { + "api" : "anthropic-messages", + "apiKey" : "ANTHROPIC_API_KEY", + "baseUrl" : "https://api.anthropic.com", + "models" : [ + { + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0, + "output" : 0 + }, + "id" : "claude-sonnet-4-6", + "input" : [ + "text", + "image" + ], + "maxTokens" : 4096, + "name" : "claude-sonnet-4-6" + } + ] + }, + "cursorapi" : { + "api" : "openai-completions", + "apiKey" : "cursor-local", + "authHeader" : true, + "baseUrl" : "http://127.0.0.1:8788/v1", + "models" : [ + { + "api" : "openai-completions", + "compat" : { + "maxTokensField" : "max_tokens", + "requiresAssistantAfterToolResult" : false, + "supportsUsageInStreaming" : true + }, + "contextWindow" : 200000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0.5, + "output" : 2.5 + }, + "id" : "composer-2.5", + "input" : [ + "text" + ], + "limit" : { + "context" : 200000, + "output" : 65536 + }, + "maxTokens" : 65536, + "name" : "Composer 2.5", + "reasoning" : false + }, + { + "api" : "openai-completions", + "compat" : { + "maxTokensField" : "max_tokens", + "requiresAssistantAfterToolResult" : false, + "supportsUsageInStreaming" : true + }, + "contextWindow" : 200000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 3, + "output" : 15 + }, + "id" : "composer-2.5-fast", + "input" : [ + "text" + ], + "limit" : { + "context" : 200000, + "output" : 65536 + }, + "maxTokens" : 65536, + "name" : "Composer 2.5 Fast", + "reasoning" : false + }, + { + "api" : "openai-completions", + "compat" : { + "maxTokensField" : "max_tokens", + "requiresAssistantAfterToolResult" : false, + "supportsUsageInStreaming" : true + }, + "contextWindow" : 200000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 2, + "output" : 6 + }, + "id" : "grok-4.5", + "input" : [ + "text" + ], + "limit" : { + "context" : 200000, + "output" : 65536 + }, + "maxTokens" : 65536, + "name" : "Grok 4.5", + "reasoning" : false + }, + { + "api" : "openai-completions", + "compat" : { + "maxTokensField" : "max_tokens", + "requiresAssistantAfterToolResult" : false, + "supportsUsageInStreaming" : true + }, + "contextWindow" : 200000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 4, + "output" : 18 + }, + "id" : "grok-4.5-fast", + "input" : [ + "text" + ], + "limit" : { + "context" : 200000, + "output" : 65536 + }, + "maxTokens" : 65536, + "name" : "Grok 4.5 Fast", + "reasoning" : false + } + ] + }, + "kimi-coding" : { + "apiKey" : "!. /Users/anton/dev/librenew/.env 2>/dev/null; printf %s \"$KIMI_CODE_API_KEY\"", + "compat" : { + "supportsDeveloperRole" : false }, - "models": [ + "models" : [ { - "id": "k3", - "name": "Kimi K3", - "api": "openai-completions", - "baseUrl": "https://api.kimi.com/coding/v1", - "reasoning": true, - "input": [ + "api" : "openai-completions", + "baseUrl" : "https://api.kimi.com/coding/v1", + "contextWindow" : 1048576, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0, + "output" : 0 + }, + "id" : "k3", + "input" : [ "text", "image" ], - "contextWindow": 1048576, - "maxTokens": 32000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } + "maxTokens" : 32000, + "name" : "Kimi K3", + "reasoning" : true } ] }, - "zenmux": { - "api": "openai-completions", - "apiKey": "!. /Users/anton/dev/librenew/.env 2>/dev/null; printf %s \"$ZENMUX_PAYG_KEY\"", - "baseUrl": "https://zenmux.ai/api/v1", - "models": [ + "screenpipe" : { + "api" : "openai-completions", + "apiKey" : "SCREENPIPE_API_KEY", + "authHeader" : true, + "baseUrl" : "https://api.screenpi.pe/v1", + "models" : [ { - "id": "openai/gpt-5.6-sol", - "name": "GPT 5.6 Sol", - "reasoning": true, - "input": [ + "contextWindow" : 128000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0, + "output" : 0 + }, + "id" : "auto", + "input" : [ "text", "image" ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 6.25, - "tiers": [ + "maxTokens" : 32000, + "name" : "Auto (recommended)", + "reasoning" : true + }, + { + "contextWindow" : 200000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0, + "output" : 0 + }, + "id" : "glm-4.7", + "input" : [ + "text" + ], + "maxTokens" : 32000, + "name" : "GLM-4.7", + "reasoning" : true + }, + { + "contextWindow" : 128000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0, + "output" : 0 + }, + "id" : "glm-5", + "input" : [ + "text" + ], + "maxTokens" : 32000, + "name" : "GLM-5", + "reasoning" : true + }, + { + "contextWindow" : 128000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0, + "output" : 0 + }, + "id" : "kimi-k2.5", + "input" : [ + "text" + ], + "maxTokens" : 32000, + "name" : "Kimi K2.5", + "reasoning" : true + }, + { + "contextWindow" : 524000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0, + "output" : 0 + }, + "id" : "llama-4-maverick", + "input" : [ + "text", + "image" + ], + "maxTokens" : 8192, + "name" : "Llama 4 Maverick (Vision)", + "reasoning" : true + }, + { + "contextWindow" : 512000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0, + "output" : 0 + }, + "id" : "llama-4-scout", + "input" : [ + "text", + "image" + ], + "maxTokens" : 8192, + "name" : "Llama 4 Scout (Vision)", + "reasoning" : false + }, + { + "contextWindow" : 262000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0, + "output" : 0 + }, + "id" : "qwen/qwen3-coder:free", + "input" : [ + "text" + ], + "maxTokens" : 32000, + "name" : "Qwen3 Coder 480B", + "reasoning" : true + }, + { + "contextWindow" : 256000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0, + "output" : 0 + }, + "id" : "stepfun/step-3.5-flash:free", + "input" : [ + "text" + ], + "maxTokens" : 32000, + "name" : "Step 3.5 Flash", + "reasoning" : false + }, + { + "contextWindow" : 1000000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0.10000000000000001, + "output" : 0.40000000000000002 + }, + "id" : "gemini-3-flash", + "input" : [ + "text", + "image" + ], + "maxTokens" : 65536, + "name" : "Gemini 3 Flash", + "reasoning" : false + }, + { + "contextWindow" : 1000000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0.074999999999999997, + "output" : 0.29999999999999999 + }, + "id" : "gemini-2.5-flash", + "input" : [ + "text", + "image" + ], + "maxTokens" : 65536, + "name" : "Gemini 2.5 Flash", + "reasoning" : false + }, + { + "contextWindow" : 200000, + "cost" : { + "cacheRead" : 1.5, + "cacheWrite" : 18.75, + "input" : 15, + "output" : 75 + }, + "id" : "claude-opus-4-6", + "input" : [ + "text", + "image" + ], + "maxTokens" : 32000, + "name" : "Claude Opus 4.6", + "reasoning" : true + }, + { + "contextWindow" : 200000, + "cost" : { + "cacheRead" : 0.29999999999999999, + "cacheWrite" : 3.75, + "input" : 3, + "output" : 15 + }, + "id" : "claude-sonnet-4-5", + "input" : [ + "text", + "image" + ], + "maxTokens" : 64000, + "name" : "Claude Sonnet 4.5", + "reasoning" : true + }, + { + "contextWindow" : 200000, + "cost" : { + "cacheRead" : 0.080000000000000002, + "cacheWrite" : 1, + "input" : 0.80000000000000004, + "output" : 4 + }, + "id" : "claude-haiku-4-5", + "input" : [ + "text", + "image" + ], + "maxTokens" : 64000, + "name" : "Claude Haiku 4.5", + "reasoning" : true + }, + { + "contextWindow" : 1000000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0.065000000000000002, + "output" : 0.26000000000000001 + }, + "id" : "qwen/qwen3.5-flash-02-23", + "input" : [ + "text" + ], + "maxTokens" : 32000, + "name" : "Qwen3.5 Flash", + "reasoning" : false + }, + { + "contextWindow" : 128000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0.26000000000000001, + "output" : 0.38 + }, + "id" : "deepseek/deepseek-chat", + "input" : [ + "text" + ], + "maxTokens" : 32000, + "name" : "DeepSeek V3.2", + "reasoning" : true + }, + { + "contextWindow" : 128000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 2.1899999999999999, + "output" : 8.7599999999999998 + }, + "id" : "deepseek/deepseek-v3.2-speciale", + "input" : [ + "text" + ], + "maxTokens" : 32000, + "name" : "DeepSeek V3.2 Speciale", + "reasoning" : true + }, + { + "contextWindow" : 131000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 1.5, + "output" : 3 + }, + "id" : "qwen/qwen3.5-397b-a17b", + "input" : [ + "text", + "image" + ], + "maxTokens" : 32000, + "name" : "Qwen3.5 397B", + "reasoning" : true + }, + { + "contextWindow" : 512000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0.11, + "output" : 0.34000000000000002 + }, + "id" : "meta-llama/llama-4-scout", + "input" : [ + "text" + ], + "maxTokens" : 32000, + "name" : "Llama 4 Scout", + "reasoning" : false + }, + { + "contextWindow" : 256000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 0.5, + "output" : 0.77000000000000002 + }, + "id" : "meta-llama/llama-4-maverick", + "input" : [ + "text" + ], + "maxTokens" : 32000, + "name" : "Llama 4 Maverick", + "reasoning" : true + }, + { + "contextWindow" : 1000000, + "cost" : { + "cacheRead" : 0, + "cacheWrite" : 0, + "input" : 1.25, + "output" : 10 + }, + "id" : "gemini-3.1-pro", + "input" : [ + "text", + "image" + ], + "maxTokens" : 65536, + "name" : "Gemini 3.1 Pro", + "reasoning" : true + } + ] + }, + "zenmux" : { + "api" : "openai-completions", + "apiKey" : "!. /Users/anton/dev/librenew/.env 2>/dev/null; printf %s \"$ZENMUX_PAYG_KEY\"", + "baseUrl" : "https://zenmux.ai/api/v1", + "models" : [ + { + "contextWindow" : 1050000, + "cost" : { + "cacheRead" : 0.5, + "cacheWrite" : 6.25, + "input" : 5, + "output" : 30, + "tiers" : [ { - "inputTokensAbove": 272000, - "input": 10, - "output": 45, - "cacheRead": 1, - "cacheWrite": 12.5 + "cacheRead" : 1, + "cacheWrite" : 12.5, + "input" : 10, + "inputTokensAbove" : 272000, + "output" : 45 } ] - } - } - ] - }, - "anthropic-byok": { - "api": "anthropic-messages", - "apiKey": "ANTHROPIC_API_KEY", - "baseUrl": "https://api.anthropic.com", - "models": [ - { - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 0, - "output": 0 }, - "id": "claude-sonnet-4-6", - "input": [ + "id" : "openai/gpt-5.6-sol", + "input" : [ "text", "image" ], - "maxTokens": 4096, - "name": "claude-sonnet-4-6" - } - ] - }, - "screenpipe": { - "api": "openai-completions", - "apiKey": "SCREENPIPE_API_KEY", - "authHeader": true, - "baseUrl": "https://api.screenpi.pe/v1", - "models": [ - { - "contextWindow": 128000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 0, - "output": 0 - }, - "id": "auto", - "input": [ - "text", - "image" - ], - "maxTokens": 32000, - "name": "Auto (recommended)", - "reasoning": true - }, - { - "contextWindow": 200000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 0, - "output": 0 - }, - "id": "glm-4.7", - "input": [ - "text" - ], - "maxTokens": 32000, - "name": "GLM-4.7", - "reasoning": true - }, - { - "contextWindow": 128000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 0, - "output": 0 - }, - "id": "glm-5", - "input": [ - "text" - ], - "maxTokens": 32000, - "name": "GLM-5", - "reasoning": true - }, - { - "contextWindow": 128000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 0, - "output": 0 - }, - "id": "kimi-k2.5", - "input": [ - "text" - ], - "maxTokens": 32000, - "name": "Kimi K2.5", - "reasoning": true - }, - { - "contextWindow": 524000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 0, - "output": 0 - }, - "id": "llama-4-maverick", - "input": [ - "text", - "image" - ], - "maxTokens": 8192, - "name": "Llama 4 Maverick (Vision)", - "reasoning": true - }, - { - "contextWindow": 512000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 0, - "output": 0 - }, - "id": "llama-4-scout", - "input": [ - "text", - "image" - ], - "maxTokens": 8192, - "name": "Llama 4 Scout (Vision)", - "reasoning": false - }, - { - "contextWindow": 262000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 0, - "output": 0 - }, - "id": "qwen/qwen3-coder:free", - "input": [ - "text" - ], - "maxTokens": 32000, - "name": "Qwen3 Coder 480B", - "reasoning": true - }, - { - "contextWindow": 256000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 0, - "output": 0 - }, - "id": "stepfun/step-3.5-flash:free", - "input": [ - "text" - ], - "maxTokens": 32000, - "name": "Step 3.5 Flash", - "reasoning": false - }, - { - "contextWindow": 1000000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 0.1, - "output": 0.4 - }, - "id": "gemini-3-flash", - "input": [ - "text", - "image" - ], - "maxTokens": 65536, - "name": "Gemini 3 Flash", - "reasoning": false - }, - { - "contextWindow": 1000000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 0.075, - "output": 0.3 - }, - "id": "gemini-2.5-flash", - "input": [ - "text", - "image" - ], - "maxTokens": 65536, - "name": "Gemini 2.5 Flash", - "reasoning": false - }, - { - "contextWindow": 200000, - "cost": { - "cacheRead": 1.5, - "cacheWrite": 18.75, - "input": 15, - "output": 75 - }, - "id": "claude-opus-4-6", - "input": [ - "text", - "image" - ], - "maxTokens": 32000, - "name": "Claude Opus 4.6", - "reasoning": true - }, - { - "contextWindow": 200000, - "cost": { - "cacheRead": 0.3, - "cacheWrite": 3.75, - "input": 3, - "output": 15 - }, - "id": "claude-sonnet-4-5", - "input": [ - "text", - "image" - ], - "maxTokens": 64000, - "name": "Claude Sonnet 4.5", - "reasoning": true - }, - { - "contextWindow": 200000, - "cost": { - "cacheRead": 0.08, - "cacheWrite": 1, - "input": 0.8, - "output": 4 - }, - "id": "claude-haiku-4-5", - "input": [ - "text", - "image" - ], - "maxTokens": 64000, - "name": "Claude Haiku 4.5", - "reasoning": true - }, - { - "contextWindow": 1000000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 0.065, - "output": 0.26 - }, - "id": "qwen/qwen3.5-flash-02-23", - "input": [ - "text" - ], - "maxTokens": 32000, - "name": "Qwen3.5 Flash", - "reasoning": false - }, - { - "contextWindow": 128000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 0.26, - "output": 0.38 - }, - "id": "deepseek/deepseek-chat", - "input": [ - "text" - ], - "maxTokens": 32000, - "name": "DeepSeek V3.2", - "reasoning": true - }, - { - "contextWindow": 128000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 2.19, - "output": 8.76 - }, - "id": "deepseek/deepseek-v3.2-speciale", - "input": [ - "text" - ], - "maxTokens": 32000, - "name": "DeepSeek V3.2 Speciale", - "reasoning": true - }, - { - "contextWindow": 131000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 1.5, - "output": 3.0 - }, - "id": "qwen/qwen3.5-397b-a17b", - "input": [ - "text", - "image" - ], - "maxTokens": 32000, - "name": "Qwen3.5 397B", - "reasoning": true - }, - { - "contextWindow": 512000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 0.11, - "output": 0.34 - }, - "id": "meta-llama/llama-4-scout", - "input": [ - "text" - ], - "maxTokens": 32000, - "name": "Llama 4 Scout", - "reasoning": false - }, - { - "contextWindow": 256000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 0.5, - "output": 0.77 - }, - "id": "meta-llama/llama-4-maverick", - "input": [ - "text" - ], - "maxTokens": 32000, - "name": "Llama 4 Maverick", - "reasoning": true - }, - { - "contextWindow": 1000000, - "cost": { - "cacheRead": 0, - "cacheWrite": 0, - "input": 1.25, - "output": 10.0 - }, - "id": "gemini-3.1-pro", - "input": [ - "text", - "image" - ], - "maxTokens": 65536, - "name": "Gemini 3.1 Pro", - "reasoning": true + "maxTokens" : 128000, + "name" : "GPT 5.6 Sol", + "reasoning" : true } ] }