pi-meta-oauth
Use Muse Spark models inside pi via OAuth device login; prompt-cache friendly, dynamic model catalog.
- What
- Use Muse Spark models inside pi via OAuth device login; prompt-cache friendly, dynamic model catalog.
- Cost
- Free
- Needs
- pi (pi.dev) installed; a Meta account; billing enabled on the Meta Model API (usage is billed per token, see the pricing table in the repo README).
- Install
- Copy the installer prompt below into your Muse — your agent does the rest.
Paid API required: this extension is free, but using it bills your Meta Model API account (standard models from $1.25/$4.25 per million input/output tokens; discounted contributor models cost cents per million but allow Meta to use your prompts and completions for product improvement, including training future models). Curated by Skill Harbor: pi-meta-oauth connects the pi coding agent to Meta's Model API through OAuth. Install it, run `/login meta`, and pi walks you through a device-code login against auth.meta.com that mints a Model API key (re-minted daily, stored in ~/.pi/agent/auth.json). It routes Muse Spark models through pi's openai-responses provider, where the prompt cache actually works (cache is near 0% on the chat-completions route), sends prompt_cache_retention 24h by default, and keeps a dynamic Muse model catalog with the real 1M-token context windows. By @BlockedPath (Justin Barlow), listed here with credit to its creator. Honest caveats: the opt-in META_MUSE_USER_AGENT=1 flag makes pi identify as Meta's first-party Muse client to unlock reasoning effort "max" on the contributor model; it relies on undocumented server behavior, is not supported by Meta, may stop working without notice and may conflict with Meta's terms, so enable it only if you accept that risk; use a standard model such as muse-spark-1.3 if you do not want the contributor terms. Skill Harbor never reviews the code, review it yourself before use.
Version:
Quick answer
pi-meta-oauth is a free extension that lets you use Muse Spark models inside pi through OAuth device login, with a prompt-cache friendly setup and a dynamic model catalog. The extension itself is free, but using it bills your Meta Model API account, so check the per-token pricing before you run it.
Install
Copy the install package below, then paste it into Muse🧪 Install ran in our test sandbox · Nov 11, 2026📌 Pinned version: commit 9ab975fPinned version: install the code at commit 9ab975ff8f08bfb22846f306123587055e42bbc5 exactly (Skill Harbor tested this version). Do not substitute a newer version. If this commit is unreachable, stop and tell me. Run Muse Spark models inside pi with OAuth login. Prerequisites: pi (pi.dev) installed; a Meta account; billing enabled on the Meta Model API (usage is billed per token, see the pricing table in the repo README). 1. Install the extension: `pi install npm:pi-meta-oauth` (or `pi install git:github.com/BlockedPath/pi-meta-oauth` to track main, or a local checkout path). 2. Log in: run `/login meta` inside pi. Pi displays a device code, opens Meta's authorization flow, and mints a Model API key stored in ~/.pi/agent/auth.json under provider "meta". Prefer a static key? Set META_API_KEY (or MODEL_API_KEY) and skip the login entirely. 3. Verify: `pi --list-models meta`, then `pi -p --provider meta --model muse-spark-1.3 "Reply exactly: META_OK"`. 4. To scope pi's model picker to Meta models, set `enabledModels: ["meta/*"]` in pi's config. Privacy note: discounted contributor models (muse-spark-*-contributor) allow Meta to use your prompts and completions for product improvement, including training. Use a standard model such as muse-spark-1.3 if you do not want the contributor terms. Optional and risky: setting META_MUSE_USER_AGENT=1 unlocks reasoning effort "max" on the contributor model by sending the Muse CLI's User-Agent. This is undocumented, unsupported by Meta, may stop working without notice and may conflict with Meta's terms; enable it only if you accept that risk for your account.
Saved to your recent installs. Find it anytime on /connect.
🔒 Security, provenance and what this touches
- It works with an API key or a token that you provide.
What the scan found — excerpts from the install prompt
- uses API keys or tokens — 2. Log in: run `/login meta` inside pi. Pi displays a device code, opens Meta's authorization flow, and mints · 2. Connectez-vous : lancez `/login meta` dans pi. Pi affiche un code d'appareil, ouvre le flux d'autorisation
The install prompt below already includes the vetting steps: your agent follows the community checklist before installing anything with executable code. Want more?
Verification certificate
Dated facts about what was checked for this listing, and how. This is not a safety certification.
- Pinned version
- 9ab975f · 2026-10-13
- Sandbox install test
- Install ran in our test sandbox · Nov 11, 2026
- Creator identity
- Not verified
- Install prompt analysis
- 2026-10-13 : uses API keys or tokens
Skill Harbor never reviews the code of a listed skill. These are dated facts about the install prompt and our install test, not a safety certification. Review a skill yourself before you install it. How we verify
Questions
How do I install a skill?
Every product page includes a copy-paste install prompt. Paste it into your Muse and it sets the skill up for you — no manual configuration.
Where does my money go?
Straight to the seller. Skill Harbor never processes payments: checkout happens on the seller’s own page, usually Stripe.
What does the ✓ next to a creator’s name mean?
It means we confirmed the identity of the person behind the listing. It says nothing about the code itself — always check a skill before installing it.