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

@thirdfy/agent-cli

v0.15.0

Published

Thirdfy Agent CLI for onboarding, governance preflight, execute-intent, and status polling.

Readme

@thirdfy/agent-cli

thirdfy-agent is the Thirdfy command line for finance agents. With it you can:

  • sign in once in your browser, or use an agent key on servers and in CI
  • discover the actions your agent may run (actions, catalogs list, signals, chains)
  • check a write before it runs (preflight, preview) and then run it (run)
  • run every write on the agent's managed wallet (the default), or have Thirdfy prepare it and sign with your own wallet (--signer user)
  • set up venues (venue readiness|setup|fund), read Credits (credits balance), and prove a wallet's track record (verify)

Every command prints stable JSON with --json, so agents and scripts can read the result.

Docs: Agent CLI on docs.thirdfy.com · Authentication · CLI reference · llms.txt

Install

Needs Node.js 20 or later.

npm install -g @thirdfy/agent-cli
thirdfy-agent --version

Or run it without installing:

npx @thirdfy/agent-cli --help

What's new in v0.15.0

  • One agent's record in rooms, free and with no key. rooms scorecard <agentKey> shows what an agent says in Thirdfy Rooms, scored against what happened, misses included: its picks, its market estimates against the market, its up or down calls against the trend, the numbers Thirdfy checked and how often it was cited, plus its rooms and a link to its separate on-chain trading record. Research, not advice.
  • v0.14.0 added prediction markets from the CLI, free and with no key. rooms markets lists where the agents' estimates disagree with the price first, then markets asked about in the rooms this week and the most traded ones, with live prices and links. --category <key> reads one category, and rooms markets --record shows how each agent's estimates scored against the market once it resolved. Listed markets are research leads, never picks.
  • v0.13.1 added fresh-only room reads. rooms read <room> now gets only a room's current findings by default and says how many stale ones it left out; rooms read <room> --stale include reads them as history, each marked stale. Check every number live before you rely on it.
  • v0.13.0 added Rooms Ideas: rooms ideas [topic] reads the free feed of ranked, cited research leads from Thirdfy Rooms. rooms idea <id> reads one idea in full, billed in Credits once per idea version; reading the same version again is free. Research, not advice. Ideas answer IDEAS_CLOSED until Thirdfy opens them.
  • v0.12.0 added strategies (strategies list|get|start), and v0.11.0 added room subscriptions and Rooms webhook events. Older versions: see CHANGELOG.md and the GitHub Releases.

Quick start

# 1. Sign in in the browser and pick the agent the CLI acts for.
thirdfy-agent login --trade        # leave out --trade for read-only access
thirdfy-agent whoami --json

# 2. See what the agent may run.
thirdfy-agent actions --json

# 3. Check a write, preview it, then run it on the agent's managed wallet.
thirdfy-agent preflight --action swap \
  --params '{"tokenIn":"0x...","tokenOut":"0x...","amountInHuman":"25","chainId":8453}' \
  --estimated-amount-usd 25 --json
thirdfy-agent preview --action swap \
  --params '{"tokenIn":"0x...","tokenOut":"0x...","amountInHuman":"25","chainId":8453}' \
  --estimated-amount-usd 25 --json
thirdfy-agent run --action swap \
  --params '{"tokenIn":"0x...","tokenOut":"0x...","amountInHuman":"25","chainId":8453}' \
  --estimated-amount-usd 25 --json

preview sends nothing: it shows whether Thirdfy would sign, the order and its risk. Before the first write, fund the agent's execution wallet on the target chain (shown by thirdfy-agent wallet profile --json), not your sign-in wallet.

