Ask Grok

io.github.Lykhoyda由 GitHub 账号 Lykhoyda 发布v0.3.0更新于 Oct 26, 2026

Consult Grok through xAI's metered API with exact model selection and no fallback

发布方自己的服务:Surface

已验证STDIO仅桌面开发者工具AI 与机器学习

概览

AI 生成的概览

让编码助手通过已登录的 Grok CLI 或 xAI 按量计费 API 咨询 Grok,为代码或方案获取第二意见。

可以做什么
  • 在编码助手会话内请 Grok 审查暂存的改动、文件或方案。
  • 获得注明审查者与模型、引用相关代码的发现,或明确表示未发现问题的结论。
  • 请 Grok 质疑方案:哪些假设可能失效、哪种更简单的做法更符合约束。
  • 显式选择执行方式(xAI API 或 Grok CLI)、具体模型、推理强度、超时与输出 token 上限。
  • 可在按需审查之后选择启用逐次编辑配对审查。
适用场景
适合已经在编码助手中工作、希望由另一家厂商的模型审查改动或点评方案,而不必复制粘贴或离开会话的个人开发者或小团队。在采纳修改前想要一次独立检查时尤其有用。
运行要求
以 npm 包形式通过 stdio 在本地运行,需要 Linux 或 macOS 上的 Node.js 24 及以上。需要已登录的 Grok CLI,或为按量计费 API 在 XAI_API_KEY 中提供 xAI API 密钥。宿主助手须已安装并登录;安装程序只注册宿主与工作流,不安装或登录提供方。
安装前请注意
xAI API 选项单独按量计费且需要 API 密钥;调用会消耗现有提供方套餐额度或按其账户计费,服务器不会替你开启计费或超额。只审查允许分享给所选提供方的材料。审查运行使用只读控制,但模型之间的一致并不等于正确,仍需核对结论。服务器不发送遥测,但提供方与宿主的数据政策仍然适用。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Ask Grok,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Ask LLM

Second opinions for coding agents.

Get a second opinion on your code or plan, inside your coding assistant, using the model subscriptions you already have.

For individual developers and small teams who already use a coding assistant and pay for another model subscription: ask a different vendor's model to review your changes or challenge your plan, without API keys, copy-paste, or leaving the session.

text
You:    ask codex to review src/auth.ts for security issuesCodex:  ⚠ verifyToken() compares tokens with === — not timing-safe (line 42)        ⚠ the session cookie is missing a SameSite attributeClaude: Good catches — applying both fixes to src/auth.ts.

Install

You need Node.js 24+ on Linux or macOS. Before your first review, both your coding assistant (for example Claude Code) and the provider you will consult (for example Codex) must be installed and signed in. Ask LLM configures the connection; it does not install providers or sign you in. If a provider CLI such as Codex has never been signed in on this machine, sign in first and rerun setup.

bash
npm i -g @ask-llm/mcp && ask-llm setup

Setup asks you to confirm each detected host and workflow. Inspect the preview, confirm your assistant's registration and workflows, decline the others, then follow any printed manual steps. Restart your assistant or start a new session in your project.

Your first review

With both Claude Code and Codex installed and signed in, open Claude Code in your project and ask:

text
Ask Codex to review my staged changes for bugs and missing error handling. Check each finding against the source before proposing fixes.

Working in Codex with a Claude subscription? Ask Claude instead. Choose a provider from a different vendor than your current assistant. A successful review names the reviewer and model, cites relevant code, and reports findings or says it found none. Your assistant applies changes after you decide what to accept. If the request fails, run ask-llm doctor and follow the troubleshooting guide for your selected assistant and reviewer. Warnings about providers you do not use do not require installing them or adding API keys.

For plans, try: “Ask Claude to challenge this plan: what assumptions could fail, and what simpler approach would fit our constraints?”

After an on-demand review, pair review can add ongoing feedback. Pairing requires explicit opt-in; setup leaves it off. Grok CLI supports a per-edit hook with Codex Sol by default or Claude Opus 5.5 via reviewer: claude; shell reviews cover command text only.

Supported hosts

A host is the assistant you work in; a provider is the model you consult.

HostExperience
Claude CodeReviews, plan critique, comparisons; isolated reviewers and opt-in per-edit pairing
Codex, Cursor, Gemini CLITools and portable workflows; pairing on demand
Grok BuildTools and portable workflows; opt-in per-edit pairing
AntigravityTools; setup prints a manual step for workflows
Pi 0.83.0+Native tools and portable workflows; opt-in per-edit pairing
Claude DesktopTools only
OpenCodeTools and portable workflows; setup verified with fixtures only

See host compatibility for the complete matrix and manual setup limits, including existing Codex registrations.

Supported providers

ProviderAccess
CodexYour authenticated Codex CLI/account
ClaudeYour authenticated Claude Code account; consult it from a host other than Claude Code
GrokAuthenticated Grok Build, an exact Cursor model, or the explicit metered xAI API option
AntigravityYour authenticated agy subscription; execution is off by default, and opt-in has no read-only guarantee
OllamaLocal models on your machine
GeminiAn eligible Gemini Code Assist Standard/Enterprise seat

Cursor Agent can also consult exact models from your Cursor catalog. It is a connection route, with usage governed by your Cursor plan.

Trust and cost

Review runs use read-only provider controls; the assistant you work in remains the editor. Antigravity refuses execution until explicitly enabled and cannot guarantee read-only access after opt-in. Review only material you are allowed to share with the selected provider.

Calls consume your existing provider plan's quota or follow that account's billing. Grok's xAI API is a separate, metered option requiring an API key; Ask LLM never enables billing or overage for you. Ollama supports local inference. Ask LLM sends no telemetry; provider and host data policies still apply.

Agreement between models is not proof of correctness. Validate findings against the code, tests, and your requirements. See data flow and costs and fallbacks.

Migrating from @ask-llm/*

Follow the migration guide before retiring earlier registrations.

Upgrade or remove · Troubleshooting · Documentation

Contributions: CONTRIBUTING.md. Licensed under MIT.

来源:README.md,提交 ba91abc

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

3
  1. v0.3.0最新Sep 27, 2026
  2. v0.2.0Sep 26, 2026
  3. v0.1.5Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Grok 集成