pi-muse-provider

Muse request attribution and subscription usage for Pi

Packages

Package details

extension

Install pi-muse-provider from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-muse-provider
Package
pi-muse-provider
Version
0.1.3
Published
Nov 3, 2026
Downloads
426/mo · 426/wk
Author
makemake_1337
License
unknown
Types
extension
Size
20.3 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-muse-provider

Use Muse subscription credentials in Pi, keeping Pi's native agent loop and tools.

Install

pi install npm:pi-muse-provider

Requires Pi 1.4.0+. For Nix, pin the npm tarball and link src/ to ~/.pi/agent/extensions/muse instead of using pi install.

Use

Log in with Muse, then select a model in Pi:

/model muse/muse-wonder-1.0
/model muse/muse-spark-1.3-contributor

Credentials come from ~/.config/muse/auth.json (respecting XDG_CONFIG_HOME). No separate Pi login is needed. Stored /login muse credentials take precedence; /logout muse restores file/environment authentication.

  • MUSE_AUTH_FILE: override the credential path.
  • MUSE_API_KEY: use an inference key directly.
  • MUSE_USER_AGENT: override the captured Muse 1.4.14 identity. Captured defaults exist for Linux x64 and macOS arm64; other platforms must set it.
  • /muse-usage: show the latest server-reported subscription usage.

Tools are namespaced on the wire. No automatic billing fallback (but you may still be charged. I am a random on the internet. scope your tokens well). In a sandbox, expose the auth file read-only and restart Pi after Muse replaces it.

Development

npm ci --ignore-scripts
npm run typecheck
npm test
# Opt-in live inference and one harmless printf tool call:
npm run check:live -- --live --pi-only --tool-roundtrip