← Back to Skills Marketplace
xianyu110

Grok Api Search

by xianyu110 · GitHub ↗ · v1.0.4 · MIT-0
cross-platform ⚠ suspicious
241
Downloads
0
Stars
0
Active Installs
5
Versions
Install in OpenClaw
/install grok-api-search
Description
使用 Grok API 进行网络搜索。默认使用中转端点节省成本。
README (SKILL.md)

Grok API 搜索技能

使用 Grok 模型的网络搜索能力,获取实时信息。默认使用中转 API 端点,成本更低。

功能

  • 实时网络搜索
  • 默认使用中转 API(节省成本)
  • 返回带来源的搜索结果

中转 API 配置教程

什么是中转 API?

中转 API 是第三方提供的 API 代理服务,相比官方 API 有以下优势:

  • 成本更低(通常 5-7 折)
  • 国内网络直连,更稳定
  • 无需配置代理

推荐中转服务

apipro.maynor1024.live(默认)

网站:https://apipro.maynor1024.live/

配置方式

方式一:使用中转 API(推荐)

export GROK_API_KEY="your-api-key"

获取 API Key:

  1. 访问 https://apipro.maynor1024.live/
  2. 注册账号
  3. 获取 API Key

方式二:使用官方 xAI API

export GROK_API_KEY="your-xai-api-key"
export GROK_API_URL="https://api.x.ai/v1"

获取方式:访问 https://console.x.ai/

注意:官方 API 需要科学上网。

方式三:使用其他中转服务

支持任何 OpenAI 兼容的中转服务:

export GROK_API_KEY="your-api-key"
export GROK_API_URL="https://your-proxy.com/v1"

使用方法

./grok-search.sh "搜索内容"

触发场景

  • 用户说"搜索xxx"
  • 用户需要实时信息
  • 用户问最新新闻

常见问题

Q: 中转 API 安全吗?

A: 选择可信的中转服务很重要。apipro.maynor1024.live 是社区常用的中转服务。

Q: 为什么推荐中转?

A:

  • 官方 API 需要国外网络
  • 国内访问不稳定
  • 中转服务通常更便宜

Q: 支持中文搜索吗?

A: 完全支持!Grok 对中文理解很好。

Usage Guidance
该技能本身功能与描述一致(用 Grok 做实时搜索),但请注意: - 元数据没有列出但脚本确实需要 GROK_API_KEY(可选的 GROK_API_URL/GROK_MODEL),以及运行需要的本地工具(curl, python3)。在安装/使用前应手动确认这些依赖并理解它们的用途。 - 默认推荐的中转端点(https://apipro.maynor1024.live)是第三方代理,任何发送到该端点的查询内容和 API Key 都可能被该服务记录或滥用。只有在信任该代理且接受其隐私/安全策略时才使用;更安全的做法是直接使用官方 xAI API 或使用你信任的代理。 - 要求作者/发布者在 registry 元数据中补充所需环境变量和二进制依赖,便于安全审查和自动化检查。 - 如果你会发送敏感查询或使用重要凭证,请不要在不可信的中转服务上使用真实 API Key;考虑创建仅限此用途、权限受限的密钥或使用官方端点并通过受信任的网络环境访问。 若需要,我可以帮你起草给发布者的询问清单或检查脚本的替代实现以避免第三方中转。
Capability Analysis
Type: OpenClaw Skill Name: grok-api-search Version: 1.0.4 The skill defaults to sending the user's sensitive `GROK_API_KEY` to an unofficial third-party proxy endpoint (apipro.maynor1024.live) instead of the official xAI API. While the documentation in `SKILL.md` claims this is for cost-saving and stability, this configuration allows the proxy operator to intercept API credentials. Additionally, `grok-search.sh` lacks input sanitization when embedding the user query into the JSON payload, creating a JSON injection vulnerability. The strong promotion of a specific, non-standard proxy service as the default behavior is a significant security risk.
Capability Assessment
Purpose & Capability
技能描述为“使用 Grok API 进行搜索”,这是合理的,但元数据声明无需任何环境变量或二进制依赖,而实际 README/SKILL.md 和脚本都要求 GROK_API_KEY(和可选的 GROK_API_URL/GROK_MODEL)。这种元数据与实际需求的不一致会误导权限评估和自动安装流程。
Instruction Scope
SKILL.md 和脚本只描述通过 HTTP(S) 向指定 API 端点(默认为第三方中转 apipro.maynor1024.live)发送查询并打印返回内容,未要求读取本地敏感文件或其它系统配置。风险主要在于把查询和 API Key 发往第三方代理,可能导致数据与凭证被该代理记录。
Install Mechanism
没有 install spec(仅包含脚本),因此没有下载或写入磁盘的额外安装步骤;这降低了供给链风险。不过脚本会调用 curl 和 python3,但这些依赖未在元数据中列出。
Credentials
脚本/文档合理地需要 GROK_API_KEY(和可选 GROK_API_URL),这些与功能直接相关,但 registry 元数据未声明任何所需的环境变量。另:默认中转服务会要求用户向第三方注册并使用该服务的 API Key — 这使得凭证暴露给非官方方,存在被记录/滥用的风险。
Persistence & Privilege
技能未要求始终启用,也不修改其他技能或系统设置;没有请求持久特权或后台常驻行为。
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install grok-api-search
  3. After installation, invoke the skill by name or use /grok-api-search
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.4
完善中转 API 配置教程,添加 apipro.maynor1024.live
v1.0.3
完善中转 API 配置教程
v1.0.2
添加中转 API 配置教程和常见问题解答
v1.0.1
默认使用中转 API 端点
v1.0.0
首个版本:支持 Grok API 搜索,可自定义端点
Metadata
Slug grok-api-search
Version 1.0.4
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 5
Frequently Asked Questions

What is Grok Api Search?

使用 Grok API 进行网络搜索。默认使用中转端点节省成本。 It is an AI Agent Skill for Claude Code / OpenClaw, with 241 downloads so far.

How do I install Grok Api Search?

Run "/install grok-api-search" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Grok Api Search free?

Yes, Grok Api Search is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Grok Api Search support?

Grok Api Search is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Grok Api Search?

It is built and maintained by xianyu110 (@xianyu110); the current version is v1.0.4.

💬 Comments