№ 0907GitHub
pi-meta-oauth: Muse Spark in the pi agent
Meta Model API OAuth for the pi coding agent. It routes Muse Spark through the openai-responses provider, since the author notes the Muse prompt cache hits about 0% on /chat/completions, and sends 24h prompt-cache retention.
pi-meta-oauth
Meta Model API OAuth for pi.
- Use Muse Spark models through Pi's
openai-responsesprovider (not/chat/completions— Muse prompt cache is ~0% there) - Send
prompt_cache_retention: "24h"on Meta Responses requests unless the payload already set a retention - Device authorization against
https://auth.meta.com - Model API-key minting through
POST https://api.meta.ai/muse-code/key - Dynamic Muse model catalog from
GET https://api.meta.ai/v1/models
Install
# OAuth-only branch
pi install git:github.com/BlockedPath/pi-meta-oauth@meta-oauth-only
# Or from a local checkout
pi install /absolute/path/to/pi-meta-oauth
pi --list-models meta
Login
/login meta
Pi displays a device code, opens the Meta authorization flow, and mints a Model API key. Credentials are stored by Pi in ~/.pi/agent/auth.json under provider meta:
{ "meta"





