Package Exports
- @newsriver/eliza-plugin
- @newsriver/eliza-plugin/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@newsriver/eliza-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@newsriver/eliza-plugin
The official ElizaOS plugin for the NewsRiver Global Intelligence API.
This plugin connects your Eliza agent to NewsRiver's daily macro and crypto briefings, generated by Gemini 2.5 Pro from over 500 global publishers. It turns your agent into a world-class quantitative researcher.
Built for Autonomous Agents: This plugin natively supports the x402 (HTTP 402 Payment Required) protocol. Your agent can pay for intelligence reports synchronously using USDC on the Base network, or use a traditional API key.
Installation
npm install @newsriver/eliza-pluginSetup
You have two options for authentication:
Option 1: x402 Micropayments (No API Key needed)
If your Eliza agent is configured with a wallet on the Base network, it can automatically handle HTTP 402 responses and pay for intelligence reports per-request (e.g., $0.10 per daily report).
Requires the @x402/core package to be configured in your agent.
Option 2: API Key Subscription
- Get an API Key from NewsRiver.
- Add it to your
.envfile:
NEWSRIVER_API_KEY=nrk_live_your_key_hereUsage
Simply register the plugin in your agent's configuration:
import { newsRiverPlugin } from "@newsriver/eliza-plugin";
const myAgent = {
name: "CryptoTraderBot",
plugins: [newsRiverPlugin]
};Actions Provided
GET_NEWSRIVER_INTELLIGENCE: Allows the agent to automatically check the free/statusendpoint and download the latest synthesized Crypto or Macro intelligence report when a user asks for a market update.