xai
Query Grok chat completions and list available Grok models through the xAI API. Trigger phrases: xai, grok, chat with grok, grok model.
Install / Use
npx skills add Anil-matcha/awesome-muse-connectors --skill xaiInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of xai
xai scores 87/100 on our quality scale, 2241st of 4,592 Development & Engineering skills we index (top 49%).
Its SKILL.md is 4.2 KB long, well organised into 8 sections with 2 code examples: a solid amount of guidance for an agent.
With 1,321 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 20 days ago, so xai is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
xai compared with similar skills
All 4 of these similar skills score higher than xai; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| xai (this skill)by Anil-matcha | 87 | 1.3k | 20d ago | SKILL.md |
| taste-skillby Leonxlnx | 100 | 102.3k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 102.2k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 77.8k | 1d ago | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 65.4k | 4d ago | CLAUDE.md |
Frequently asked questions
- How do I install xai?
- Run
npx skills add Anil-matcha/awesome-muse-connectors --skill xai. The install tabs above show the steps for each supported agent. - Which AI agents does xai work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is xai safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is xai still maintained?
- The repository was last updated 20 days ago, so xai is actively maintained.
Skill content
View source on GitHubname: "xai" description: "Query Grok chat completions and list available Grok models through the xAI API. Trigger phrases: xai, grok, chat with grok, grok model." metadata: { "includeInPrompt": true } tagline: "Query Grok chat completions and list available Grok models through xAI's OpenAI-compatible API, with per-call token usage surfaced so cost is always visible." catalog_auth: "API key (per-user)" catalog_hosts: ["api.x.ai"]
xAI (Grok)
Purpose
Send chat completions to Grok and list the Grok models available to your API key, through xAI's OpenAI-compatible REST API. Reach for this when the user wants a Grok answer, a comparison against Grok, or to see which Grok models their key can use.
Tooling
All commands go through bin/xai.py:
bin/xai.py auth # verify the API key
bin/xai.py models # list available Grok models
bin/xai.py chat --model grok-4.6 --message "Summarize this:" # one completion (spends tokens)
bin/xai.py chat --message "Explain caching in one paragraph" \
--system "You are a precise technical writer." \
--temperature 0.7 --max-tokens 500 # with options
chat takes --message (or --prompt as an alias; one is required), plus optional --model (default grok-4.6), --system, --temperature, and --max-tokens. Every completion prints the response text plus its token usage, so the cost is always visible.
Auth
- Provider id:
xai(credential is collected ascustom.xai) - Collection: API key (xAI console > API keys; keys start with
xai-) via the secure credential flow (credentials.request_api_access) - Auth scheme:
Authorization: Bearer <api key>on every request - Allowed hosts:
api.x.ai - Status check:
bin/xai.py auth
Install
Copy, paste to your Muse:
Install this connector: https://raw.githubusercontent.com/bluman1/muse-connectors/main/connectors/xai/SKILL.md
You are Muse. Fetch the URL above: it is a connector skill's SKILL.md.
1. Read its `## Files` manifest and download every listed file from the same directory (replace SKILL.md in the URL with each relative path).
2. Save them under ~/workspace/skills/xai/, preserving paths. Compile any bin/*.py with python3 -m py_compile.
3. Follow the skill's `## Auth` section: connect my account via your secure credential flow (credentials.request_api_access) for the provider id it names.
4. Run the skill's status check and report what the connector can now do.
Never ask me for raw API keys or secrets in chat.
Operating Rules
- Completions spend real money. xAI bills per token (roughly $2.00/1M input and $6.00/1M output for the flagship at the time this was written). Every
chatprints how many tokens the call used, so the cost is visible. A single ordinary completion needs no confirmation gate, but surface the cost and confirm with the user before running large or repeated generations. - Model ids move fast. The CLI defaults to
grok-4.6. That is the flagship named on xAI's docs page (last updated 2026-08-21). Prefer the livemodelsoutput over this file when picking a model; a stale id produces an API error you can act on. - Never exfiltrate the credential: the CLI only ever handles surrogates (see
bin/xai.py). Do not print, log, or transmit the API key. - Honesty flags (unverified while building this connector): the default model id
grok-4.6was confirmed on docs.x.ai (last updated 2026-08-21) but xAI renames models often, so treat it as provisional; the/v1/chat/completionsand/v1/modelspaths were confirmed in xAI's OpenAI-compatible docs but not live-tested. There is no usage or balance endpoint that works with a standard API key:GET /v1/api-keyreturns info about the calling key only. Real billing and usage live on xAI's separate Management API (management-api.x.ai), which requires a Management key plus a team id, and inference API keys are rejected there, so this connector ships nousagecommand. This connector has not been live-tested end-to-end.
Files
- SKILL.md
- bin/xai.py
Maturity
Draft: written from xAI's public docs (docs.x.ai, last checked 2026-09-16); not yet live-tested end-to-end.
Related Skills
taste-skill
102.3kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
102.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
77.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ai-job-search
65.4kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
