# Pi v0.80.2: credential type alignment, request-scoped auth fixes

> Patch release changing the pi-ai ApiKeyCredential discriminator from `api-key` to `api_key` for auth.json compatibility, renaming a public harness execution type, and fixing request-scoped auth resolution, custom model compat metadata, and restored legacy API stream aliases.

| | |
|---|---|
| **Tool** | Pi |
| **Version** | v0.80.2 |
| **Kind** | release |
| **Published** | 2026-06-23 |
| **Observed** | 2026-08-21 |
| **Significance** | 2/5 |
| **Breaking** | no |
| **Categories** | fix, api-change |

## What changed


- Changed inherited pi-ai `ApiKeyCredential` to use `auth.json`-compatible discriminator `type: "api_key"` instead of `type: "api-key"`
- Renamed inherited agent-core public harness shell execution options type from `ExecutionEnvExecOptions` to `ShellExecOptions`
- Fixed inherited Anthropic-compatible custom models to use explicit compatibility metadata instead of provider-name heuristics
- Fixed request-scoped `apiKey` and `env` values to participate in provider auth resolution
- Restored inherited temporary legacy per-API stream aliases on pi-ai compat entrypoint
- Restored inherited runtime `detectCompat` fallback for models without explicit compat metadata


## Sources

- [github_release](https://github.com/earendil-works/pi/releases/tag/v0.80.2) — retrieved 2026-08-21


## Community

_No curated reactions recorded. Facts and community takes are kept in separate layers
and never blended._

---
Canonical: https://changelogs.info/pi/v0-80-2
Entity: https://changelogs.info/pi
Event ID: `evt_2026-06-23_pi_v0-80-2`
Licence: event synthesis © changelogs.info, CC BY 4.0. Linked sources belong to their vendors.
