pp-xai
БесплатноБез исполняемых скриптовНе проверенPrinting Press CLI for xAI. REST API for xAI compatible with other providers.
от mvanhorn★ 2 170 звёзд на GitHubОб этом скилле
xAI — Printing Press CLI
Prerequisites: Install the CLI
This skill drives the xai-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
- Install via the Printing Press installer. It defaults binaries to
$HOME/.local/binon macOS/Linux and%LOCALAPPDATA%\Programs\PrintingPress\binon Windows:npx -y @mvanhorn/printing-press-library install xai --cli-only - Verify:
xai-pp-cli --version - Ensure the reported install directory is on
$PATHfor the agent/runtime that will invoke this skill.
If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer). This installs into $GOPATH/bin (default $HOME/go/bin), so add that directory to $PATH instead:
go install github.com/mvanhorn/printing-press-library/library/ai/xai/cmd/xai-pp-cli@latest
If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.
Use xAI's REST API from scripts and agents with JSON-first output, local cache support, and MCP tooling. The CLI keeps the official bearer-token contract and exposes read-only inspection commands for model and credential health checks.
Unique Capabilities
These capabilities aren't available in any other tool for this API.
Model planning
model-picker— Rank live xAI models for a task using the authenticated model catalog.Use this before generation, vision, embedding, image, or video workflows when an agent needs a valid model ID.
xai-pp-cli model-picker --task reasoning --json --select recommendations.model,recommendations.whymodel-capabilities— Build a live capability matrix for the authenticated xAI model catalog.Use this when an agent needs to choose between chat, reasoning, vision, embedding, image, and video surfaces.
xai-pp-cli model-capabilities --json --select models.id,models.capabilities
Cost and readiness
cost-preview— Estimate xAI token cost from live model pricing metadata before sending a request.Use this before a large request to estimate prompt and completion cost from xAI's current model metadata.
xai-pp-cli cost-preview --task chat --input-tokens 2000 --output-tokens 500 --jsonsmoke-chat— Verify that the authenticated key can run a tiny xAI chat completion.Use this after auth setup to prove inference works, not only that the key is syntactically valid.
xai-pp-cli smoke-chat --yes --json --select model,success,content_previewapi-key— Inspect the authenticated xAI API key status and permissions without exposing the secret value.Use this when a workflow fails with authorization errors and the agent needs a safe credential-health check.
xai-pp-cli api-key --json --select api_key_blocked,api_key_disabled,acls
Agent readiness
api— Browse the complete generated xAI endpoint surface by interface for agent planning and fallback calls.Use this when a task needs an endpoint that is not obvious from the top-level command list.
xai-pp-cli api
Command Reference
api-key — Manage api key
xai-pp-cli api-key— Get information about an API key, including name, status, permissions and users who created or modified this key.
chat — Manage chat
xai-pp-cli chat handle-generic-completion-request— Create a chat response from text/image chat prompts.xai-pp-cli chat handle-get-deferred-completion-request— Tries to fetch a result for a previously-started deferred completion.
complete — Manage complete
xai-pp-cli complete— (Legacy - Not supported by reasoning models) Create a text completion response.
completions — Manage completions
xai-pp-cli completions— (Legacy - Not supported by reasoning models) Create a text completion response for a given prompt.
documents — Manage documents
xai-pp-cli documents— Search for content related to the query within the given collections.
embedding-models — Manage embedding models
xai-pp-cli embedding-models handle-get-request— Get full information about an embedding model with its model_id.xai-pp-cli embedding-models handle-list-request— List all embedding models available to the authenticating API key with full information.
embeddings — Manage embeddings
xai-pp-cli embeddings— Create an embedding vector representation correspo
Установить pp-xai в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashFAQ
Что делает скилл pp-xai?
Printing Press CLI for xAI. REST API for xAI compatible with other providers.
Как установить скилл pp-xai?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pp-xai запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic