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

pandora-cli-skills

v1.1.136

Published

Pandora CLI & Skills

Readme

Pandora CLI & Skills

Pandora is a prediction-market runtime for agents, operators, and integrators. It gives you three ways to work with the same capability surface:

  • MCP for agents that need Pandora tools
  • CLI for humans, scripts, and CI
  • SDK for applications that embed Pandora in code
+----------------------------------------------------------------------------------+
| Start read-only.                                                                 |
| Learn the contract surface first.                                                |
| Add policy scopes, signer profiles, and secrets only on the runtime that         |
| actually needs to execute mutable work.                                          |
+----------------------------------------------------------------------------------+
+----------------------- README MAP -----------------------+
| humans  -> install, inspect, follow task guides          |
| agents  -> bootstrap, schema, MCP, policy/profile checks |
| trust   -> release verification, security, support       |
| sdk     -> TypeScript, Python, generated contracts       |
+----------------------------------------------------------+

External Users

If you are evaluating Pandora for external use, start here instead of reading the full repo top to bottom.

Which path should you use?

| If you want to... | Use | Why | | --- | --- | --- | | Let an agent call Pandora tools | MCP | Fastest path for Claude, Codex, and other MCP-capable agents | | Run Pandora yourself in terminal, automation, or CI | CLI | Best for deterministic commands and operator workflows | | Build a product or custom integration on top of Pandora | SDK | Best for application code that needs library access |

Recommended install paths

Practical recommendation

  • If the goal is "my agent should be able to use Pandora", choose MCP.
  • If the goal is "I want to run commands or automate workflows", choose the CLI.
  • If the goal is "I am writing software on top of Pandora", choose the SDK.
  • Most external users should start with MCP or CLI, not the SDK.

First-run onboarding

If you are starting from a fresh install, use the guided setup path first:

npx pandora setup --interactive
npx pandora setup --interactive --goal live-mirror

Use setup --interactive when you want Pandora to walk you through private key management, Polymarket initialization, optional hosting inputs, and provider setup. Use setup without --interactive when you want the manual init-env plus doctor flow instead.

Start Here

If you want the main documentation map, use these jump points:

For Humans

Use this path if you want the repo explained in order and prefer detailed guidance over terse machine contracts.

Anthropic skill install

If you want Claude.ai or Claude Code to use Pandora as a skill, start here:

Use the generated Anthropic skill bundle from the packaging flow. Do not zip and upload the repo root as a skill. Build it with npm run pack:anthropic-skill, then upload dist/pandora-skill.zip in Claude.ai or install dist/pandora-skill/ in Claude Code.

Detailed setup

npm install
npx pandora setup --interactive
npm run doctor
npm run build
npm run verify:repo
npx pandora help

What each step is for:

  • npm install: install the local CLI and docs/test dependencies
  • npx pandora setup --interactive: scaffold and validate the first-run onboarding path
  • npm run doctor: inspect local runtime readiness before live work
  • npm run build: run the TypeScript typecheck gate
  • npm run verify:repo: run repo-wide verification for docs, trust, SDK parity, and hygiene
  • npx pandora help: browse the command surface manually

If you prefer manual control, use npm run init-env first and then npm run doctor. Guided onboarding is optional and can be skipped at any step.

Flashbots routing note for agents and operators:

  • markets create run and markets hype run can use --tx-route public|auto|flashbots-private|flashbots-bundle for the approval/create leg.
  • auto degrades to public when no FLASHBOTS_AUTH_KEY is available, so private relay submission is not attempted unless you provide one.
  • Put FLASHBOTS_AUTH_KEY=0x... in ~/.pandora-cli.env, or pass --flashbots-auth-key <0x...> explicitly for the session.
  • Generate a dedicated signer with node -e "const { randomBytes } = require('crypto'); console.log('FLASHBOTS_AUTH_KEY=0x' + randomBytes(32).toString('hex'))" and append the emitted line to ~/.pandora-cli.env.

Human reading order

  1. docs/skills/setup-and-onboarding.md for the first-run manual and guided setup path.
  2. docs/skills/command-reference.md for the command families and flags.
  3. docs/skills/trading-workflows.md for discover -> quote -> trade -> claim flows.
  4. docs/skills/mirror-operations.md for mirror planning, validation, deploy, sync, and status.
  5. docs/skills/portfolio-closeout.md for portfolio inspection, LP exits, and closeout.
  6. docs/trust/release-verification.md before installs, release checks, or operator handoff.

If you are testing the Anthropic skill itself rather than the repo manually, use the install guide first and then come back to the docs above for deeper workflow detail.

Safe human-first discovery

If you want to explore without touching signer material:

npx pandora --output json bootstrap
npx pandora --output json capabilities
npx pandora --output json schema
npx pandora --output json policy list
npx pandora --output json profile list

Those commands are the preferred front door for both humans and agents because they expose the current surface area without assuming execution readiness.

For Agents

Use this path if the consumer is an LLM, automation runtime, SDK client, or MCP host.

Choose the operating model first

Self-custody local runtime

