npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@jellyos/agent

v0.3.0

Published

JellyOS — standalone AI trading agent. Runs locally, no server required.

Readme

@jellyos/agent

Autonomous AI trading agent. Runs 100% locally. No server. No inbound ports.

npm npm Node License: MIT


What's in this package

JellyOS is a full-stack AI trading agent engine — multi-chain wallet management, trading execution, encrypted vault, prediction markets, live data feeds, and 70+ tests.

| Component | Description | |-----------|-------------| | AgentRunner | Multi-model agentic loop with tool dispatch, swarm routing, reflection | | ModelClient | Streaming OpenAI-compatible client with fallback rotation + thinking mode | | ModelRegistry | Dynamic model discovery, tier classification, cost tracking (356 models) | | SwarmRouter | LLM-based task decomposition + parallel sub-agent execution | | SessionManager | Conversation history with 3-tier smart compaction + turbo headroom tracking | | MemoryStore | SQLite long-term memory (cross-session, persistent) | | GoalManager | Persistent cross-session goals injected into every turn | | ContextStore | Ephemeral task context folders (auto-deleted on completion) | | AgentScheduler | Cron + price-trigger autonomous task scheduling | | MCPServer | Model Context Protocol server (Claude Desktop / Cursor compatible) | | BlockchainManager | Multi-chain support: Ethereum, BSC, Arbitrum, Base, Polygon, Solana, Cosmos + 10 more via Alchemy | | PolymarketClient / KalshiClient / JupiterClient / ManifoldClient | Prediction market trading + aggregation | | TradeExecutor / PositionManager / PortfolioManager / RiskManager | Full trading engine with position tracking and risk controls | | VaultManager / AutoVault | AES-256-GCM encrypted profit vault with auto-sweep | | WalletManager | EVM + Solana + Cosmos keypair generation, signing, encrypted storage | | PredictionModel / VolatilityModel / LiquidityModel | AI-powered price prediction, volatility forecasting, liquidity analysis | | FeedManager / SignalEngine | 21 live data feeds with cross-feed trading signal generation | | ConfigLoader / EnvLoader | Layered configuration from files, env vars, and CLI | | CheckpointManager / TaskQueue / TaskDispatcher | Agent checkpointing and parallel task execution | | AuthMiddleware / RateLimitMiddleware | Express middleware for dashboard/API security | | CryptoUtils / ValidationUtils / Utils | Cryptographic helpers, input validation, formatting utilities | | SetupWizard | Interactive first-run setup wizard | | 18 built-in tools | Prices, candles+TA, news, Fear&Greed, funding rates, BTC mempool, DeFi TVL, Solana TPS, model management, goals, tasks, scheduling | | Ink TUI | Terminal UI with live ticker, context pressure monitor, approval gates | | Telegram Bot | Full Telegram bot with Irys permanent storage, points/rank system |


Install

npm install -g @jellyos/agent

Quick Start

mkdir -p ~/.jelly
echo "OPENROUTER_API_KEY=sk-or-..." > ~/.jelly/.env
jellyos

Headless Mode

# Single turn, print to stdout, exit
jellyos --headless "what is the current ETH price and RSI on the 1h chart?"

# Use in scripts
RESULT=$(jellyos --headless "summarize BTC market conditions")
echo "$RESULT"

MCP Server (Claude Desktop / Cursor)

# Start MCP server — exposes all 18 tools to any MCP client
jellyos-mcp

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "jellyos": {
      "command": "jellyos-mcp"
    }
  }
}

Configuration (~/.jelly/.env)

# AI Provider (pick one)
OPENROUTER_API_KEY=sk-or-...    # recommended — 356 models
ANTHROPIC_API_KEY=sk-ant-...    # direct Anthropic
OPENAI_API_KEY=sk-...           # direct OpenAI
OPENAI_BASE_URL=http://localhost:11434/v1  # Ollama / local

# Optional model pool (up to 5, rotated on rate-limit)
JELLY_MODEL_1=anthropic/claude-opus-4.7
JELLY_MODEL_2=openai/gpt-5.5
JELLY_MODEL_3=google/gemini-3.5-flash

# Blockchain
ALCHEMY_KEY=...                 # On-chain data across 16 EVM chains
POLYMARKET_API_KEY=...          # Prediction market trading
KALSHI_API_KEY=...              # US regulated prediction markets

# Agent behaviour
JELLY_EFFECT_LEVEL=normal       # eco | normal | turbo | max
AUTO_VAULT_THRESHOLD=500        # Auto-sweep P&L to vault above this USD amount
JELLY_MAX_AGENTS=5              # Max parallel sub-agents in swarm mode

# Telegram (optional)
TELEGRAM_BOT_TOKEN=...          # From @BotFather
BOT_ADMIN_IDS=...               # Comma-separated Telegram UIDs
IRYS_PRIVATE_KEY=...            # For permanent Telegram storage

