Files
openclaw/extensions/ollama/openclaw.plugin.json
2026-08-01 00:26:40 +08:00

241 lines
5.8 KiB
JSON

{
"id": "ollama",
"icon": "https://cdn.simpleicons.org/ollama",
"activation": {
"onStartup": true
},
"enabledByDefault": true,
"providers": [
"ollama",
"ollama-cloud"
],
"providerCatalogEntry": "./provider-discovery.ts",
"providerRequest": {
"providers": {
"ollama": {
"family": "ollama"
},
"ollama-cloud": {
"family": "ollama-cloud"
}
}
},
"modelPricing": {
"providers": {
"ollama": {
"external": false
},
"ollama-cloud": {
"external": true
}
}
},
"syntheticAuthRefs": [
"ollama"
],
"nonSecretAuthMarkers": [
"ollama-local"
],
"setup": {
"providers": [
{
"id": "ollama",
"envVars": [
"OLLAMA_API_KEY"
]
},
{
"id": "ollama-cloud",
"envVars": [
"OLLAMA_API_KEY"
]
}
]
},
"providerAuthChoices": [
{
"provider": "ollama",
"method": "local",
"choiceId": "ollama",
"appGuidedDiscovery": true,
"appGuidedActionLabel": "Choose connection",
"choiceLabel": "Ollama",
"choiceHint": "Connect to an Ollama server and select a cloud or local model",
"icon": "https://cdn.simpleicons.org/ollama",
"website": "https://ollama.com/download",
"groupId": "ollama",
"groupLabel": "Ollama",
"groupHint": "Cloud and local open models"
},
{
"provider": "ollama-cloud",
"method": "api-key",
"choiceId": "ollama-cloud",
"appGuidedSecret": true,
"choiceLabel": "Ollama Cloud",
"choiceHint": "Hosted models via ollama.com",
"icon": "https://cdn.simpleicons.org/ollama",
"website": "https://ollama.com/download",
"groupId": "ollama",
"groupLabel": "Ollama",
"groupHint": "Cloud and local open models",
"optionKey": "ollamaCloudApiKey",
"cliFlag": "--ollama-cloud-api-key",
"cliOption": "--ollama-cloud-api-key <key>",
"cliDescription": "Ollama Cloud API key"
}
],
"modelCatalog": {
"runtimeAugment": true,
"providers": {
"ollama-cloud": {
"baseUrl": "https://ollama.com",
"api": "ollama",
"models": [
{
"id": "kimi-k2.5",
"name": "kimi-k2.5",
"status": "deprecated",
"reasoning": true,
"input": [
"text",
"image"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 262144,
"maxTokens": 8192,
"compat": {
"supportsTools": true,
"supportsUsageInStreaming": true
}
},
{
"id": "minimax-m2.7",
"name": "minimax-m2.7",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 196608,
"maxTokens": 8192,
"compat": {
"supportsTools": true,
"supportsUsageInStreaming": true
}
},
{
"id": "glm-5.1",
"name": "glm-5.1",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 202752,
"maxTokens": 8192,
"compat": {
"supportsTools": true,
"supportsUsageInStreaming": true,
"codeMode": "capable"
}
},
{
"id": "glm-5.2",
"name": "glm-5.2",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 1000000,
"maxTokens": 8192,
"compat": {
"supportsTools": true,
"supportsUsageInStreaming": true,
"codeMode": "capable"
}
}
]
}
},
"discovery": {
"ollama": "refreshable",
"ollama-cloud": "refreshable"
}
},
"contracts": {
"memoryEmbeddingProviders": [
"ollama"
],
"tools": [
"node_inference"
],
"webSearchProviders": [
"ollama"
]
},
"configSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"discovery": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"nodeInference": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
}
}
}
}
},
"uiHints": {
"discovery": {
"label": "Model Discovery",
"help": "Plugin-owned controls for Ollama model auto-discovery."
},
"discovery.enabled": {
"label": "Enable Discovery",
"help": "When false, OpenClaw keeps the Ollama plugin available but skips implicit startup discovery of ambient local or remote Ollama models."
},
"nodeInference": {
"label": "Node Inference",
"help": "Controls whether this node host advertises its local Ollama models to agents."
},
"nodeInference.enabled": {
"label": "Enable Node Inference",
"help": "When false, this node host does not advertise or accept Ollama node-inference commands."
}
}
}