Use this when the agent should execute with the user's own wallet and signer material.

  • run pandora mcp locally, or pandora mcp http on the user's own machine or server
  • keep signer material on the user's own runtime
  • prefer this path for live execution with user-owned funds

Hosted read-only / planning gateway

Use this when you want a shared remote endpoint for discovery, bootstrap, schema inspection, recipes, planning, audit, and receipts.

  • host pandora mcp http centrally
  • keep the shared gateway read-only by default
  • only add hosted mutation if you explicitly want a BYO-signer or custodial model
  • do not require self-custody users to route live execution through the shared gateway

One command: bootstrap the contract

npm install && npx pandora --output json bootstrap

Use bootstrap first for canonical tools, recommended next steps, default policy/profile hints, and doc routing.

One command: start local stdio MCP

npm install && npx pandora mcp

Use local stdio MCP when the agent runs on the same machine as Pandora. This is the default self-custody path for live execution.

One command: host remote read-only HTTP MCP

npm install && npx pandora mcp http --auth-scopes capabilities:read,contracts:read,help:read,schema:read,operations:read,scan:read,quote:read,portfolio:read,mirror:read,sports:read,network:indexer,network:rpc,network:polymarket,network:sports

Use remote HTTP MCP only when you intentionally want external agents to connect over the network. Start with read-only scopes and widen later. For most teams, this gateway should be the shared discovery and planning surface, not the default home of user signer material.

Recommended agent order

bootstrap
  -> capabilities
  -> schema
  -> policy list
  -> profile list
  -> profile explain (only when mutation is actually needed)

Agent-first docs

Recommendations

  • Prefer bootstrap over raw help output when the caller is an agent.
  • Prefer canonical tool names. Only use compatibility aliases for legacy callers or migration diffing.
  • Prefer self-custody local runtimes for live execution with user-owned funds.
  • Prefer a hosted HTTP gateway for shared discovery, planning, schema, recipes, audit, and receipt retrieval.
  • Prefer read-only planning first. Do not provision secrets until requiresSecrets, policyScopes, and profile explain say the workflow actually needs them.
  • Prefer --profile-id or --profile-file over raw --private-key when a command family supports profile-directed execution.
  • Prefer pandora mcp for local agents and pandora mcp http for intentionally hosted remote agents.
  • Prefer operations list|get|receipt|verify-receipt when you need persisted state or audit evidence for mutable work.
  • Prefer the trust docs before install, release verification, or external sharing of artifacts.

Critical Safety Rules

  • mirror plan|deploy|go do not use a generic +1h close rule. They use a sports-aware suggested targetTimestamp.
  • mirror deploy|go requires at least 2 independent public resolution URLs from different hosts in --sources.
  • Polymarket, Gamma, and CLOB URLs are discovery inputs only. They are not valid resolution sources.
  • Validation is payload-exact. Reuse the validation ticket or agentPreflight data for execute/live reruns.
  • Treat mutable profiles as not ready until profile explain confirms the exact tool, mode, and runtime context are usable.

Common Paths

Discovery and planning

npx pandora --output json bootstrap
npx pandora --output json capabilities
npx pandora --output json schema
npx pandora scan --output json --limit 10

Pricing before mutation

npx pandora quote --output json --market-address 0x... --side yes --amount-usdc 25

Local runtime checks

npm run doctor
npx pandora --output json profile list
npx pandora --output json profile explain --id market_observer_ro

Docs By Task

SDK Surfaces

Notes:

  • The shipped SDK surfaces are alpha.
  • The SDK is for developers embedding Pandora in their own code. It is not the default path for ordinary agent usage or shell automation.
  • The repository also vendors matching generated manifests under sdk/typescript/generated and sdk/python/pandora_agent/generated.
  • Use the SDK-local manifests first when embedding Pandora in a client.

Repository Layout

.
|-- cli/                  CLI entrypoint and runtime surface
|-- docs/skills/          operator and agent documentation
|-- docs/trust/           release, security, and support docs
|-- docs/benchmarks/      benchmark methodology and scorecards
|-- docs/proving-ground/  proving-ground explainer docs
|-- knowledge-base/       maintained repo wiki layer
|-- proving-ground/       sandbox research lane and generated local evidence
|-- sdk/typescript/       TypeScript SDK surface
|-- sdk/python/           Python SDK surface
|-- sdk/generated/        shared generated contract bundle
|-- references/           contracts and protocol references
|-- scripts/              build, trust, benchmark, and release helpers
`-- tests/                CLI, MCP, workflow, and smoke coverage

Minimal Install Facts

  • Node.js >=18
  • Package bin: pandora
  • Main repo homepage: this README
  • Shareable/sanitized companion guide: README_FOR_SHARING.md

Short Version

Anthropic skill? Install the generated bundle -> test with Pandora-specific prompts -> keep repo root out of skill upload.
Human?  Install -> setup -> doctor -> build -> read command/workflow docs.
Agent?  bootstrap -> capabilities -> schema -> policy/profile -> MCP.
Live?   Add scopes and secrets only after exact readiness checks pass.