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

pi-nebius

v0.3.2

Published

Nebius Token Factory provider and agentic coding benchmarks for Pi

Readme

pi-nebius

Use Nebius Token Factory models in Pi and compare them on coding tasks directly inside your session.

  • Discover the models available to your Nebius account.
  • Save per-model temperature, reasoning, and output-token settings.
  • Benchmark models on your own prompt or a bundled coding task.
  • Compare correctness, token usage, completion time, and time to first token.

Requires Node.js 22.19+ and Pi 0.85.1 or a compatible newer version.

Install

With Pi already installed, run in your terminal:

pi install npm:pi-nebius
export NEBIUS_API_KEY="your-api-key"
pi

Get your API key from Nebius Token Factory. Add the export to your shell profile if you want it available in future terminals. Restart Pi after changing the key.

Inside Pi, run /model, search for nebius, and choose a model.

You can also install from GitHub:

pi install git:github.com/PeterHdd/pi-nebius

Model settings

Open the settings menu inside Pi:

/nebius-model

Choose a model to configure:

| Setting | What it controls | | --- | --- | | Temperature | Response variability, from 0 to 2, where supported. | | Reasoning effort | The model's reasoning effort, where supported. | | Maximum output tokens | The response-length limit. | | Advanced: context window | The context limit Pi uses for the model. | | Advanced: reasoning support | Whether Pi treats the model as reasoning-capable. |

You can open a specific model directly with /nebius-model MODEL_ID.

Settings are saved across restarts and apply to new requests. Choose Inherit, clear a numeric value, or use Reset all overrides to restore defaults. A saved reasoning effort takes precedence over Pi's /thinking setting.

Use values supported by the chosen model. Advanced settings change Pi's configuration, not the model's actual capabilities. The default output limit is up to 4,096 tokens; increase it in the menu if your model supports longer responses.

Benchmark inside Pi

To benchmark your selected Nebius model on your own task:

/nebius-benchmark

Enter your prompt in the editor. Run Pi from the project directory you want the models to work on.

To compare two models, once each:

/nebius-benchmark --models moonshotai/Kimi-K2.6,deepseek-ai/DeepSeek-V4-Flash-0731 --runs 1

Use exact model IDs from your /model list. Increase --runs to repeat the task for each model. Runs execute one at a time, each starting from a fresh copy of the same project.

For a bundled task with automatic correctness tests:

/nebius-benchmark --task fix-auth-bug --models moonshotai/Kimi-K2.6,deepseek-ai/DeepSeek-V4-Flash-0731 --runs 1

Available tasks:

| Task | Work to complete | | --- | --- | | fix-auth-bug | Fix refresh-token expiry handling. | | add-api-endpoint | Add an API endpoint. | | refactor-module | Refactor an existing module. | | multi-file-feature | Implement a feature across multiple files. |

Results appear directly in Pi:

| Metric | Meaning | | --- | --- | | Validated success | Runs that passed the task's correctness tests. | | Input/output tokens | Average token usage per run, including all model requests. | | Task duration | Median time to complete a run. | | Observed TTFT | Median time from the first request to the first streamed text, reasoning, or tool content. | | Throughput | Output tokens per second across the whole task, including tools and validation. | | Agent turns / tool calls | Average number of turns and tool calls per run. |

Mean means average; median means the middle value after sorting (the average of the two middle values for an even number of runs). With one run, both show that run's measurement. Failed runs contribute to the performance metrics; missing measurements appear as n/a. Custom prompts have no automatic correctness check, so a completed run does not establish success.

Detailed results, request settings, and resulting files are saved under benchmark-results/. Benchmarks use your saved model settings at the start; later changes do not affect an active comparison.

Project copies include uncommitted changes and respect Git ignores. Dependencies, build output, previous results, .env, and .pem/.key files are excluded. Include dependency setup in your prompt if needed. Projects are limited to 10,000 files / 50 MiB; symlinks and special files are not supported.

Benchmarks use your Nebius account and incur inference charges. Model tools retain normal access to your machine; project copies are not a security sandbox.

To stop a benchmark or view help:

/nebius-benchmark cancel
/nebius-benchmark help

See Benchmarking for custom validated tasks and scripted CLI usage.

Refresh and update

Refresh the list of available Nebius models inside Pi:

/nebius-refresh

Model lists are cached for up to 24 hours. Refreshing preserves your saved settings.

For an npm installation, update from your terminal:

pi update npm:pi-nebius

For a GitHub installation:

pi update git:github.com/PeterHdd/pi-nebius

Then run /reload inside Pi, or restart it.

Troubleshooting

| Problem | What to do | | --- | --- | | Missing API key | Set NEBIUS_API_KEY in the terminal that launches Pi, then restart Pi. | | Authentication error (401/403) | Check your Nebius key and project permissions. | | Missing or unavailable model | Run /nebius-refresh, then choose a model with /model. | | Rate limit (429) | Wait before retrying or reduce request frequency. | | Server error (5xx) | Retry later. | | Connection timeout | Check your connection and access to api.tokenfactory.nebius.com. | | Output cut short | Open /nebius-model and adjust maximum output tokens within the model's supported limits. | | Model does not use tools | Select a model that supports tool calling. | | Benchmark validation failed | Read the failure details: the model's solution did not pass the task's tests. |

More information

Changelog · Contributing · Security

MIT licensed. See LICENSE.