@openclaw/synthetic-provider 0.0.0 → 2026.8.1-beta.3

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.
package/README.md CHANGED
@@ -1,3 +1,16 @@
1
- # @openclaw/synthetic-provider
1
+ # OpenClaw Synthetic Provider
2
2
 
3
- Reserved placeholder for the official OpenClaw plugin package. Use a published release version instead.
3
+ Official OpenClaw provider plugin for Synthetic's hosted Anthropic-compatible
4
+ API.
5
+
6
+ Install from OpenClaw:
7
+
8
+ ```bash
9
+ openclaw plugins install @openclaw/synthetic-provider
10
+ openclaw gateway restart
11
+ ```
12
+
13
+ Configure `SYNTHETIC_API_KEY`, then select a `synthetic/<model-id>` model.
14
+
15
+ See https://docs.openclaw.ai/providers/synthetic for model and configuration
16
+ details.
package/dist/api.js ADDED
@@ -0,0 +1,4 @@
1
+ import { SYNTHETIC_BASE_URL, SYNTHETIC_DEFAULT_MODEL_ID, SYNTHETIC_DEFAULT_MODEL_REF, SYNTHETIC_MODEL_CATALOG, buildSyntheticModelDefinition } from "./models.js";
2
+ import { applySyntheticConfig, applySyntheticProviderConfig } from "./onboard.js";
3
+ import { buildSyntheticProvider } from "./provider-catalog.js";
4
+ export { SYNTHETIC_BASE_URL, SYNTHETIC_DEFAULT_MODEL_ID, SYNTHETIC_DEFAULT_MODEL_REF, SYNTHETIC_MODEL_CATALOG, applySyntheticConfig, applySyntheticProviderConfig, buildSyntheticModelDefinition, buildSyntheticProvider };
package/dist/index.js ADDED
@@ -0,0 +1,49 @@
1
+ import { SYNTHETIC_DEFAULT_MODEL_REF } from "./models.js";
2
+ import { applySyntheticConfig } from "./onboard.js";
3
+ import { buildSyntheticProvider } from "./provider-catalog.js";
4
+ import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
5
+ var synthetic_default = defineSingleProviderPluginEntry({
6
+ id: "synthetic",
7
+ name: "Synthetic Provider",
8
+ description: "Synthetic provider plugin",
9
+ manifest: {
10
+ id: "synthetic",
11
+ activation: { "onStartup": false },
12
+ enabledByDefault: true,
13
+ providers: ["synthetic"],
14
+ setup: { "providers": [{
15
+ "id": "synthetic",
16
+ "envVars": ["SYNTHETIC_API_KEY"]
17
+ }] },
18
+ providerAuthChoices: [{
19
+ "provider": "synthetic",
20
+ "method": "api-key",
21
+ "choiceId": "synthetic-api-key",
22
+ "appGuidedSecret": true,
23
+ "choiceLabel": "Synthetic API key",
24
+ "groupId": "synthetic",
25
+ "groupLabel": "Synthetic",
26
+ "groupHint": "Anthropic-compatible (multi-model)",
27
+ "optionKey": "syntheticApiKey",
28
+ "cliFlag": "--synthetic-api-key",
29
+ "cliOption": "--synthetic-api-key <key>",
30
+ "cliDescription": "Synthetic API key"
31
+ }],
32
+ configSchema: {
33
+ "type": "object",
34
+ "additionalProperties": false,
35
+ "properties": {}
36
+ }
37
+ },
38
+ provider: {
39
+ label: "Synthetic",
40
+ docsPath: "/providers/synthetic",
41
+ manifestAuth: {
42
+ defaultModel: SYNTHETIC_DEFAULT_MODEL_REF,
43
+ applyConfig: applySyntheticConfig
44
+ },
45
+ catalog: { buildProvider: buildSyntheticProvider }
46
+ }
47
+ });
48
+ //#endregion
49
+ export { synthetic_default as default };
package/dist/models.js ADDED
@@ -0,0 +1,81 @@
1
+ //#region extensions/synthetic/models.ts
2
+ const SYNTHETIC_BASE_URL = "https://api.synthetic.new/anthropic";
3
+ const SYNTHETIC_DEFAULT_MODEL_ID = "hf:MiniMaxAI/MiniMax-M3";
4
+ const SYNTHETIC_DEFAULT_MODEL_REF = `synthetic/${SYNTHETIC_DEFAULT_MODEL_ID}`;
5
+ const SYNTHETIC_DEFAULT_COST = {
6
+ input: 0,
7
+ output: 0,
8
+ cacheRead: 0,
9
+ cacheWrite: 0
10
+ };
11
+ const SYNTHETIC_MODEL_CATALOG = [
12
+ {
13
+ id: SYNTHETIC_DEFAULT_MODEL_ID,
14
+ name: "MiniMax M3",
15
+ reasoning: true,
16
+ input: ["text", "image"],
17
+ contextWindow: 262144,
18
+ maxTokens: 65536
19
+ },
20
+ {
21
+ id: "hf:moonshotai/Kimi-K2.7-Code",
22
+ name: "Kimi K2.7 Code",
23
+ reasoning: true,
24
+ input: ["text", "image"],
25
+ contextWindow: 262144,
26
+ maxTokens: 8192
27
+ },
28
+ {
29
+ id: "hf:nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-NVFP4",
30
+ name: "NVIDIA Nemotron 3 Super 120B A12B",
31
+ reasoning: true,
32
+ input: ["text"],
33
+ contextWindow: 262144,
34
+ maxTokens: 8192
35
+ },
36
+ {
37
+ id: "hf:openai/gpt-oss-120b",
38
+ name: "GPT OSS 120B",
39
+ reasoning: true,
40
+ input: ["text"],
41
+ contextWindow: 131072,
42
+ maxTokens: 8192
43
+ },
44
+ {
45
+ id: "hf:Qwen/Qwen3.6-27B",
46
+ name: "Qwen3.6 27B",
47
+ reasoning: true,
48
+ input: ["text", "image"],
49
+ contextWindow: 262144,
50
+ maxTokens: 81920
51
+ },
52
+ {
53
+ id: "hf:zai-org/GLM-4.7-Flash",
54
+ name: "GLM-4.7 Flash",
55
+ reasoning: true,
56
+ input: ["text"],
57
+ contextWindow: 196608,
58
+ maxTokens: 131072
59
+ },
60
+ {
61
+ id: "hf:zai-org/GLM-5.2",
62
+ name: "GLM-5.2",
63
+ reasoning: true,
64
+ input: ["text"],
65
+ contextWindow: 524288,
66
+ maxTokens: 131072
67
+ }
68
+ ];
69
+ function buildSyntheticModelDefinition(entry) {
70
+ return {
71
+ id: entry.id,
72
+ name: entry.name,
73
+ reasoning: entry.reasoning,
74
+ input: [...entry.input],
75
+ cost: SYNTHETIC_DEFAULT_COST,
76
+ contextWindow: entry.contextWindow,
77
+ maxTokens: entry.maxTokens
78
+ };
79
+ }
80
+ //#endregion
81
+ export { SYNTHETIC_BASE_URL, SYNTHETIC_DEFAULT_MODEL_ID, SYNTHETIC_DEFAULT_MODEL_REF, SYNTHETIC_MODEL_CATALOG, buildSyntheticModelDefinition };
@@ -0,0 +1,18 @@
1
+ import { SYNTHETIC_BASE_URL, SYNTHETIC_DEFAULT_MODEL_REF, SYNTHETIC_MODEL_CATALOG, buildSyntheticModelDefinition } from "./models.js";
2
+ import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
3
+ //#region extensions/synthetic/onboard.ts
4
+ const { applyConfig: applySyntheticConfig, applyProviderConfig: applySyntheticProviderConfig } = createModelCatalogPresetAppliers({
5
+ primaryModelRef: SYNTHETIC_DEFAULT_MODEL_REF,
6
+ resolveParams: () => ({
7
+ providerId: "synthetic",
8
+ api: "anthropic-messages",
9
+ baseUrl: SYNTHETIC_BASE_URL,
10
+ catalogModels: SYNTHETIC_MODEL_CATALOG.map(buildSyntheticModelDefinition),
11
+ aliases: [{
12
+ modelRef: SYNTHETIC_DEFAULT_MODEL_REF,
13
+ alias: "MiniMax M3"
14
+ }]
15
+ })
16
+ });
17
+ //#endregion
18
+ export { SYNTHETIC_DEFAULT_MODEL_REF, applySyntheticConfig, applySyntheticProviderConfig };
@@ -0,0 +1,11 @@
1
+ import { SYNTHETIC_BASE_URL, SYNTHETIC_MODEL_CATALOG, buildSyntheticModelDefinition } from "./models.js";
2
+ //#region extensions/synthetic/provider-catalog.ts
3
+ function buildSyntheticProvider() {
4
+ return {
5
+ baseUrl: SYNTHETIC_BASE_URL,
6
+ api: "anthropic-messages",
7
+ models: SYNTHETIC_MODEL_CATALOG.map(buildSyntheticModelDefinition)
8
+ };
9
+ }
10
+ //#endregion
11
+ export { buildSyntheticProvider };
@@ -0,0 +1,37 @@
1
+ {
2
+ "id": "synthetic",
3
+ "activation": {
4
+ "onStartup": false
5
+ },
6
+ "enabledByDefault": true,
7
+ "providers": ["synthetic"],
8
+ "setup": {
9
+ "providers": [
10
+ {
11
+ "id": "synthetic",
12
+ "envVars": ["SYNTHETIC_API_KEY"]
13
+ }
14
+ ]
15
+ },
16
+ "providerAuthChoices": [
17
+ {
18
+ "provider": "synthetic",
19
+ "method": "api-key",
20
+ "choiceId": "synthetic-api-key",
21
+ "appGuidedSecret": true,
22
+ "choiceLabel": "Synthetic API key",
23
+ "groupId": "synthetic",
24
+ "groupLabel": "Synthetic",
25
+ "groupHint": "Anthropic-compatible (multi-model)",
26
+ "optionKey": "syntheticApiKey",
27
+ "cliFlag": "--synthetic-api-key",
28
+ "cliOption": "--synthetic-api-key <key>",
29
+ "cliDescription": "Synthetic API key"
30
+ }
31
+ ],
32
+ "configSchema": {
33
+ "type": "object",
34
+ "additionalProperties": false,
35
+ "properties": {}
36
+ }
37
+ }
package/package.json CHANGED
@@ -1,14 +1,49 @@
1
1
  {
2
2
  "name": "@openclaw/synthetic-provider",
3
- "version": "0.0.0",
4
- "description": "Reserved package name for an official OpenClaw plugin.",
5
- "license": "MIT",
3
+ "version": "2026.8.1-beta.3",
4
+ "description": "OpenClaw Synthetic provider plugin.",
6
5
  "repository": {
7
6
  "type": "git",
8
- "url": "git+https://github.com/openclaw/openclaw.git"
7
+ "url": "https://github.com/openclaw/openclaw"
9
8
  },
10
- "publishConfig": {
11
- "access": "public",
12
- "tag": "placeholder"
13
- }
9
+ "type": "module",
10
+ "openclaw": {
11
+ "extensions": [
12
+ "./index.ts"
13
+ ],
14
+ "install": {
15
+ "clawhubSpec": "clawhub:@openclaw/synthetic-provider",
16
+ "npmSpec": "@openclaw/synthetic-provider",
17
+ "defaultChoice": "npm",
18
+ "minHostVersion": ">=2026.7.2"
19
+ },
20
+ "compat": {
21
+ "pluginApi": ">=2026.8.1-beta.3"
22
+ },
23
+ "build": {
24
+ "openclawVersion": "2026.8.1-beta.3",
25
+ "bundledDist": false
26
+ },
27
+ "release": {
28
+ "publishToClawHub": true,
29
+ "publishToNpm": true
30
+ },
31
+ "runtimeExtensions": [
32
+ "./dist/index.js"
33
+ ]
34
+ },
35
+ "files": [
36
+ "dist/**",
37
+ "openclaw.plugin.json",
38
+ "README.md"
39
+ ],
40
+ "peerDependencies": {
41
+ "openclaw": ">=2026.8.1-beta.3"
42
+ },
43
+ "peerDependenciesMeta": {
44
+ "openclaw": {
45
+ "optional": true
46
+ }
47
+ },
48
+ "bundledDependencies": []
14
49
  }