@grammeaway/pi-provider-sakana-fugu
Sakana Fugu provider extension for the Pi agentic harness (OpenAI-compatible, /login support)
Package details
Install @grammeaway/pi-provider-sakana-fugu from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@grammeaway/pi-provider-sakana-fugu- Package
@grammeaway/pi-provider-sakana-fugu- Version
1.0.2- Published
- Jun 23, 2026
- Downloads
- 506/mo · 15/wk
- Author
- grammeaway
- License
- MIT
- Types
- extension
- Size
- 5.7 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-provider-sakana-fugu
Disclaimer: Extension written fully by Pi itself.
Adds Sakana Fugu (fugu, fugu-ultra) to the
pi coding agent.
Fugu exposes an OpenAI-compatible API, so this points pi's built-in
openai-responses streamer at https://api.sakana.ai/v1 (the Responses API
is Sakana's recommended path for tooling/agents; Chat Completions also works).
Install
pi install npm:@grammeaway/pi-provider-sakana-fugu
To try it without permanently installing:
pi -e npm:@grammeaway/pi-provider-sakana-fugu
Login
Run /login, choose Use an API key, then Sakana Fugu, and paste the
key from console.sakana.ai. Fugu has no OAuth
flow — the same API key covers both the subscription and pay-as-you-go plans.
The key is stored in ~/.pi/agent/auth.json. Alternatively set SAKANA_API_KEY
in your environment.
Notes
- Reasoning effort: Fugu only accepts
highandxhigh(max); any other value is rejected by the API. Lower levels are hidden, so set the model to high or xhigh —medium/loware not available. - Context window: 1M tokens. Pricing has a higher tier above 272K tokens.
- Costs reflect the published
fugu-ultra-20260615rates; plainfuguuses a blended, unpublished rate, so the same numbers are used as an upper bound. - Long turns: complex
fugu-ultrarequests can run for minutes. If you see dropped streams on long turns, that's a client idle-timeout, not an extension bug (Sakana's own Codex config raises the stream idle timeout to 2h). - EU/EEA access is currently unavailable per Sakana's terms.