pp-xai
Printing Press CLI for xAI. REST API for xAI compatible with other providers.
от mvanhorn★ 2 170 звёзд на GitHub
Установить pp-xai в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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 corresponding to the input text.
files — Manage files
xai-pp-cli files handle-delete-request— Delete a file by ID.xai-pp-cli files handle-list-request— List files owned by the authenticated team, paginated.xai-pp-cli files handle-retrieve-request— Retrieve metadata for a single file by ID.xai-pp-cli files handle-upload-request— Upl
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Bash
Вложенные файлы
- .golangci.yml
- .goreleaser.yaml
- .manuscripts/20260608-201652/proofs/2026-06-08-151242-fix-xai-pp-cli-build-log-regenerate.md
- .manuscripts/20260608-201652/proofs/2026-06-08-151242-fix-xai-pp-cli-build-log.md
- .manuscripts/20260608-201652/proofs/2026-06-08-151242-fix-xai-pp-cli-live-dogfood.json
- .manuscripts/20260608-201652/proofs/phase5-acceptance.json
- .manuscripts/20260608-201652/proofs/publish-live-gate.json
- .manuscripts/20260608-201652/proofs/xai-api-key-live.raw.json
- .manuscripts/20260608-201652/proofs/xai-doctor-live.json
- .manuscripts/20260608-201652/proofs/xai-me-live.raw.json
- .manuscripts/20260608-201652/proofs/xai-models-live.json
- .manuscripts/20260608-201652/proofs/xai-scorecard-live.json
- .manuscripts/20260608-201652/proofs/xai-scorecard.json
- .manuscripts/20260608-201652/proofs/xai-shipcheck.json
- .manuscripts/20260608-201652/proofs/xai-verify.json
- .manuscripts/20260608-201652/research.json
- .manuscripts/20260608-201652/research/2026-06-08-151242-feat-xai-pp-cli-absorb-manifest.md
- .manuscripts/20260608-201652/research/2026-06-08-151242-feat-xai-pp-cli-brief.md
- .manuscripts/20260608-201652/research/xai-openapi.normalized.json
- .printing-press-patches/.gitkeep
- .printing-press-patches/ambiguous-write-retries-disabled.json
- .printing-press-patches/batch-rollback-reports-committed-count.json
- .printing-press-patches/catalog-go-1265-vuln-floor.json
- .printing-press-patches/path-parameters-percent-encoded.json
- .printing-press-patches/xai-publish-polish.json
- .printing-press-pii-polish.json
- .printing-press-release.json
- .printing-press.json
- AGENTS.md
- CHANGELOG.md
- LICENSE
- Makefile
- NOTICE
- README.md
- agentcookie.toml
- apify-actor-audit-report.json
- cmd/xai-pp-cli/main.go
- cmd/xai-pp-mcp/main.go
- go.mod
- go.sum
FAQ
Что делает скилл 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
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis 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…