feat(presets): add RunAPI provider presets

Add RunAPI as a new partner provider with support for:
- Claude Code preset (Anthropic native protocol)
- Codex preset (gpt-5.5 model)
- Claude Desktop preset (direct mode with passthrough routes)
- OpenCode preset (@ai-sdk/anthropic)
- OpenClaw preset (anthropic-messages protocol)
- Hermes preset (anthropic_messages mode)
- Icon configuration (runapi.jpg)
- i18n support (zh/en/ja) with ¥14 free credit promotion

RunAPI is a high-performance AI model API gateway supporting 150+
mainstream models (OpenAI, Claude, Gemini, DeepSeek, Grok) with
prices as low as 10% of official rates.
This commit is contained in:
Jason
2026-05-15 17:20:46 +08:00
parent d6bbbf72f0
commit 18ffddbfa5
11 changed files with 162 additions and 0 deletions
+30
View File
@@ -1240,6 +1240,36 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
},
},
},
{
name: "RunAPI",
websiteUrl: "https://runapi.co",
apiKeyUrl: "https://runapi.co",
settingsConfig: {
npm: "@ai-sdk/anthropic",
name: "RunAPI",
options: {
baseURL: "https://runapi.co",
apiKey: "",
setCacheKey: true,
},
models: {
"claude-sonnet-4-6": { name: "Claude Sonnet 4.6" },
"claude-opus-4-7": { name: "Claude Opus 4.7" },
"claude-haiku-4-5": { name: "Claude Haiku 4.5" },
},
},
category: "aggregator",
isPartner: true,
partnerPromotionKey: "runapi",
icon: "runapi",
templateValues: {
apiKey: {
label: "API Key",
placeholder: "",
editorValue: "",
},
},
},
{
name: "AICoding",
websiteUrl: "https://aicoding.sh",