Built-in Tools

| Tool | Description | Source | |------|-------------|--------| | get_prices | Live prices + 24h change | Binance + CoinGecko | | get_candles | OHLCV data + RSI/MACD/Bollinger analysis | Binance | | get_top_movers | Largest 24h movers | Binance | | get_market_overview | Aggregated market summary | Multi-source | | get_news | Headlines + sentiment scoring | CoinDesk/CoinTelegraph/TheBlock | | get_fear_greed | Fear & Greed Index (7-day history) | alternative.me | | get_funding_rates | Perp funding rates (long/short bias) | Binance | | get_btc_mempool | BTC pending txs + fee rates | mempool.space | | get_defi_tvl | DeFi TVL by chain | DeFiLlama | | get_solana_stats | Solana TPS + network health | Solana RPC | | analyze_ta | RSI, MACD, Bollinger, EMA, ATR on price arrays | Local | | list_models | Search 356 available AI models | OpenRouter | | pick_model | Find cheapest model for requirements | OpenRouter | | set_goal / list_goals / complete_goal | Persistent cross-session goals | Local | | schedule_task / list_schedule | Cron + price-trigger scheduling | Local | | read_task_context / list_tasks | Ephemeral task context folders | Local | | cost_report | Session + lifetime token usage | Local | | get_balance | Wallet balance on any supported chain | Local + Alchemy | | sign_transaction | Sign a tx hex in-memory | Local | | execute_trade | Submit a swap (requires confirmation) | Local | | get_positions / get_portfolio | Open positions + portfolio P&L | Local | | calculate_risk | Risk/reward + position sizing | Local | | vault_status / vault_sweep | Vault balance + auto-sweep | Local | | predict_market | AI price prediction for an asset | Local | | get_signals | Active trading signals from signal engine | Local |

All data tools are free — no API keys required.


Effect Levels

/effect eco      # minimal tool calls, cheapest models
/effect normal   # balanced (default)
/effect turbo    # 2 parallel sub-agents for complex tasks
/effect max      # 5 agents + thinking models for deep research

Extension API

import { Type } from "@jellyos/agent";
import type { ExtensionAPI } from "@jellyos/agent";

export default function (agent: ExtensionAPI) {
  agent.setSystemPrompt("You are a DeFi yield optimizer.");

  agent.registerTool({
    name:             "get_apy",
    label:            "Get APY",
    description:      "Fetch current APY for a DeFi protocol",
    requiresApproval: false,  // set true for money-moving tools
    parameters: Type.Object({
      protocol: Type.String({ description: "Protocol name e.g. aave" }),
    }),
    async execute(_id, { protocol }) {
      const res  = await fetch(`https://api.llama.fi/protocol/${protocol}`);
      const data = await res.json() as Record<string, unknown>;
      return {
        content: [{ type: "text", text: `${protocol}: ${JSON.stringify(data)}` }],
        details: {},
      };
    },
  });

  agent.on("session_start", async (ctx) => {
    ctx.ui.setStatus("yields", "ready");
  });
}
jellyos --extension ./my-extension.ts

REPL Commands

/help                  List commands
/effect [level]        eco | normal | turbo | max
/prices [symbols]      Quick price check
/news                  Latest headlines + sentiment
/goals                 List active goals
/goal add <text>       Add a persistent goal
/goal done <id>        Mark goal complete
/schedule              List scheduled tasks
/tasks                 List active context folders
/traces                Show last 5 agent traces with timing
/memory <query>        Search long-term memory
/models [query]        Search available AI models
/cost                  Session + lifetime cost report
/vault                 Show encrypted vault balance
/wallets               Show all wallet addresses
/signals               Request current trading signals
/status                Full system health check
/approve | /deny       Respond to tool approval gates
/palette               Full command + tool list
/clear                 Clear conversation history
/panic                 Emergency stop — close positions, sweep vault, lock
/exit                  Quit JellyOS
Escape                 Abort in-flight model stream
Ctrl-C                 Exit

Supported Chains

Ethereum, BSC, Arbitrum, Base, Polygon, Avalanche, Optimism, Scroll, Linea, zkSync Era, Mantle, Blast, Solana, Cosmos, and more via Alchemy and public RPCs.


Telegram Bot

JellyOS can run as a Telegram bot with permanent storage on Irys:

jellyos telegram

| Command | Description | |---------|-------------| | /start | Welcome + language detection | | /contribute | Submit contributions for points | | /status | View points, rank, daily quota | | /memory | List your contributions | | /rank | View top 10 leaderboard | | /verify | Link EVM wallet via nonce challenge |


Public API

