openclaw/extensions/xai/openclaw.plugin.json

59 lines
1.4 KiB
JSON

{
"id": "xai",
"providers": ["xai"],
"providerAuthEnvVars": {
"xai": ["XAI_API_KEY"]
},
"providerAuthChoices": [
{
"provider": "xai",
"method": "api-key",
"choiceId": "xai-api-key",
"choiceLabel": "xAI API key",
"groupId": "xai",
"groupLabel": "xAI (Grok)",
"groupHint": "API key",
"optionKey": "xaiApiKey",
"cliFlag": "--xai-api-key",
"cliOption": "--xai-api-key <key>",
"cliDescription": "xAI API key"
}
],
"uiHints": {
"webSearch.apiKey": {
"label": "Grok Search API Key",
"help": "xAI API key for Grok web search (fallback: XAI_API_KEY env var).",
"sensitive": true
},
"webSearch.model": {
"label": "Grok Search Model",
"help": "Grok model override for web search."
},
"webSearch.inlineCitations": {
"label": "Inline Citations",
"help": "Include inline markdown citations in Grok responses."
}
},
"configSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"webSearch": {
"type": "object",
"additionalProperties": false,
"properties": {
"apiKey": {
"type": ["string", "object"]
},
"model": {
"type": "string"
},
"inlineCitations": {
"type": "boolean"
}
}
}
}
}
}