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

@wheatley-ai/cli

v0.6.0

Published

Wheatley daemon and CLI

Readme

@wheatley-ai/cli

Wheatley is a personal AI assistant that you host yourself. It runs as a daemon on your machine or server and keeps working when you close the terminal. It remembers what you tell it and runs jobs on a schedule. Before it writes a file or runs a shell command, it asks you.

You can talk to it from the terminal, from the web dashboard, or from Telegram, Slack, and Discord.

This package installs the wheatley command. The daemon, the CLI, and the dashboard all ship in it.

Install

Install script (macOS and Linux)

Works on macOS (arm64, x64) and glibc Linux (x64, arm64):

curl -fsSL https://raw.githubusercontent.com/SphericalKat/wheatley/main/scripts/install.sh | sh

Files go under ${XDG_DATA_HOME:-~/.local/share}/wheatley/ and the binary goes in ${XDG_BIN_HOME:-~/.local/bin}/wheatley, keeping ~/.wheatley for config and data. If your machine does not have Node.js 26.13.1 or newer, the script downloads Node.js automatically into wheatley/runtime (Linux requires libatomic1). Pass --version <version> to pin a release or --no-modify-path to skip shell profile edits.

npm, pnpm, yarn, or bun

Requires Node.js 26.13.1 or newer:

npm install -g @wheatley-ai/cli
# or
pnpm add -g @wheatley-ai/cli
# or
yarn global add @wheatley-ai/cli
# or
bun install -g @wheatley-ai/cli

Homebrew

brew install sphericalkat/tap/wheatley

Homebrew installs Node.js as a dependency.

Arch Linux (AUR)

paru -S wheatley-cli
# or
yay -S wheatley-cli

Quick start

Create the config files. By default they go in ~/.wheatley. Set WHEATLEY_HOME or pass --home to put them somewhere else.

wheatley init

Put your API key in ~/.wheatley/secrets.yaml:

ANTHROPIC_API_KEY: sk-ant-...

Start the daemon:

wheatley daemon

Then, in another terminal:

wheatley ask "Summarize the README in the current folder"
wheatley chat

The dashboard is at http://127.0.0.1:7420.

wheatley init sets up Anthropic with claude-sonnet-5-5. For another provider, pass --provider and --model. For example, wheatley init --provider openai --model gpt-5.4-mini expects OPENAI_API_KEY.

Run it in the background

wheatley service installs a user service: systemd on Linux, launchd on macOS.

wheatley service install
wheatley service start
wheatley service status

Commands

| Command | What it does | | --- | --- | | wheatley init | Create config.yaml and secrets.yaml | | wheatley daemon | Run the daemon in the foreground | | wheatley chat | Open an interactive chat with an agent | | wheatley ask "<prompt>" | Send one prompt and print the reply | | wheatley status | Show the health of the daemon and each agent | | wheatley service <action> | install, start, stop, restart, or status | | wheatley update | Update to the newest release in your major version | | wheatley restore <agent> [id] | List or restore an agent's database backups |

Run wheatley --help for all the options.

With no arguments, ask reads the prompt from stdin:

{ echo "Review this diff:"; git diff; } | wheatley ask

If stdin is not a terminal, ask cannot ask for approval. It denies every tool call that needs one.

Configuration

Wheatley reads its settings from ~/.wheatley/config.yaml. Secrets go in secrets.yaml, and the config refers to them by name. If an environment variable has the same name as a secret, the variable wins.

version: 1

providers:
  anthropic:
    apiKey:
      secret: ANTHROPIC_API_KEY

agents:
  default:
    model:
      provider: anthropic
      id: claude-sonnet-5-5

    # First match wins. Tools without a rule use their own default.
    permissionPolicy:
      - tool: read_file
        action: allow
      - tool: shell
        action: ask

    # Chat with the agent from Telegram.
    frontends:
      - id: phone
        type: telegram
        config:
          botToken:
            secret: TELEGRAM_BOT_TOKEN
          allowedChatIds: [123456789]

    # Give the agent the tools of an MCP server.
    mcpServers:
      github:
        transport: http
        url: https://api.githubcopilot.com/mcp/
        headers:
          Authorization:
            secret: GITHUB_MCP_AUTH

You can define more than one agent. Each agent gets its own model, memory, schedule, and folder under ~/.wheatley/agents/<name>/. After you edit the config, restart the agent from the dashboard or with /restart in a chat.

Approvals

The file and shell tools work inside agents/<name>/workspace. Writing files, running shell commands, and calling MCP tools need your approval by default. When the agent wants to do one of these, the chat shows the tool and its input. You answer with one of these:

  • o: allow it once.
  • c: allow it for the rest of the conversation.
  • a: allow it always. Wheatley adds an allow rule to your config.
  • d <reason>: deny it, and tell the agent why.

An approval waits 15 minutes and then expires. Change this with approvalTimeout on the agent.

Chat commands

| Command | What it does | | ------------------- | ---------------------------------------------- | | /new | Start a new conversation | | /model <id> | Use another model for this conversation | | /compact | Compact the conversation to save context | | /stop | Stop the current run | | /goal <objective> | Start a long-running task | | /status | Show the conversation, model, and agent health | | /restart | Restart the agent |

What else it does

  • Memory. Each agent keeps notes in agents/<name>/memory/MEMORY.md and reads them at the start of each conversation. Every day at 03:00, the agent reviews its notes. It merges duplicates and removes facts that are out of date.
  • Schedules. Ask "remind me every weekday at 9 to check my email" and the agent creates a cron trigger. It can set one-off reminders too. A webhook trigger starts a run when it receives an HTTP request. You create webhook triggers in the dashboard.
  • Skills. Put a folder with a SKILL.md in ~/.wheatley/skills/ to share it with all agents, or in agents/<name>/skills/ for one agent.
  • Plugins. Add your own tools and chat integrations in TypeScript. See @wheatley-ai/sdk.

Docker

If you would rather not install Node.js, use the image on the GitHub Container Registry:

docker volume create wheatley-data
docker run --rm -v wheatley-data:/data ghcr.io/sphericalkat/wheatley:latest wheatley init
docker run --rm -v wheatley-data:/data ghcr.io/sphericalkat/wheatley:latest \
  sh -c 'printf "daemon:\n  host: 0.0.0.0\n  port: 7420\n" >> /data/config.yaml'
docker run --rm -v wheatley-data:/data ghcr.io/sphericalkat/wheatley:latest \
  sh -c 'echo "ANTHROPIC_API_KEY: sk-ant-..." >> /data/secrets.yaml'

docker run -d --name wheatley --init --restart unless-stopped --stop-timeout 45 \
  -p 127.0.0.1:7420:7420 -v wheatley-data:/data ghcr.io/sphericalkat/wheatley:latest

Each release gets four image tags. For release 0.1.0, these are 0.1.0, 0.1, 0, and latest.

Updating

wheatley update --check
wheatley update

wheatley update detects how you installed Wheatley (npm, pnpm, yarn, bun, Homebrew, or the curl script) and upgrades within your current major version. Pass --method <name> to override detection. For Volta, mise, AUR, and Docker installs, it prints the native update command without touching files.

Major version upgrades are never installed automatically. Run the command wheatley update prints for your install method, then restart the daemon (for example wheatley service restart).

Security

The daemon has no login. Anyone who can reach port 7420 can use your agents, so keep it on 127.0.0.1, which is the default. It also rejects browser requests from other origins. If you need remote access, use an SSH tunnel or a private network such as Tailscale.

License

ISC