Spiral gives your agent every tool with one account. Browse the tools →

opencode · Developer

How to Use xAI news index in opencode

Returns xAI announcement titles, summaries, dates, and article links. Use it to find model launches, product updates, and company announcements before reading the full articles.

Prompts to try with xAI news index in opencode

Copy an example into opencode, or ask in your own words.

Use xAI news index to look this up and give me the result as a table. Save the result in ./assets.

xAI news indexopencode
Try asking
  • Pull the latest numbers from xAI news index and tell me what changed since last week.

  • Check xAI news index and summarize what you find in three bullet points.

  • Pull the newest data from xAI news index and give me the result as a table.

  • Check xAI news index every morning and tell me only when something changed.

How to set up xAI news index in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run xAI news index

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "x-ai/developer-docs/list_news",
        "input": {
          "q": "<q>"
        }
      }'

Then paste one of the prompts above: opencode finds xAI news index on Spiral, shows the price and runs it.

xAI news index providers and prices

Spiral runs xAI news index through Alexandria. Open a card for today's price, with every fee included.

AlexandriaDeveloper

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 100

Posts per page (default 20).

Offset0 to 10000

Matched posts to skip.

Every API field of xAI (Grok API docs and x.ai news) · List news is on its tool page: open its card above.

What can you do with xAI news index in opencode?

Turn xAI’s published information into a concrete project review with citations beside the proposed changes. Compare the project’s assumptions with the relevant model specification, documentation section, or product description.

Prepare a Grok product evaluation

Compare subscription features, shortlist marketplace bots, inspect their descriptions, and read the product pages and announcements behind the options.

Plan a Grok application update

Find candidate models, check individual specifications and developer guidance, then review release notes and announcements for changes that affect the proposed work.

Maintain a weekly xAI change brief

Compare saved readings of model specifications, documentation, subscriptions, marketplace listings, and product pages. Add dated release entries and news articles to explain the changes.

Build an internal Grok reference guide

Create separate answers for product features, bot descriptions, model requirements, and developer behavior. Attach the relevant public page, announcement, or release entry to each answer.

Write a product rollout briefing

Explain a Grok product change using its announcement, product page, release notes, and subscription feature comparison. Use the news index to locate related announcements.

Questions about xAI news index in opencode

Can opencode use xAI news index?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run xAI news index like any built-in tool.

How much does xAI news index cost in opencode?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Alexandria account to use xAI news index in opencode?

No. Spiral runs xAI news index on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up xAI news index in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while xAI news index runs?

xAI news index runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Does the source include both developer and consumer product information?

Yes. The developer documentation covers Grok models and API behavior, while xAI’s public website includes subscription comparisons and the Grok Bot marketplace.

What kinds of models does xAI document?

The model catalog includes dedicated audio, image, and video models alongside general models. Individual specification pages provide narrower details, such as Grok 4.7’s 500,000-token context window.

Does a current model page mean the model knows current events?

No. The catalog states that Grok 4.7’s training knowledge cutoff is May 2026. A published specification and a model’s training knowledge describe different things.

Are all marketplace plugins published by xAI?

No. The Composio plugin page names Composio as its publisher, links to the Cursor Marketplace, and provides a terms link.

Can the developer documentation be read one section at a time?

Yes. The documentation reader supports a whole page or one section as clean Markdown, which helps isolate a rule such as the requests-per-second and tokens-per-minute limits.

Get started

Start using xAI news index in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options