← Catalog

pi-nebius

Nebius Token Factory provider and agentic coding benchmarks for Pi

Package

Install

Install with PiG

pig install npm:pi-nebius

Install with Pi

pi install npm:pi-nebius
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.5.0 (README.md). PiG does not review it.

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:

SettingWhat it controls
TemperatureResponse variability, from 0 to 2, where supported.
Reasoning effortThe model's reasoning effort, where supported.
Maximum output tokensThe response-length limit.
Advanced: context windowThe context limit Pi uses for the model.
Advanced: reasoning supportWhether 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.

Response timing

After each Nebius model response, Pi's footer shows the latest request's statistics:

Nebius · First content: 0.8s · Response: 4.2s · Output: 320 tokens

Timing starts at Pi's pre-request hook. First content is the first nonempty streamed text, reasoning, or tool-call content; response time ends when the assistant message completes. These are client-observed timings including network latency, not server-only generation times. Tool execution is excluded. A prompt with multiple model/tool rounds shows the latest model response, not the whole task. Output tokens use the provider's reported usage. Failed or aborted requests are labeled instead of displaying potentially incomplete token counts.

This footer applies only to Nebius models in interactive Pi. It clears on the next request, model change, or session change; it does not add messages to your conversation.

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:

TaskWork to complete
fix-auth-bugFix refresh-token expiry handling.
add-api-endpointAdd an API endpoint.
refactor-moduleRefactor an existing module.
multi-file-featureImplement a feature across multiple files.

Results appear directly in Pi:

MetricMeaning
Validated successRuns that passed the task's correctness tests.
Input/output tokensAverage token usage per run, including all model requests.
Task durationMedian time to complete a run.
Observed TTFTMedian time from the first request to the first streamed text, reasoning, or tool content.
ThroughputOutput tokens per second across the whole task, including tools and validation.
Agent turns / tool callsAverage 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.

After the summary, a per-request trace shows token usage, context sizes in bytes, tool-output sizes, and repeated operations. These observations help identify where context grows without changing the agent. Byte counts are not token estimates, and repeated calls are not necessarily wasteful.

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

ProblemWhat to do
Missing API keySet 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 modelRun /nebius-refresh, then choose a model with /model.
Rate limit (429)Wait before retrying or reduce request frequency.
Server error (5xx)Retry later.
Connection timeoutCheck your connection and access to api.tokenfactory.nebius.com.
Output cut shortOpen /nebius-model and adjust maximum output tokens within the model's supported limits.
Model does not use toolsSelect a model that supports tool calling.
Benchmark validation failedRead the failure details: the model's solution did not pass the task's tests.

More information

Changelog · Contributing · Security

MIT licensed. See LICENSE.