import {
  // Core agent
  AgentRunner, ModelClient, ToolDispatcher, SwarmRouter,
  ModelRegistry, CostTracker, SessionManager, MemoryStore,
  GoalManager, ContextStore, AgentScheduler, MCPServer,
  Tracer, loadExtension,

  // Blockchain
  BlockchainManager, AlchemyClient, SolanaClient, CosmosClient,
  ChainClientFactory, BlockchainOrchestrator,

  // Prediction markets
  PolymarketClient, KalshiClient, JupiterClient, ManifoldClient,
  PredictionMarketAggregator,

  // Trading
  TradeExecutor, PositionManager, PortfolioManager, RiskManager,
  TradingEngine, createTradingEngine,

  // Vault & Wallet
  VaultManager, AutoVault, WalletManager,

  // Prediction
  PredictionModel, VolatilityModel, LiquidityModel,
  PredictionEngine, createPredictionEngine,

  // Feeds & signals
  FeedManager, SignalEngine,

  // Core utilities
  ConfigLoader, EnvLoader, CheckpointManager, TaskQueue,
  TaskDispatcher, JellyBrain, Logger, Metrics, LoggerFactory,

  // Context
  AgentMemory, createAgentMemory, MarketMemory, ContextOrchestrator,

  // Middleware
  AuthMiddleware, RateLimitMiddleware, MiddlewareStack,

  // Utils
  CryptoUtils, ValidationUtils, Utils,

  // Setup
  SetupWizard,

  // Types
  Type,
} from "@jellyos/agent";

Changelog

v0.3.0

  • jellyos setup now works: replaced stub with interactive SetupWizard — prompts for API keys, configures chains, generates wallets, saves to ~/.jelly/.env
  • Standardized home directory: all modules now use ~/.jelly (was split between ~/.jelly and ~/.jellyos)
  • npm postinstall: creates ~/.jelly/ directory on install so first-run is seamless
  • setup.sh included in package: ships with npm so users can run the bash setup if preferred
  • bin/jellyos launcher simplified: removed 500+ lines of duplicated inline crypto code (Keccak256, bech32, base58) — now delegates to dist/cli.js
  • bin/telegram.js fixed: properly forwards args to compiled CLI
  • bin/jelly-config path fix: uses dist/vault/VaultManager.js instead of broken src/ reference
  • MCP entry.ts cleanup: removed as unknown as Record<string, unknown> hack for model registry tools
  • --help / --version flags added to CLI
  • lockCoreFiles() wired in: integrity check now runs during JellyHome.init() on setup
  • Abandoned src/test/ directory excluded from tsconfig / npm package
  • publish.sh improved: adds test run, preflight validation, git tagging instructions
  • Hardcoded MCP version updated from 0.1.5 to 0.3.0
  • 53 tests passing (up from 4 passing in v0.2.1 — vitest wasn't configured)

v0.2.2

  • Full CLI restore: replaced stripped-down cli.ts with complete version — headless mode (--headless), extension loading (--extension), interactive TUI boot, model registry initialization
  • Blockchain layer: added BlockchainManager, AlchemyClient, SolanaClient, CosmosClient, ChainClientFactory
  • Prediction markets: added PolymarketClient, KalshiClient, JupiterClient, ManifoldClient, PredictionMarketAggregator
  • Trading engine: added TradeExecutor, PositionManager, PortfolioManager, RiskManager, TradingEngine
  • Vault: added VaultManager, AutoVault
  • Wallet: added WalletManager (EVM + Solana + Cosmos keypair management)
  • Core: added ConfigLoader, EnvLoader, CheckpointManager, TaskQueue, TaskDispatcher, JellyBrain
  • Prediction models: added PredictionModel, VolatilityModel, LiquidityModel, PredictionEngine
  • Feeds: added FeedManager, SignalEngine
  • Middleware: added AuthMiddleware, RateLimitMiddleware
  • Context: added AgentMemory, MarketMemory, ContextOrchestrator
  • Utils: added CryptoUtils, ValidationUtils, Utils (sleep, retry, debounce, throttle, format helpers)
  • Setup: added SetupWizard
  • Vector store: added vector store export
  • Barrel exports: added Index.ts / index.ts barrel files for all modules
  • Public API: expanded src/index.ts exports to cover all new modules
  • Dependencies: added argon2 (vault encryption), ethers (EVM wallet), tsx (extension loader), updated express, telegraf, vitest
  • Config: added src/config/chains.ts, config.json, secrets.example.json
  • Tests: added ModelClient.test.ts, VaultManager.test.ts, WalletManager.test.ts (70 total tests)
  • Bin: added jellyos, jelly-config, irys-uploader-server.js
  • Fixed: bin/telegram.js import path (was broken — pointed to src/cli.js instead of dist/cli.js)

v0.2.1

  • Initial public release: core agent engine, 18 built-in tools, Ink TUI, Telegram bot skill, MCP server, scheduler, session management, memory store, goal manager

License

MIT