Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Use the xAI API from the command line v1.0.0

Use this resource to query the xAI API from a terminal, pick a model and track costs

New

  • 342 downloads
  • 162 likes
  • 182 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install xai-api-command-line

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent runs the xai-pp-cli command to call the xAI API, compare models, check readiness and track costs, in agent mode with structured responses. You get output a program can parse, once authentication is set up.

Mostly picked by

Updated November 2, 2026

Card for the “Use the xAI API from the command line” skill

Details

Generates with
Your agent's model
Licence
Apache-2.0

Similar resources

View all

What you get

  • .manuscripts/: live test logs (models, diagnostics, account)
  • .golangci.yml and .goreleaser.yaml: CLI build configuration

Good fit for

  • You want to compare xAI models before choosing one
  • A script must call xAI and read a structured response

Not for

    Tags

    • xai
    • api
    • cli
    • models

    About

    You say

    “Compare the xAI models available to my account and tell me which costs least.”

    Card for the “Use the xAI API from the command line” skill

    Skill published by Cathryn Lavery under the Apache-2.0 license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to query the xAI API from a terminal, pick a model and track costs
    3. Review and adjust the result

    Content preview

    Files

    • .golangci.yml0.2 KB
    • .goreleaser.yaml1.3 KB
    • .manuscripts/20260608-201652/proofs/2026-06-08-151242-fix-xai-pp-cli-build-log-regenerate.md0.8 KB
    • .manuscripts/20260608-201652/proofs/2026-06-08-151242-fix-xai-pp-cli-build-log.md0.7 KB
    • .manuscripts/20260608-201652/proofs/2026-06-08-151242-fix-xai-pp-cli-live-dogfood.json27.4 KB
    • .manuscripts/20260608-201652/proofs/phase5-acceptance.json0.3 KB
    • .manuscripts/20260608-201652/proofs/publish-live-gate.json262.8 KB
    • .manuscripts/20260608-201652/proofs/xai-api-key-live.raw.json0.5 KB
    • .manuscripts/20260608-201652/proofs/xai-doctor-live.json0.7 KB
    • .manuscripts/20260608-201652/proofs/xai-me-live.raw.json0.4 KB
    • .manuscripts/20260608-201652/proofs/xai-models-live.json3.4 KB
    • .manuscripts/20260608-201652/proofs/xai-scorecard-live.json1.6 KB
    • .manuscripts/20260608-201652/proofs/xai-scorecard.json1.2 KB
    • .manuscripts/20260608-201652/proofs/xai-shipcheck.json3.2 KB
    • .manuscripts/20260608-201652/proofs/xai-verify.json4.8 KB
    • .manuscripts/20260608-201652/research.json3.5 KB
    • .manuscripts/20260608-201652/research/2026-06-08-151242-feat-xai-pp-cli-absorb-manifest.md0.7 KB
    • .manuscripts/20260608-201652/research/2026-06-08-151242-feat-xai-pp-cli-brief.md1.6 KB
    • .manuscripts/20260608-201652/research/xai-openapi.normalized.json343.7 KB
    • .printing-press-patches/.gitkeep0 KB
    • .printing-press-patches/ambiguous-write-retries-disabled.json0.7 KB
    • .printing-press-patches/batch-rollback-reports-committed-count.json0.6 KB
    • .printing-press-patches/catalog-go-1265-vuln-floor.json0.7 KB
    • .printing-press-patches/path-parameters-percent-encoded.json0.6 KB
    • .printing-press-patches/xai-publish-polish.json2.3 KB
    • .printing-press-pii-polish.json0.1 KB
    • .printing-press-release.json0.6 KB
    • .printing-press.json2.1 KB
    • agentcookie.toml0.4 KB
    • AGENTS.md2.3 KB
    • apify-actor-audit-report.json0.2 KB
    • CHANGELOG.md0.7 KB
    • cmd/xai-pp-cli/main.go0.4 KB
    • cmd/xai-pp-mcp/main.go0.7 KB
    • go.mod1 KB
    • go.sum7.1 KB
    • internal/cache/cache.go1.7 KB
    • internal/cli/agent_context.go6.9 KB
    • internal/cli/analytics.go5.2 KB
    • internal/cli/api_discovery.go3.7 KB
    • internal/cli/auth.go5.8 KB
    • internal/cli/channel_workflow.go5 KB
    • internal/cli/chat_handle-generic-completion-request.go13.9 KB
    • internal/cli/chat_handle-get-deferred-completion-request.go3.4 KB
    • internal/cli/chat.go0.7 KB
    • internal/cli/data_source.go22.3 KB
    • internal/cli/deliver.go3.6 KB
    • internal/cli/doctor.go19.3 KB
    • internal/cli/embedding-models_handle-get-request.go3.3 KB
    • internal/cli/embedding-models_handle-list-request.go3.1 KB
    • internal/cli/embedding-models.go0.7 KB
    • internal/cli/feedback.go6.7 KB
    • internal/cli/files_content_handle-download-file-request.go2.6 KB
    • internal/cli/files_content.go0.6 KB
    • internal/cli/files_handle-delete-request.go6.6 KB
    • internal/cli/files_handle-list-request.go4.4 KB
    • internal/cli/files_handle-retrieve-request.go3.3 KB
    • internal/cli/files_handle-upload-request.go8 KB
    • internal/cli/files.go0.8 KB
    • internal/cli/helpers.go61.5 KB
    • internal/cli/image-generation-models_handle-get-request.go3.3 KB
    • internal/cli/image-generation-models_handle-list-request.go3.2 KB
    • internal/cli/image-generation-models.go0.7 KB
    • internal/cli/images_handle-edit-request.go9.9 KB
    • internal/cli/images_handle-generate-request.go8.8 KB
    • internal/cli/images.go0.7 KB
    • internal/cli/import.go3 KB
    • internal/cli/language-models_handle-get-request.go3.3 KB
    • internal/cli/language-models_handle-list-request.go3.2 KB
    • internal/cli/language-models.go0.7 KB
    • internal/cli/model_intelligence_test.go2.8 KB
    • internal/cli/model_intelligence.go27.7 KB
    • internal/cli/models_handle-get-request.go3.2 KB
    • internal/cli/models_handle-list-request.go3.1 KB
    • internal/cli/models.go0.6 KB
    • internal/cli/profile.go10.5 KB
    • internal/cli/promoted_api-key.go3.2 KB
    • internal/cli/promoted_complete.go5.8 KB
    • internal/cli/promoted_completions.go8.1 KB
    • internal/cli/promoted_documents.go6.8 KB
    • internal/cli/promoted_embeddings.go5 KB
    • internal/cli/promoted_me.go3.2 KB
    • internal/cli/promoted_messages.go6.6 KB
    • internal/cli/promoted_tokenize-text.go4.2 KB
    • internal/cli/responses_handle-compact-request.go8.3 KB
    • internal/cli/responses_handle-delete-stored-completion-request.go6.8 KB
    • internal/cli/responses_handle-generic-model-request.go14.3 KB
    • internal/cli/responses_handle-get-stored-completion-request.go3.4 KB
    • internal/cli/responses_input-items_handle-list.go4.4 KB
    • internal/cli/responses_input-items.go0.6 KB
    • internal/cli/responses.go0.9 KB
    • internal/cli/root_test.go8.5 KB
    • internal/cli/root.go13.7 KB
    • internal/cli/search.go8.4 KB
    • internal/cli/skills_content_handle-download-skill-request.go1.9 KB
    • internal/cli/skills_content.go0.6 KB
    • internal/cli/skills_handle-delete-request.go6.7 KB
    • internal/cli/skills_handle-list-request.go3.7 KB
    • internal/cli/skills_handle-retrieve-request.go3.3 KB
    • internal/cli/skills_handle-upload-request.go7.5 KB
    • internal/cli/skills.go0.8 KB
    • internal/cli/sync_hint_test.go5.4 KB
    • internal/cli/sync_hint.go3.3 KB
    • internal/cli/sync_numeric_id_test.go1.3 KB
    • internal/cli/sync.go61.2 KB
    • internal/cli/tail.go4.6 KB
    • internal/cli/version.go0.7 KB
    • internal/cli/video-generation-models_handle-get-request.go3.4 KB
    • internal/cli/video-generation-models_handle-list-request.go3.2 KB
    • internal/cli/video-generation-models.go0.7 KB
    • internal/cli/videos_handle-edit-request.go9.3 KB
    • internal/cli/videos_handle-extend-request.go9.3 KB
    • internal/cli/videos_handle-generate-request.go9.4 KB
    • internal/cli/videos_handle-get-deferred-request.go3.3 KB
    • internal/cli/videos.go0.8 KB
    • internal/cli/which_test.go3.9 KB
    • internal/cli/which.go8.7 KB
    • internal/client/client_test.go2.1 KB
    • internal/client/client_verify_short_circuit_test.go6.4 KB
    • internal/client/client.go37.9 KB
    • internal/cliutil/cliutil_test.go26.4 KB
    • internal/cliutil/csv.go1.6 KB
    • internal/cliutil/duration_test.go1.7 KB
    • internal/cliutil/duration.go1.6 KB
    • internal/cliutil/extractnumber_test.go3.5 KB
    • internal/cliutil/extractnumber.go2.5 KB
    • internal/cliutil/fanout.go6.4 KB
    • internal/cliutil/jwtshape_test.go4.5 KB
    • internal/cliutil/jwtshape.go3.6 KB
    • internal/cliutil/odata_date_test.go1.7 KB
    • internal/cliutil/odata_date.go1.6 KB
    • internal/cliutil/probe.go4.8 KB
    • internal/cliutil/ratelimit.go5.1 KB
    • internal/cliutil/text.go2.6 KB
    • internal/cliutil/verifyenv.go4.4 KB
    • internal/config/config.go8.6 KB
    • internal/mcp/cobratree/classify.go3.8 KB
    • internal/mcp/cobratree/cli_path.go1.1 KB
    • internal/mcp/cobratree/names.go0.7 KB
    • internal/mcp/cobratree/shellout_test.go8.1 KB
    • internal/mcp/cobratree/shellout.go4.7 KB
    • internal/mcp/cobratree/typemap.go2.2 KB
    • internal/mcp/cobratree/walker.go2.1 KB
    • internal/mcp/tools_test.go11.7 KB
    • internal/mcp/tools.go94.1 KB
    • internal/store/extras.go0.9 KB
    • internal/store/schema_version_test.go63.7 KB
    • internal/store/store.go117.8 KB
    • internal/store/upsert_batch_test.go53 KB
    • internal/types/types.go37.5 KB
    • LICENSE10.7 KB
    • Makefile0.3 KB
    • manifest.json0.9 KB
    • NOTICE0.5 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • README.md18.2 KB
    • SKILL.md14.8 KB
    • spec.json343.7 KB
    • tools-manifest.json61 KB

    Origin and licence

    Listed unmodified

    Author
    Cathryn Lavery
    Source
    github.com/mvanhorn/printing-press-library/tree/b7f184dc0b34ea3e16e85407ba028d828f59e085/library/ai/xai
    Licence
    Apache-2.0

    Notice

    « pp-xai » (Cathryn Lavery, Apache-2.0) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.