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-radeon

v1.0.2

Published

AMD Radeon Cloud LLM provider for Pi

Readme

pi-radeon

npm version License: MIT Pi Package

AMD Radeon Cloud LLM provider for Pi. Seamlessly connects Pi to the AMD Radeon Cloud Token Factory with dynamic model discovery.


About AMD Radeon Cloud

AMD Radeon Cloud is AMD's GPU cloud platform powered by AMD AI accelerators and the ROCm software stack.

Through its Token Factory service, AMD Radeon Cloud delivers high-performance, cost-effective inference endpoints for state-of-the-art open-source LLMs. Key capabilities include:

  • Massive Context Windows: Up to 1M tokens (e.g., DeepSeek V4 Flash) for large codebase analysis and long-form generation.
  • Hardware-Accelerated Inference: Low-latency execution powered by AMD GPU clusters and optimized serving frameworks (vLLM / SGLang).
  • Reasoning & Function Calling: First-class support for chain-of-thought thinking streams and tool execution.

To use this extension, obtain an API key from the Token Factory at developer.amd.com.cn/radeon.


Features

  • Dynamic Model Discovery: Automatically queries the Radeon Cloud API (/models) on startup to register available models without requiring package updates.
  • Native Reasoning & Thinking: Full support for DeepSeek and Qwen reasoning/thinking tokens and streaming.
  • Tool Calling: Full compatibility with Pi agent tools (file operations, bash execution, code search, diagnostics).
  • Accurate Cost Tracking: Calculates live token pricing (input, output, cache read) per million tokens from API pricing metadata.
  • Resilient Fallback: Instant startup with built-in model definitions if offline or before authentication is configured.

Installation

Install pi-radeon globally in Pi using either npm or GitHub:

From npm

pi install npm:pi-radeon

From GitHub

pi install git:github.com/jh0nz/pi-radeon

Temporary Run (without installation)

pi -e npm:pi-radeon

Authentication

You can authenticate using Pi's interactive /login command or by setting an environment variable.

Option 1: Native Pi Login (Recommended)

Start Pi and run the login command:

/login radeon

Enter your AMD Radeon Cloud API key when prompted. Pi securely stores it in ~/.pi/agent/auth.json.

Option 2: Environment Variable

Export your API key in your shell configuration (~/.bashrc, ~/.zshrc, or ~/.config/fish/config.fish):

export RADEON_API_KEY="rc-your-api-key-here"

The extension also accepts RADEON_CLOUD_API_KEY and AMD_RADEON_API_KEY.


Usage

Interactive Selection

Start Pi and open the model selector:

/model

Select any radeon/... model from the list.

Direct Launch

# DeepSeek V4 Flash (1M context window, reasoning enabled)
pi --model radeon/DeepSeek-V4-Flash

# Qwen 3.8 Flash Next
pi --model radeon/Qwen3.8-Flash-Next

# MiniCPM 5 1B
pi --model radeon/MiniCPM5-1B

List Available Models

pi --list-models | grep radeon

Technical Details

  • Base URL: https://developer.amd.com.cn/radeon/api/v1
  • Protocol: High-performance openai-completions engine with Server-Sent Events (SSE) streaming.
  • Dynamic Endpoint: Queries GET https://developer.amd.com.cn/radeon/api/v1/models with a 3.5s timeout safeguard on startup.

License

MIT (c) jh0nz