@acedatacloud/openclaw-provider 2026.5.31

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.
@@ -0,0 +1,73 @@
1
+ import { readPositiveIntegerParam } from "openclaw/plugin-sdk/param-readers";
2
+ import { runAcedataSearch } from "./acedata-search-client.js";
3
+ import { buildAcedataSearchProviderBase } from "./acedata-search-shared.js";
4
+ const SUPPORTED_TYPES = ["search", "images", "news", "videos", "maps", "places"];
5
+ const AcedataSearchSchema = {
6
+ type: "object",
7
+ properties: {
8
+ query: { type: "string", description: "Search query string." },
9
+ count: {
10
+ type: "integer",
11
+ description: "Number of results to return (1-100).",
12
+ minimum: 1,
13
+ maximum: 100,
14
+ },
15
+ type: {
16
+ type: "string",
17
+ enum: SUPPORTED_TYPES,
18
+ description: 'Search vertical: "search" (default), "images", "news", "videos", "maps", or "places".',
19
+ },
20
+ country: {
21
+ type: "string",
22
+ description: 'Two-letter country code (e.g. "us", "cn", "jp").',
23
+ },
24
+ language: {
25
+ type: "string",
26
+ description: 'Two-letter language code (e.g. "en", "zh", "ja").',
27
+ },
28
+ range: {
29
+ type: "string",
30
+ description: 'Recency filter using Google qdr syntax: "qdr:h" (hour), "qdr:d" (day), "qdr:w" (week), "qdr:m" (month), "qdr:y" (year).',
31
+ },
32
+ page: {
33
+ type: "integer",
34
+ description: "Page number for pagination (1-based).",
35
+ minimum: 1,
36
+ },
37
+ },
38
+ additionalProperties: false,
39
+ };
40
+ function normalizeSearchType(value) {
41
+ if (typeof value !== "string")
42
+ return undefined;
43
+ return SUPPORTED_TYPES.includes(value) ? value : undefined;
44
+ }
45
+ export function createAcedataWebSearchProvider() {
46
+ return {
47
+ ...buildAcedataSearchProviderBase(),
48
+ createTool: (ctx) => ({
49
+ description: "Search the web using Ace Data Cloud's Google SERP API. Returns structured organic results plus optional knowledge graph and answer box. Supports image/news/video/maps verticals.",
50
+ parameters: AcedataSearchSchema,
51
+ execute: async (args) => {
52
+ const query = typeof args.query === "string" ? args.query : "";
53
+ const count = readPositiveIntegerParam(args, "count", {
54
+ message: "count must be an integer from 1 to 100",
55
+ max: 100,
56
+ });
57
+ const page = readPositiveIntegerParam(args, "page", {
58
+ message: "page must be a positive integer",
59
+ });
60
+ return await runAcedataSearch({
61
+ cfg: ctx.config,
62
+ query,
63
+ type: normalizeSearchType(args.type) ?? "search",
64
+ country: typeof args.country === "string" ? args.country : undefined,
65
+ language: typeof args.language === "string" ? args.language : undefined,
66
+ range: typeof args.range === "string" ? args.range : undefined,
67
+ number: count,
68
+ page,
69
+ });
70
+ },
71
+ }),
72
+ };
73
+ }
@@ -0,0 +1,3 @@
1
+ import { type WebSearchProviderPlugin } from "openclaw/plugin-sdk/provider-web-search-contract";
2
+ export declare const ACEDATA_SEARCH_CREDENTIAL_PATH = "plugins.entries.acedatacloud.config.webSearch.apiKey";
3
+ export declare function buildAcedataSearchProviderBase(): Omit<WebSearchProviderPlugin, "createTool">;
@@ -0,0 +1,23 @@
1
+ import { createWebSearchProviderContractFields, } from "openclaw/plugin-sdk/provider-web-search-contract";
2
+ export const ACEDATA_SEARCH_CREDENTIAL_PATH = "plugins.entries.acedatacloud.config.webSearch.apiKey";
3
+ export function buildAcedataSearchProviderBase() {
4
+ return {
5
+ id: "acedatacloud",
6
+ label: "Ace Data Cloud Google Search",
7
+ hint: "Google web/image/news/video search via Ace Data Cloud SERP API",
8
+ onboardingScopes: ["text-inference"],
9
+ credentialLabel: "Ace Data Cloud API key",
10
+ envVars: ["ACEDATA_API_KEY", "ACEDATACLOUD_API_KEY"],
11
+ placeholder: "ace-...",
12
+ signupUrl: "https://platform.acedata.cloud/",
13
+ docsUrl: "https://platform.acedata.cloud/services/3a30e2fb-3a99-4ae7-bc3e-9a51d5d6f02b",
14
+ autoDetectOrder: 80,
15
+ credentialPath: ACEDATA_SEARCH_CREDENTIAL_PATH,
16
+ ...createWebSearchProviderContractFields({
17
+ credentialPath: ACEDATA_SEARCH_CREDENTIAL_PATH,
18
+ searchCredential: { type: "scoped", scopeId: "acedatacloud" },
19
+ configuredCredential: { pluginId: "acedatacloud" },
20
+ selectionPluginId: "acedatacloud",
21
+ }),
22
+ };
23
+ }
package/index.ts ADDED
@@ -0,0 +1,98 @@
1
+ import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
2
+ import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
3
+ import type {
4
+ ProviderResolveDynamicModelContext,
5
+ ProviderRuntimeModel,
6
+ } from "openclaw/plugin-sdk/plugin-entry";
7
+ import {
8
+ ACEDATA_BASE_URL,
9
+ ACEDATA_PROVIDER_ID,
10
+ } from "./src/constants.js";
11
+ import {
12
+ buildAcedataChatProvider,
13
+ isAcedataReasoningModel,
14
+ } from "./src/chat/provider-catalog.js";
15
+ import {
16
+ ACEDATA_DEFAULT_MODEL_REF,
17
+ applyAcedataConfig,
18
+ } from "./src/chat/onboard.js";
19
+ import { createAcedataWebSearchProvider } from "./src/search/acedata-search-provider.js";
20
+
21
+ const ZERO_COST = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 } as const;
22
+
23
+ function resolveDynamicChatModel(
24
+ ctx: ProviderResolveDynamicModelContext,
25
+ ): ProviderRuntimeModel {
26
+ return {
27
+ id: ctx.modelId,
28
+ name: ctx.modelId,
29
+ api: "openai-completions",
30
+ provider: ACEDATA_PROVIDER_ID,
31
+ baseUrl: ACEDATA_BASE_URL,
32
+ reasoning: isAcedataReasoningModel(ctx.modelId),
33
+ input: ["text", "image"],
34
+ cost: ZERO_COST,
35
+ contextWindow: 128_000,
36
+ maxTokens: 8_192,
37
+ };
38
+ }
39
+
40
+ export default definePluginEntry({
41
+ id: ACEDATA_PROVIDER_ID,
42
+ name: "Ace Data Cloud Provider",
43
+ description: "Bundled Ace Data Cloud provider plugin (chat, image, video, music, search)",
44
+ register(api) {
45
+ api.registerProvider({
46
+ id: ACEDATA_PROVIDER_ID,
47
+ label: "Ace Data Cloud",
48
+ docsPath: "/providers/acedatacloud",
49
+ envVars: ["ACEDATA_API_KEY", "ACEDATACLOUD_API_KEY"],
50
+ auth: [
51
+ createProviderApiKeyAuthMethod({
52
+ providerId: ACEDATA_PROVIDER_ID,
53
+ methodId: "api-key",
54
+ label: "Ace Data Cloud API key",
55
+ hint: "API key from https://platform.acedata.cloud/console/applications",
56
+ optionKey: "acedatacloudApiKey",
57
+ flagName: "--acedata-api-key",
58
+ envVar: "ACEDATA_API_KEY",
59
+ promptMessage: "Enter your Ace Data Cloud API key",
60
+ defaultModel: ACEDATA_DEFAULT_MODEL_REF,
61
+ expectedProviders: [ACEDATA_PROVIDER_ID],
62
+ applyConfig: (cfg) => applyAcedataConfig(cfg),
63
+ wizard: {
64
+ choiceId: "acedatacloud-api-key",
65
+ choiceLabel: "Ace Data Cloud API key",
66
+ groupId: ACEDATA_PROVIDER_ID,
67
+ groupLabel: "Ace Data Cloud",
68
+ groupHint: "API key",
69
+ onboardingScopes: ["text-inference"],
70
+ },
71
+ }),
72
+ ],
73
+ catalog: {
74
+ order: "simple",
75
+ run: async (ctx) => {
76
+ const apiKey = ctx.resolveProviderApiKey(ACEDATA_PROVIDER_ID).apiKey;
77
+ if (!apiKey) {
78
+ return null;
79
+ }
80
+ return {
81
+ provider: {
82
+ ...buildAcedataChatProvider(),
83
+ apiKey,
84
+ },
85
+ };
86
+ },
87
+ },
88
+ staticCatalog: {
89
+ order: "simple",
90
+ run: async () => ({
91
+ provider: buildAcedataChatProvider(),
92
+ }),
93
+ },
94
+ resolveDynamicModel: (ctx) => resolveDynamicChatModel(ctx),
95
+ });
96
+ api.registerWebSearchProvider(createAcedataWebSearchProvider());
97
+ },
98
+ });
@@ -0,0 +1,77 @@
1
+ {
2
+ "id": "acedatacloud",
3
+ "name": "Ace Data Cloud",
4
+ "description": "Ace Data Cloud aggregates chat, image, video, music, and web-search across 50+ AI models behind a single OpenAI-compatible endpoint.",
5
+ "activation": {
6
+ "onStartup": false
7
+ },
8
+ "enabledByDefault": true,
9
+ "providers": ["acedatacloud"],
10
+ "modelIdNormalization": {
11
+ "providers": {
12
+ "acedatacloud": {
13
+ "prefixWhenBare": "acedatacloud"
14
+ }
15
+ }
16
+ },
17
+ "providerRequest": {
18
+ "providers": {
19
+ "acedatacloud": {
20
+ "family": "openai-compatible"
21
+ }
22
+ }
23
+ },
24
+ "setup": {
25
+ "providers": [
26
+ {
27
+ "id": "acedatacloud",
28
+ "envVars": ["ACEDATA_API_KEY", "ACEDATACLOUD_API_KEY"]
29
+ }
30
+ ]
31
+ },
32
+ "providerAuthChoices": [
33
+ {
34
+ "provider": "acedatacloud",
35
+ "method": "api-key",
36
+ "choiceId": "acedatacloud-api-key",
37
+ "choiceLabel": "Ace Data Cloud API key",
38
+ "groupId": "acedatacloud",
39
+ "groupLabel": "Ace Data Cloud",
40
+ "groupHint": "API key",
41
+ "onboardingScopes": ["text-inference"],
42
+ "optionKey": "acedatacloudApiKey",
43
+ "cliFlag": "--acedata-api-key",
44
+ "cliOption": "--acedata-api-key <key>",
45
+ "cliDescription": "Ace Data Cloud API key (https://platform.acedata.cloud)"
46
+ }
47
+ ],
48
+ "configSchema": {
49
+ "type": "object",
50
+ "additionalProperties": false,
51
+ "properties": {
52
+ "webSearch": {
53
+ "type": "object",
54
+ "additionalProperties": false,
55
+ "properties": {
56
+ "apiKey": { "type": ["string", "object"] },
57
+ "baseUrl": { "type": "string" }
58
+ }
59
+ }
60
+ }
61
+ },
62
+ "contracts": {
63
+ "webSearchProviders": ["acedatacloud"]
64
+ },
65
+ "uiHints": {
66
+ "webSearch.apiKey": {
67
+ "label": "Ace Data Cloud Search API Key",
68
+ "help": "Reuses your Ace Data Cloud API key for SERP search; falls back to ACEDATA_API_KEY env var.",
69
+ "sensitive": true,
70
+ "placeholder": "ace-..."
71
+ },
72
+ "webSearch.baseUrl": {
73
+ "label": "Ace Data Cloud Base URL",
74
+ "help": "Override the Ace Data Cloud API base URL (defaults to https://api.acedata.cloud)."
75
+ }
76
+ }
77
+ }
package/package.json ADDED
@@ -0,0 +1,97 @@
1
+ {
2
+ "name": "@acedatacloud/openclaw-provider",
3
+ "version": "2026.5.31",
4
+ "description": "OpenClaw provider plugin for Ace Data Cloud — chat, image, video, music, and web-search across 50+ AI models through a single OpenAI-compatible endpoint.",
5
+ "keywords": [
6
+ "openclaw",
7
+ "openclaw-plugin",
8
+ "openclaw-provider",
9
+ "acedatacloud",
10
+ "ace-data-cloud",
11
+ "llm",
12
+ "ai-gateway",
13
+ "image-generation",
14
+ "video-generation",
15
+ "music-generation",
16
+ "midjourney",
17
+ "suno",
18
+ "veo",
19
+ "sora",
20
+ "claude",
21
+ "gpt"
22
+ ],
23
+ "homepage": "https://github.com/AceDataCloud/OpenClawProvider#readme",
24
+ "bugs": "https://github.com/AceDataCloud/OpenClawProvider/issues",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://github.com/AceDataCloud/OpenClawProvider.git"
28
+ },
29
+ "license": "MIT",
30
+ "author": "Ace Data Cloud <dev@acedata.cloud>",
31
+ "type": "module",
32
+ "files": [
33
+ "dist",
34
+ "openclaw.plugin.json",
35
+ "index.ts",
36
+ "src",
37
+ "README.md",
38
+ "LICENSE"
39
+ ],
40
+ "devDependencies": {
41
+ "@openclaw/plugin-sdk": "file:../openclaw/packages/plugin-sdk",
42
+ "@types/node": "^22.10.5",
43
+ "@typescript-eslint/eslint-plugin": "^8.20.0",
44
+ "@typescript-eslint/parser": "^8.20.0",
45
+ "eslint": "^9.18.0",
46
+ "prettier": "^3.4.2",
47
+ "typescript": "^5.7.3",
48
+ "undici": "^7.2.0",
49
+ "vitest": "^2.1.8"
50
+ },
51
+ "peerDependencies": {
52
+ "openclaw": ">=2026.5.26"
53
+ },
54
+ "engines": {
55
+ "node": ">=20"
56
+ },
57
+ "publishConfig": {
58
+ "access": "public"
59
+ },
60
+ "openclaw": {
61
+ "extensions": [
62
+ "./index.ts"
63
+ ],
64
+ "runtimeExtensions": [
65
+ "./dist/index.js"
66
+ ],
67
+ "install": {
68
+ "npmSpec": "@acedatacloud/openclaw-provider",
69
+ "defaultChoice": "npm",
70
+ "minHostVersion": ">=2026.5.26"
71
+ },
72
+ "compat": {
73
+ "pluginApi": ">=2026.5.26"
74
+ },
75
+ "build": {
76
+ "openclawVersion": "2026.5.31",
77
+ "pluginSdkVersion": "2026.5.31",
78
+ "bundledDist": false
79
+ },
80
+ "release": {
81
+ "publishToClawHub": true,
82
+ "publishToNpm": true
83
+ }
84
+ },
85
+ "scripts": {
86
+ "build": "tsc -p tsconfig.build.json",
87
+ "clean": "rm -rf dist",
88
+ "typecheck": "tsc -p tsconfig.json --noEmit",
89
+ "test": "vitest run",
90
+ "test:watch": "vitest",
91
+ "test:live": "vitest run --config vitest.live.config.ts",
92
+ "lint": "eslint . --max-warnings=0",
93
+ "format": "prettier --write .",
94
+ "sync-catalog": "node scripts/sync-catalog.mjs",
95
+ "sync-catalog:check": "node scripts/sync-catalog.mjs --check"
96
+ }
97
+ }
@@ -0,0 +1,77 @@
1
+ // AUTO-GENERATED by scripts/sync-catalog.mjs. DO NOT EDIT.
2
+ // Run: pnpm sync-catalog
3
+ // Source: PlatformBackend/cost/api/_chat_models.json
4
+
5
+ export type GeneratedCatalogEntry = {
6
+ id: string;
7
+ name: string;
8
+ reasoning: boolean;
9
+ vision: boolean;
10
+ contextWindow: number;
11
+ maxTokens: number;
12
+ };
13
+
14
+ export const GENERATED_CHAT_MODELS: readonly GeneratedCatalogEntry[] = [
15
+ { id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6", reasoning: true, vision: true, contextWindow: 1000000, maxTokens: 128000 },
16
+ { id: "claude-sonnet-4-5-20250929", name: "Claude Sonnet 4.5", reasoning: true, vision: true, contextWindow: 1000000, maxTokens: 64000 },
17
+ { id: "claude-sonnet-4-20250514", name: "Claude Sonnet 4", reasoning: true, vision: true, contextWindow: 200000, maxTokens: 64000 },
18
+ { id: "claude-opus-4-8", name: "Claude Opus 4.8", reasoning: true, vision: true, contextWindow: 1000000, maxTokens: 128000 },
19
+ { id: "claude-opus-4-7", name: "Claude Opus 4.7", reasoning: true, vision: true, contextWindow: 1000000, maxTokens: 128000 },
20
+ { id: "claude-opus-4-6", name: "Claude Opus 4.6", reasoning: true, vision: true, contextWindow: 1000000, maxTokens: 128000 },
21
+ { id: "claude-opus-4-5-20251101", name: "Claude Opus 4.5", reasoning: true, vision: true, contextWindow: 200000, maxTokens: 64000 },
22
+ { id: "claude-opus-4-20250514", name: "Claude Opus 4", reasoning: true, vision: true, contextWindow: 200000, maxTokens: 32000 },
23
+ { id: "claude-opus-4-1-20250805", name: "Claude Opus 4.1", reasoning: true, vision: true, contextWindow: 200000, maxTokens: 32000 },
24
+ { id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5", reasoning: false, vision: true, contextWindow: 200000, maxTokens: 8192 },
25
+ { id: "claude-3-opus-20240229", name: "Claude 3 Opus", reasoning: false, vision: true, contextWindow: 200000, maxTokens: 4096 },
26
+ { id: "claude-3-7-sonnet-20250219", name: "Claude 3.7 Sonnet", reasoning: true, vision: true, contextWindow: 200000, maxTokens: 64000 },
27
+ { id: "claude-3-5-sonnet-20241022", name: "Claude 3.5 Sonnet", reasoning: false, vision: true, contextWindow: 200000, maxTokens: 8192 },
28
+ { id: "claude-3-5-haiku-20241022", name: "Claude 3.5 Haiku", reasoning: false, vision: true, contextWindow: 200000, maxTokens: 8192 },
29
+ { id: "gpt-5.4-nano", name: "GPT-5.4 nano", reasoning: true, vision: true, contextWindow: 400000, maxTokens: 16384 },
30
+ { id: "gpt-5.4-mini", name: "GPT-5.4 mini", reasoning: true, vision: true, contextWindow: 400000, maxTokens: 16384 },
31
+ { id: "gpt-5.2-pro", name: "GPT-5.2 Pro", reasoning: true, vision: true, contextWindow: 400000, maxTokens: 32768 },
32
+ { id: "gpt-5.1-all", name: "GPT-5.1 all", reasoning: true, vision: true, contextWindow: 400000, maxTokens: 16384 },
33
+ { id: "gpt-5-all", name: "GPT-5 all", reasoning: true, vision: true, contextWindow: 400000, maxTokens: 16384 },
34
+ { id: "gpt-4o-mini", name: "GPT-4o mini", reasoning: false, vision: true, contextWindow: 128000, maxTokens: 16384 },
35
+ { id: "gpt-4o-image", name: "GPT-4o image", reasoning: false, vision: true, contextWindow: 128000, maxTokens: 16384 },
36
+ { id: "gpt-4o-all", name: "GPT-4o all", reasoning: false, vision: true, contextWindow: 128000, maxTokens: 16384 },
37
+ { id: "gpt-4o", name: "GPT-4o", reasoning: false, vision: true, contextWindow: 128000, maxTokens: 16384 },
38
+ { id: "gpt-4.1-nano", name: "GPT-4.1 nano", reasoning: false, vision: true, contextWindow: 1000000, maxTokens: 32768 },
39
+ { id: "gpt-4.1-mini", name: "GPT-4.1 mini", reasoning: false, vision: true, contextWindow: 1000000, maxTokens: 32768 },
40
+ { id: "gpt-4.1", name: "GPT-4.1", reasoning: false, vision: true, contextWindow: 1000000, maxTokens: 32768 },
41
+ { id: "o4-mini", name: "o4 mini", reasoning: true, vision: true, contextWindow: 200000, maxTokens: 100000 },
42
+ { id: "o3-pro", name: "o3 pro", reasoning: true, vision: true, contextWindow: 200000, maxTokens: 100000 },
43
+ { id: "o3-mini", name: "o3 mini", reasoning: true, vision: false, contextWindow: 200000, maxTokens: 100000 },
44
+ { id: "o3", name: "o3", reasoning: true, vision: true, contextWindow: 200000, maxTokens: 100000 },
45
+ { id: "o1-pro", name: "o1 pro", reasoning: true, vision: true, contextWindow: 200000, maxTokens: 100000 },
46
+ { id: "o1-mini", name: "o1 mini", reasoning: true, vision: false, contextWindow: 128000, maxTokens: 65536 },
47
+ { id: "o1", name: "o1", reasoning: true, vision: true, contextWindow: 200000, maxTokens: 100000 },
48
+ { id: "gemini-3.1-pro", name: "Gemini 3.1 Pro", reasoning: true, vision: true, contextWindow: 2000000, maxTokens: 65536 },
49
+ { id: "gemini-3.1-flash-lite-preview", name: "Gemini 3.1 Flash Lite (preview)", reasoning: false, vision: true, contextWindow: 1000000, maxTokens: 65536 },
50
+ { id: "gemini-3.1-flash-image-preview", name: "Gemini 3.1 Flash Image (preview)", reasoning: false, vision: true, contextWindow: 1000000, maxTokens: 65536 },
51
+ { id: "gemini-3-pro-preview", name: "Gemini 3 Pro (preview)", reasoning: true, vision: true, contextWindow: 2000000, maxTokens: 65536 },
52
+ { id: "grok-4-1-fast-reasoning", name: "Grok 4.1 Fast (reasoning)", reasoning: true, vision: true, contextWindow: 256000, maxTokens: 16384 },
53
+ { id: "grok-4-1-fast-non-reasoning", name: "Grok 4.1 Fast (non-reasoning)", reasoning: false, vision: true, contextWindow: 256000, maxTokens: 16384 },
54
+ { id: "grok-4-1-fast", name: "Grok 4.1 Fast", reasoning: false, vision: true, contextWindow: 256000, maxTokens: 16384 },
55
+ { id: "grok-4", name: "Grok 4", reasoning: true, vision: true, contextWindow: 256000, maxTokens: 16384 },
56
+ { id: "grok-3-mini-fast", name: "Grok 3 mini Fast", reasoning: false, vision: true, contextWindow: 128000, maxTokens: 8192 },
57
+ { id: "grok-3-mini", name: "Grok 3 mini", reasoning: false, vision: true, contextWindow: 128000, maxTokens: 8192 },
58
+ { id: "grok-3-fast", name: "Grok 3 Fast", reasoning: false, vision: true, contextWindow: 128000, maxTokens: 8192 },
59
+ { id: "grok-3", name: "Grok 3", reasoning: false, vision: true, contextWindow: 128000, maxTokens: 8192 },
60
+ { id: "deepseek-v4-flash", name: "DeepSeek V4 Flash", reasoning: true, vision: false, contextWindow: 128000, maxTokens: 8192 },
61
+ { id: "deepseek-v3.2-exp", name: "DeepSeek V3.2 (exp)", reasoning: false, vision: false, contextWindow: 128000, maxTokens: 8192 },
62
+ { id: "deepseek-v3", name: "DeepSeek V3", reasoning: false, vision: false, contextWindow: 128000, maxTokens: 8192 },
63
+ { id: "deepseek-reasoner", name: "DeepSeek Reasoner", reasoning: true, vision: false, contextWindow: 128000, maxTokens: 8192 },
64
+ { id: "deepseek-r1", name: "DeepSeek R1", reasoning: true, vision: false, contextWindow: 128000, maxTokens: 8192 },
65
+ { id: "kimi-k2.5", name: "Kimi K2.5", reasoning: true, vision: true, contextWindow: 262144, maxTokens: 16384 },
66
+ { id: "kimi-k2-turbo-preview", name: "Kimi K2 Turbo (preview)", reasoning: false, vision: false, contextWindow: 200000, maxTokens: 8192 },
67
+ { id: "kimi-k2-thinking-turbo", name: "Kimi K2 Thinking Turbo", reasoning: true, vision: false, contextWindow: 200000, maxTokens: 16384 },
68
+ { id: "kimi-k2-thinking", name: "Kimi K2 Thinking", reasoning: true, vision: false, contextWindow: 200000, maxTokens: 16384 },
69
+ { id: "kimi-k2-instruct-0905", name: "Kimi K2 Instruct (0905)", reasoning: false, vision: false, contextWindow: 200000, maxTokens: 8192 },
70
+ { id: "glm-5.1", name: "GLM 5.1", reasoning: true, vision: true, contextWindow: 128000, maxTokens: 8192 },
71
+ { id: "glm-5-turbo", name: "GLM 5 Turbo", reasoning: false, vision: true, contextWindow: 128000, maxTokens: 8192 },
72
+ { id: "glm-5", name: "GLM 5", reasoning: true, vision: true, contextWindow: 128000, maxTokens: 8192 },
73
+ { id: "glm-4.7", name: "GLM 4.7", reasoning: false, vision: true, contextWindow: 128000, maxTokens: 8192 },
74
+ { id: "glm-4.6", name: "GLM 4.6", reasoning: false, vision: true, contextWindow: 128000, maxTokens: 8192 },
75
+ { id: "glm-4.5v", name: "GLM 4.5V", reasoning: false, vision: true, contextWindow: 128000, maxTokens: 8192 },
76
+ { id: "glm-4.5", name: "GLM 4.5", reasoning: false, vision: true, contextWindow: 128000, maxTokens: 8192 },
77
+ ] as const;
@@ -0,0 +1,93 @@
1
+ {
2
+ "_comment": "Hand-maintained capability hints keyed by exact model id. The catalog generator (scripts/sync-catalog.mjs) reads _chat_models.json from PlatformBackend for the canonical list and merges these overrides on top. Defaults when an id is missing: reasoning=false, vision=false, contextWindow=128000, maxTokens=8192. Use 'hidden: true' to omit a deprecated id from the public catalog (it still works at runtime via resolveDynamicModel passthrough).",
3
+
4
+ "gpt-4": { "displayName": "GPT-4", "hidden": true },
5
+ "gpt-4o": { "displayName": "GPT-4o", "vision": true, "contextWindow": 128000, "maxTokens": 16384 },
6
+ "gpt-4o-2024-05-13": { "displayName": "GPT-4o (2024-05-13)", "vision": true, "hidden": true },
7
+ "gpt-4o-mini": { "displayName": "GPT-4o mini", "vision": true, "contextWindow": 128000, "maxTokens": 16384 },
8
+ "gpt-4o-all": { "displayName": "GPT-4o all", "vision": true, "contextWindow": 128000, "maxTokens": 16384 },
9
+ "gpt-4o-image": { "displayName": "GPT-4o image", "vision": true, "contextWindow": 128000, "maxTokens": 16384 },
10
+ "gpt-4.1": { "displayName": "GPT-4.1", "vision": true, "contextWindow": 1000000, "maxTokens": 32768 },
11
+ "gpt-4.1-mini": { "displayName": "GPT-4.1 mini", "vision": true, "contextWindow": 1000000, "maxTokens": 32768 },
12
+ "gpt-4.1-nano": { "displayName": "GPT-4.1 nano", "vision": true, "contextWindow": 1000000, "maxTokens": 32768 },
13
+ "gpt-5-all": { "displayName": "GPT-5 all", "reasoning": true, "vision": true, "contextWindow": 400000, "maxTokens": 16384 },
14
+ "gpt-5.1-all": { "displayName": "GPT-5.1 all", "reasoning": true, "vision": true, "contextWindow": 400000, "maxTokens": 16384 },
15
+ "gpt-5.2-pro": { "displayName": "GPT-5.2 Pro", "reasoning": true, "vision": true, "contextWindow": 400000, "maxTokens": 32768 },
16
+ "gpt-5.4-mini": { "displayName": "GPT-5.4 mini", "reasoning": true, "vision": true, "contextWindow": 400000, "maxTokens": 16384 },
17
+ "gpt-5.4-nano": { "displayName": "GPT-5.4 nano", "reasoning": true, "vision": true, "contextWindow": 400000, "maxTokens": 16384 },
18
+ "gpt-image-1": { "displayName": "GPT image-1", "vision": true, "hidden": true },
19
+
20
+ "o1": { "displayName": "o1", "reasoning": true, "vision": true, "contextWindow": 200000, "maxTokens": 100000 },
21
+ "o1-mini": { "displayName": "o1 mini", "reasoning": true, "contextWindow": 128000, "maxTokens": 65536 },
22
+ "o1-pro": { "displayName": "o1 pro", "reasoning": true, "vision": true, "contextWindow": 200000, "maxTokens": 100000 },
23
+ "o3": { "displayName": "o3", "reasoning": true, "vision": true, "contextWindow": 200000, "maxTokens": 100000 },
24
+ "o3-mini": { "displayName": "o3 mini", "reasoning": true, "contextWindow": 200000, "maxTokens": 100000 },
25
+ "o3-pro": { "displayName": "o3 pro", "reasoning": true, "vision": true, "contextWindow": 200000, "maxTokens": 100000 },
26
+ "o4-mini": { "displayName": "o4 mini", "reasoning": true, "vision": true, "contextWindow": 200000, "maxTokens": 100000 },
27
+
28
+ "claude-3-haiku-20240307": { "displayName": "Claude 3 Haiku", "vision": true, "hidden": true },
29
+ "claude-3-sonnet-20240229": { "displayName": "Claude 3 Sonnet", "vision": true, "hidden": true },
30
+ "claude-3-opus-20240229": { "displayName": "Claude 3 Opus", "vision": true, "contextWindow": 200000, "maxTokens": 4096 },
31
+ "claude-3-5-haiku-20241022": { "displayName": "Claude 3.5 Haiku", "vision": true, "contextWindow": 200000, "maxTokens": 8192 },
32
+ "claude-3-5-sonnet-20240620": { "displayName": "Claude 3.5 Sonnet (2024-06-20)", "vision": true, "hidden": true },
33
+ "claude-3-5-sonnet-20241022": { "displayName": "Claude 3.5 Sonnet", "vision": true, "contextWindow": 200000, "maxTokens": 8192 },
34
+ "claude-3-7-sonnet-20250219": { "displayName": "Claude 3.7 Sonnet", "reasoning": true, "vision": true, "contextWindow": 200000, "maxTokens": 64000 },
35
+ "claude-sonnet-4-20250514": { "displayName": "Claude Sonnet 4", "reasoning": true, "vision": true, "contextWindow": 200000, "maxTokens": 64000 },
36
+ "claude-sonnet-4-5-20250929": { "displayName": "Claude Sonnet 4.5", "reasoning": true, "vision": true, "contextWindow": 1000000, "maxTokens": 64000 },
37
+ "claude-sonnet-4-6": { "displayName": "Claude Sonnet 4.6", "reasoning": true, "vision": true, "contextWindow": 1000000, "maxTokens": 128000 },
38
+ "claude-opus-4-20250514": { "displayName": "Claude Opus 4", "reasoning": true, "vision": true, "contextWindow": 200000, "maxTokens": 32000 },
39
+ "claude-opus-4-1-20250805": { "displayName": "Claude Opus 4.1", "reasoning": true, "vision": true, "contextWindow": 200000, "maxTokens": 32000 },
40
+ "claude-opus-4-5-20251101": { "displayName": "Claude Opus 4.5", "reasoning": true, "vision": true, "contextWindow": 200000, "maxTokens": 64000 },
41
+ "claude-opus-4-6": { "displayName": "Claude Opus 4.6", "reasoning": true, "vision": true, "contextWindow": 1000000, "maxTokens": 128000 },
42
+ "claude-opus-4-7": { "displayName": "Claude Opus 4.7", "reasoning": true, "vision": true, "contextWindow": 1000000, "maxTokens": 128000 },
43
+ "claude-opus-4-8": { "displayName": "Claude Opus 4.8", "reasoning": true, "vision": true, "contextWindow": 1000000, "maxTokens": 128000 },
44
+ "claude-haiku-4-5-20251001": { "displayName": "Claude Haiku 4.5", "vision": true, "contextWindow": 200000, "maxTokens": 8192 },
45
+
46
+ "gemini-2.0-flash-lite": { "displayName": "Gemini 2.0 Flash Lite", "vision": true, "contextWindow": 1000000, "maxTokens": 8192, "hidden": true },
47
+ "gemini-2.5-flash-lite": { "displayName": "Gemini 2.5 Flash Lite", "vision": true, "contextWindow": 1000000, "maxTokens": 8192, "hidden": true },
48
+ "gemini-3-pro-preview": { "displayName": "Gemini 3 Pro (preview)", "reasoning": true, "vision": true, "contextWindow": 2000000, "maxTokens": 65536 },
49
+ "gemini-3.1-pro": { "displayName": "Gemini 3.1 Pro", "reasoning": true, "vision": true, "contextWindow": 2000000, "maxTokens": 65536 },
50
+ "gemini-3.1-pro-preview": { "displayName": "Gemini 3.1 Pro (preview)", "reasoning": true, "vision": true, "contextWindow": 2000000, "maxTokens": 65536, "hidden": true },
51
+ "gemini-3.1-flash-lite-preview": { "displayName": "Gemini 3.1 Flash Lite (preview)", "vision": true, "contextWindow": 1000000, "maxTokens": 65536 },
52
+ "gemini-3.1-flash-image-preview": { "displayName": "Gemini 3.1 Flash Image (preview)", "vision": true, "contextWindow": 1000000, "maxTokens": 65536 },
53
+
54
+ "grok-2-vision": { "displayName": "Grok 2 Vision", "vision": true, "hidden": true },
55
+ "grok-2-vision-1212": { "displayName": "Grok 2 Vision (1212)", "vision": true, "hidden": true },
56
+ "grok-3": { "displayName": "Grok 3", "vision": true, "contextWindow": 128000, "maxTokens": 8192 },
57
+ "grok-3-fast": { "displayName": "Grok 3 Fast", "vision": true, "contextWindow": 128000, "maxTokens": 8192 },
58
+ "grok-3-mini": { "displayName": "Grok 3 mini", "vision": true, "contextWindow": 128000, "maxTokens": 8192 },
59
+ "grok-3-mini-fast": { "displayName": "Grok 3 mini Fast", "vision": true, "contextWindow": 128000, "maxTokens": 8192 },
60
+ "grok-4": { "displayName": "Grok 4", "reasoning": true, "vision": true, "contextWindow": 256000, "maxTokens": 16384 },
61
+ "grok-4-0709": { "displayName": "Grok 4 (0709)", "reasoning": true, "vision": true, "contextWindow": 256000, "maxTokens": 16384, "hidden": true },
62
+ "grok-4-1-fast": { "displayName": "Grok 4.1 Fast", "vision": true, "contextWindow": 256000, "maxTokens": 16384 },
63
+ "grok-4-1-fast-reasoning": { "displayName": "Grok 4.1 Fast (reasoning)", "reasoning": true, "vision": true, "contextWindow": 256000, "maxTokens": 16384 },
64
+ "grok-4-1-fast-non-reasoning": { "displayName": "Grok 4.1 Fast (non-reasoning)", "vision": true, "contextWindow": 256000, "maxTokens": 16384 },
65
+
66
+ "deepseek-chat": { "displayName": "DeepSeek Chat", "contextWindow": 64000, "maxTokens": 8192, "hidden": true },
67
+ "deepseek-r1": { "displayName": "DeepSeek R1", "reasoning": true, "contextWindow": 128000, "maxTokens": 8192 },
68
+ "deepseek-r1-0528": { "displayName": "DeepSeek R1 (0528)", "reasoning": true, "contextWindow": 128000, "maxTokens": 8192, "hidden": true },
69
+ "deepseek-reasoner": { "displayName": "DeepSeek Reasoner", "reasoning": true, "contextWindow": 128000, "maxTokens": 8192 },
70
+ "deepseek-v3": { "displayName": "DeepSeek V3", "contextWindow": 128000, "maxTokens": 8192 },
71
+ "deepseek-v3-250324": { "displayName": "DeepSeek V3 (250324)", "contextWindow": 128000, "maxTokens": 8192, "hidden": true },
72
+ "deepseek-v3.2-exp": { "displayName": "DeepSeek V3.2 (exp)", "contextWindow": 128000, "maxTokens": 8192 },
73
+ "deepseek-v4-flash": { "displayName": "DeepSeek V4 Flash", "reasoning": true, "contextWindow": 128000, "maxTokens": 8192 },
74
+ "deepseek-0324": { "displayName": "DeepSeek (0324)", "contextWindow": 128000, "maxTokens": 8192, "hidden": true },
75
+ "deepseek-250324": { "displayName": "DeepSeek (250324)", "contextWindow": 128000, "maxTokens": 8192, "hidden": true },
76
+
77
+ "kimi-k2-0711-preview": { "displayName": "Kimi K2 (0711 preview)", "contextWindow": 200000, "maxTokens": 8192, "hidden": true },
78
+ "kimi-k2-0905-preview": { "displayName": "Kimi K2 (0905 preview)", "contextWindow": 200000, "maxTokens": 8192, "hidden": true },
79
+ "kimi-k2-instruct-0905": { "displayName": "Kimi K2 Instruct (0905)", "contextWindow": 200000, "maxTokens": 8192 },
80
+ "kimi-k2-thinking": { "displayName": "Kimi K2 Thinking", "reasoning": true, "contextWindow": 200000, "maxTokens": 16384 },
81
+ "kimi-k2-thinking-turbo": { "displayName": "Kimi K2 Thinking Turbo", "reasoning": true, "contextWindow": 200000, "maxTokens": 16384 },
82
+ "kimi-k2-turbo-preview": { "displayName": "Kimi K2 Turbo (preview)", "contextWindow": 200000, "maxTokens": 8192 },
83
+ "kimi-k2.5": { "displayName": "Kimi K2.5", "reasoning": true, "vision": true, "contextWindow": 262144, "maxTokens": 16384 },
84
+
85
+ "glm-3-turbo": { "displayName": "GLM 3 Turbo", "contextWindow": 128000, "maxTokens": 8192, "hidden": true },
86
+ "glm-4.5": { "displayName": "GLM 4.5", "vision": true, "contextWindow": 128000, "maxTokens": 8192 },
87
+ "glm-4.5v": { "displayName": "GLM 4.5V", "vision": true, "contextWindow": 128000, "maxTokens": 8192 },
88
+ "glm-4.6": { "displayName": "GLM 4.6", "vision": true, "contextWindow": 128000, "maxTokens": 8192 },
89
+ "glm-4.7": { "displayName": "GLM 4.7", "vision": true, "contextWindow": 128000, "maxTokens": 8192 },
90
+ "glm-5": { "displayName": "GLM 5", "reasoning": true, "vision": true, "contextWindow": 128000, "maxTokens": 8192 },
91
+ "glm-5-turbo": { "displayName": "GLM 5 Turbo", "vision": true, "contextWindow": 128000, "maxTokens": 8192 },
92
+ "glm-5.1": { "displayName": "GLM 5.1", "reasoning": true, "vision": true, "contextWindow": 128000, "maxTokens": 8192 }
93
+ }
@@ -0,0 +1,33 @@
1
+ import {
2
+ applyAgentDefaultModelPrimary,
3
+ type OpenClawConfig,
4
+ } from "openclaw/plugin-sdk/provider-onboard";
5
+ import { ACEDATA_DEFAULT_MODEL_REF } from "../constants.js";
6
+
7
+ export { ACEDATA_DEFAULT_MODEL_REF };
8
+
9
+ export function applyAcedataProviderConfig(cfg: OpenClawConfig): OpenClawConfig {
10
+ const models = { ...cfg.agents?.defaults?.models };
11
+ models[ACEDATA_DEFAULT_MODEL_REF] = {
12
+ ...models[ACEDATA_DEFAULT_MODEL_REF],
13
+ alias: models[ACEDATA_DEFAULT_MODEL_REF]?.alias ?? "Ace Data Cloud",
14
+ };
15
+
16
+ return {
17
+ ...cfg,
18
+ agents: {
19
+ ...cfg.agents,
20
+ defaults: {
21
+ ...cfg.agents?.defaults,
22
+ models,
23
+ },
24
+ },
25
+ };
26
+ }
27
+
28
+ export function applyAcedataConfig(cfg: OpenClawConfig): OpenClawConfig {
29
+ return applyAgentDefaultModelPrimary(
30
+ applyAcedataProviderConfig(cfg),
31
+ ACEDATA_DEFAULT_MODEL_REF,
32
+ );
33
+ }