New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

whale-code

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whale-code

whale code — local-first AI agent CLI for inventory, orders, and analytics powered by MCP

latest
Source
npmnpm
Version
6.6.0
Version published
Maintainers
1
Created
Source

WhaleTools

whale-code

Local-first AI agent CLI for inventory, orders, analytics, customers, and more — powered by MCP.

npm version docs license

Install

npm install -g whale-code

Or use the one-liner:

curl -fsSL https://whaletools.dev/install.sh | sh

Quick Start

whale login          # Browser-based OAuth to WhaleTools
whale                # Start interactive chat
whale -p "prompt"    # Non-interactive (print) mode

MCP Integration

Claude Code

Add to ~/.claude/settings.json:

{
  "mcpServers": {
    "whale": {
      "command": "whale"
    }
  }
}

Claude Desktop / Cursor

{
  "mcpServers": {
    "whale": {
      "command": "npx",
      "args": ["whale-code"]
    }
  }
}

Tools

Tools are loaded dynamically from the database — no code changes needed when tools are added or updated.

ToolDescription
analyticsSales analytics with flexible date ranges
inventoryAdjust quantities, set stock, transfer between locations
inventory_queryQuery inventory summary, velocity, by location
inventory_auditStart, count, complete inventory audits
ordersFind orders, get details, purchase orders
purchase_ordersCreate, approve, receive, cancel purchase orders
transfersTransfer inventory between locations
productsFind, create, update products and pricing
customersFind, create, update customers
collectionsManage product collections
suppliersFind and list suppliers
locationsFind store locations
emailSend emails, manage inbox
alertsLow stock and pending order alerts
documentsGenerate COAs and documents
audit_trailView audit logs

CLI Commands

whale                          Start interactive chat
whale -p "prompt"              Non-interactive mode
whale login                    Log in to WhaleTools
whale logout                   Clear saved session
whale status                   Show connection status
whale mcp list|add|remove      Manage MCP servers
whale doctor                   Run diagnostics
whale config [key] [value]     View/set configuration
whale update                   Update to latest version
whale help                     Show help

Development

git clone https://github.com/neowhale/whale-code.git
cd whale-code
npm install
npm run dev

License

MIT

Keywords

mcp

FAQs

Package last updated on 18 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts