How to Use Grok developer documentation page in opencode
Returns a Grok developer documentation page or a selected section as Markdown. Use it for focused answers about API behavior, such as structured outputs or rate limit rules.
Prompts to try with Grok developer documentation page in opencode
Copy an example into opencode, or ask in your own words.
Use Grok developer documentation page to read developers/rate-limits and review whether this project’s retry logic matches the documented behavior.
Use Grok developer documentation page to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Grok developer documentation page and tell me what changed since last week.
Check Grok developer documentation page and summarize what you find in three bullet points.
Pull the newest data from Grok developer documentation page and give me the result as a table.
How to set up Grok developer documentation page in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Grok developer documentation page
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/get_page", "input": { "path": "<path>" } }'
Then paste one of the prompts above: opencode finds Grok developer documentation page on Spiral, shows the price and runs it.
Grok developer documentation page providers and prices
Spiral runs Grok developer documentation page through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Max chars | 200 to 2000000 | Truncate |
Every API field of xAI (Grok API docs and x.ai news) · Get page is on its tool page: open its card above.
What can you do with Grok developer documentation page 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.
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.
Check a technical comparison article
Verify model names and capabilities against the catalog and specifications. Compare developer guidance, company statements, and announcement text before revising the article’s claims.
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.
Compare a ready-made bot with custom development
Inspect marketplace task descriptions, then check model capabilities and developer documentation for the same job. Produce a feature checklist for deciding which approach deserves a prototype.
More on Grok developer documentation page and opencode
Overview
Grok developer documentation page in other agents
Questions about Grok developer documentation page in opencode
Can opencode use Grok developer documentation page?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Grok developer documentation page like any built-in tool.
How much does Grok developer documentation page 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 Grok developer documentation page in opencode?
No. Spiral runs Grok developer documentation page on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Grok developer documentation page in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Grok developer documentation page runs?
Grok developer documentation page 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.
Start using Grok developer documentation page in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


