npm · npm:@ai-sdk/xai
@ai-sdk/xai active
The latest stable version of @ai-sdk/xai is 5.0.43, published on 2026-11-10. Verified by Vigia on 2026-11-12.
| Latest stable version | 5.0.43 |
|---|---|
| Published | 2026-11-10 20:23:11 UTC |
| Install | npm install @ai-sdk/xai@latest |
| Requires (engines) | {"node":">=22"} |
| Peer dependencies | zod ^3.25.76 || ^4.1.8 |
| Dist-tags | beta: 4.0.0-beta.76 ai-v5: 2.0.104 ai-v6: 3.0.152 alpha: 2.0.0-alpha.15 canary: 4.0.0-canary.74 latest: 5.0.43 snapshot: 0.0.0-f1630544-20260811180950 |
| License | Apache-2.0 |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 18:30:04 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-11-10 17:48:52 UTC · 2 days ago |
| Stable releases in the last 12 months | 321 |
| Published versions | 623 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
5.0.42 | 2026-11-10 17:48:52 UTC |
3.0.152 | 2026-11-10 17:45:55 UTC |
2.0.104 | 2026-11-10 17:41:28 UTC |
5.0.40 | 2026-11-07 19:27:39 UTC |
3.0.151 | 2026-11-07 19:26:00 UTC |
2.0.103 | 2026-11-07 19:24:10 UTC |
3.0.150 | 2026-11-06 22:21:51 UTC |
5.0.39 | 2026-11-05 01:13:06 UTC |
5.0.38 | 2026-11-03 01:21:37 UTC |
2.0.102 | 2026-11-03 01:20:32 UTC |
3.0.149 | 2026-11-03 01:19:44 UTC |
5.0.37 | 2026-11-02 20:24:32 UTC |
3.0.148 | 2026-11-02 20:20:42 UTC |
5.0.36 | 2026-11-02 19:21:13 UTC |
5.0.35 | 2026-10-30 22:18:56 UTC |
2.0.101 | 2026-10-30 19:33:31 UTC |
5.0.34 | 2026-10-30 15:39:12 UTC |
5.0.33 | 2026-10-29 17:10:28 UTC |
3.0.147 | 2026-10-29 17:03:36 UTC |
3.0.146 | 2026-10-27 23:14:06 UTC |
Showing the 20 most recent of 411 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
node 16 | none |
node 18 | 3.0.152 |
node 20 | 3.0.152 |
node 22 | 5.0.42 |
node 24 | 5.0.42 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of @ai-sdk/xai?
The latest stable version of @ai-sdk/xai is 5.0.43, published on 2026-11-10. Verified by Vigia on 2026-11-12.
How do I install the latest version of @ai-sdk/xai?
Run npm install @ai-sdk/xai@latest. The latest stable version is 5.0.43 (verified 2026-11-12).
Is @ai-sdk/xai deprecated?
No. @ai-sdk/xai is not marked as deprecated in the registry.
Which Node.js version does @ai-sdk/xai require?
@ai-sdk/xai 5.0.43 declares this requirement: {"node":">=22"}.
Does @ai-sdk/xai 5.0.43 have known vulnerabilities?
No known advisories affect @ai-sdk/xai 5.0.43 according to the data Vigia checks.
Is @ai-sdk/xai still maintained?
@ai-sdk/xai published 321 stable releases in the last 12 months; the most recent was 2 days ago. Activity: active.
Observed changes
- Wed Nov 11 2026 18:29:39 GM +0000 (Coordinated Universal Time) — released 5.0.43 → 5.0.43
- ue Nov 10 2026 20:29:19 GMT+0000 (Coordinated Universal Time) — released 5.0.42 → 5.0.43
- ue Nov 10 2026 18:29:17 GMT+0000 (Coordinated Universal Time) — released 5.0.40 → 5.0.42
- Sat Nov 07 2026 20:28:23 GM +0000 (Coordinated Universal Time) — released 5.0.39 → 5.0.40
- Sat Nov 07 2026 00:28:09 GM +0000 (Coordinated Universal Time) — released 5.0.39 → 5.0.39
- hu Nov 05 2026 02:27:21 GMT+0000 (Coordinated Universal Time) — released 5.0.38 → 5.0.39
- ue Nov 03 2026 02:26:27 GMT+0000 (Coordinated Universal Time) — released 5.0.37 → 5.0.38
- Mon Nov 02 2026 22:26:24 GM +0000 (Coordinated Universal Time) — released 5.0.37 → 5.0.37
- Mon Nov 02 2026 20:26:23 GM +0000 (Coordinated Universal Time) — released 5.0.35 → 5.0.37
- Fri Oct 30 2026 22:25:28 GM +0000 (Coordinated Universal Time) — released 5.0.34 → 5.0.35
- Fri Oct 30 2026 16:25:25 GM +0000 (Coordinated Universal Time) — released 5.0.33 → 5.0.34
- hu Oct 29 2026 18:25:08 GMT+0000 (Coordinated Universal Time) — released 5.0.32 → 5.0.33
- ue Oct 27 2026 20:23:45 GMT+0000 (Coordinated Universal Time) — released 5.0.31 → 5.0.32
- Mon Oct 26 2026 20:23:04 GM +0000 (Coordinated Universal Time) — released 5.0.30 → 5.0.31
- Sat Oct 24 2026 19:41:23 GM +0000 (Coordinated Universal Time) — released 5.0.29 → 5.0.30
- Fri Oct 23 2026 05:40:57 GM +0000 (Coordinated Universal Time) — released 5.0.29 → 5.0.29
- hu Oct 22 2026 21:40:48 GMT+0000 (Coordinated Universal Time) — released 5.0.28 → 5.0.29
- hu Oct 22 2026 19:40:47 GMT+0000 (Coordinated Universal Time) — released 5.0.27 → 5.0.28
- Wed Oct 21 2026 04:01:20 GM +0000 (Coordinated Universal Time) — released 5.0.26 → 5.0.27
- ue Oct 20 2026 05:57:56 GMT+0000 (Coordinated Universal Time) — released 5.0.25 → 5.0.26
- Mon Oct 19 2026 21:57:52 GM +0000 (Coordinated Universal Time) — released 5.0.25 → 5.0.25
- Mon Oct 19 2026 17:57:50 GM +0000 (Coordinated Universal Time) — released 5.0.24 → 5.0.25
- Fri Oct 16 2026 21:56:56 GM +0000 (Coordinated Universal Time) — released 5.0.23 → 5.0.24
- hu Oct 15 2026 19:56:07 GMT+0000 (Coordinated Universal Time) — released 5.0.22 → 5.0.23
- hu Oct 15 2026 03:55:03 GMT+0000 (Coordinated Universal Time) — released 5.0.21 → 5.0.22
- ue Oct 13 2026 09:52:38 GMT+0000 (Coordinated Universal Time) — released 5.0.21 → 5.0.21
- Mon Oct 12 2026 17:52:06 GM +0000 (Coordinated Universal Time) — released 5.0.20 → 5.0.21
- Fri Oct 09 2026 09:45:55 GM +0000 (Coordinated Universal Time) — released 5.0.20 → 5.0.20
- hu Oct 08 2026 21:45:43 GMT+0000 (Coordinated Universal Time) — released 5.0.19 → 5.0.20
Related packages
- zod
- nice-napi
- @cspell/dict-haskell
- @appium/base-driver
- @turf/transform-rotate
- @cspell/dict-lua
- @aws-sdk/middleware-sdk-rds
- @shopify/flash-list
- @github/copilot
- web3-utils
- @nuxt/telemetry
- @types/prompts
- jwk-to-pem
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/@ai-sdk/xai) [](https://vigia.coredls.cloud/npm/@ai-sdk/xai) [](https://vigia.coredls.cloud/npm/@ai-sdk/xai)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/@ai-sdk/xai
GET https://vigia.coredls.cloud/v1/packages/npm/@ai-sdk/xai/versions/{version}