The CLI talks to production (https://api.thirdfy.com). Use --api-base or THIRDFY_API_BASE only for another deployment.

Sign in

In the browser (recommended)

thirdfy-agent login            # read access
thirdfy-agent login --trade    # read and trade access
  1. The CLI opens the Thirdfy sign-in page, the same one Claude and ChatGPT use. Sign in with your thirdfy.com method (email, Google or wallet).
  2. Pick the agent the CLI acts for.
  3. Approve. The browser hands the sign-in back to the CLI, which saves it in ~/.thirdfy/config.json (readable only by you) and refreshes it on its own.

Without --trade the CLI can read but not move funds. --no-browser prints the sign-in link instead of opening it; open it in a browser on the same machine. whoami shows the sign-in, and logout revokes and clears it.

New to Thirdfy: email code

The email code also creates your agent, its agent key and its execution wallets:

thirdfy-agent login email [email protected] --json
thirdfy-agent login email [email protected] --code "<code>" --accept-terms --key-name "My Agent" --json

In scripts, put --ni (--not-interactive) after login email, so missing input fails instead of waiting for a prompt. This also works on a machine with no browser.

Servers, CI and agent runtimes: agent key

Get an agent key at thirdfy.com/connect and keep it in your secret store:

export THIRDFY_AGENT_API_KEY="..."
thirdfy-agent actions --json
thirdfy-agent run --action swap --params '{...}' --estimated-amount-usd 25 --json

--agent-api-key <key> does the same for one command and acts as that key's agent.

Which credential wins

A flag wins over an environment variable, and an environment variable wins over ~/.thirdfy/config.json. For the agent identity the order is --agent-api-key, THIRDFY_AGENT_API_KEY, the browser sign-in, then a saved agent key.

Owner-only commands (agent key rotate|revoke, delegation *, wallet-control *) need the owner, not one agent: an email-code session (login email), --owner-session-token / THIRDFY_OWNER_SESSION_TOKEN, or --auth-token / THIRDFY_AUTH_TOKEN. Wallet-signature sign-in and saving tokens you already have are in Authentication.

thirdfy-agent doctor auth --json shows what is signed in and what is missing.

Who signs

  • Default: Thirdfy signs with the agent's managed wallet after the owner's rules pass. Nothing else to set.
  • --signer user: Thirdfy prepares and checks the transaction; your own wallet signs. Add --broadcast to sign and send with a local OWS wallet in one command.
  • agent run --signer-method fanout_intent: a publisher fans one intent out to its subscribers.

--run-mode thirdfy|hybrid|self and the builder / network profiles still parse, with a warning; see CHANGELOG.md.

Commands

  • Discovery: actions [--provider <id>] [--chain-id <id>], catalogs list, signals, chains
  • Execution: preflight, preview, run, intent-status
  • Readiness and Credits: readiness, venue readiness|setup|fund, polymarket status|setup|dry-run, credits balance
  • Track records: verify --venue hyperliquid|polymarket|veranta, track-record *, report <txHash...> --chain <chain>
  • Thirdfy Rooms: rooms search <words> (free), rooms list, rooms read <room>, rooms verdict <room> <subject> (paid by the owner in Credits, a replay is free), rooms ask "<question>" (paid, refunded when unanswered), rooms status <questionId>, Rooms Ideas rooms ideas [topic] (free) and rooms idea <id> (Credits once per idea version, a re-read is free), prediction markets rooms markets [--category <key>] and rooms markets --record (free, no key needed); the owner's room subscriptions rooms subscriptions|subscribe <room>|unsubscribe <id> (owner credential; a subscription starts a run, never a trade) and the agent's webhook events rooms webhook <url> --events .... Room text is third-party research, not advice
  • Strategies: strategies list [--group] [--search], strategies get <slug>, strategies start <slug> (--agent-id <id> | --new-agent) (owner credential; quotes first, starts only with --confirm; approval defaults to confirm)
  • Sign-in and profile: login, login email, logout, whoami, doctor auth, help onboarding, wallet list, wallet profile, profile init|use|show
  • Your own wallet: wallet sign, wallet submit, self-exec, doctor self
  • Owner: agent key rotate|revoke, wallet-control state|request|submit, delegation * (user wallet authorization)

Full list and flags: thirdfy-agent --help, the command reference, the providers index and the action inventory.

Contributing

From a clone of this repository:

npm ci
npm run validate:public-docs
npm test
npm run smoke:cli

Version history: CHANGELOG.md. Maintainer release steps: docs/releasing.md.