# pi — OpenGen Setup

> Use the portable OpenGen CLI; native MCP is not assumed.

- **Client kind:** Local agent
- **Integration approach:** CLI through the agent’s shell
- **Verification status:** DOCUMENTED ONLY (LIVE INTEROPERABILITY UNVERIFIED)
- **Reviewed:** 2026-11-03
- **Canonical HTML:** https://opengen.dev/docs/clients/pi
- **Source reference:** [pi project documentation](https://github.com/earendil-works/pi/tree/main/packages/coding-agent)

## Agent Prompt

```text
Walk the user through connecting pi to OpenGen (https://opengen.dev/mcp for authenticated read+generate OAuth, https://opengen.dev/mcp/readonly for zero-auth catalog discovery, or @opengen-dev/cli for shell workflows) following https://opengen.dev/docs/clients/pi.md. Review configuration commands before running them, keep credentials out of prompts and version control, and verify read-only access (balance / find_models / opengen doctor) before proposing any paid generation.
```

## Setup Steps

1. Install @opengen-dev/cli into an isolated prefix on Node 22.12+ (npm install --prefix "$HOME/.opengen/cli" @opengen-dev/cli --ignore-scripts --no-audit --no-fund) or use the reviewed offline release bundle; no source checkout is needed.
2. Complete opengen login in an interactive terminal (defaults to https://opengen.dev, or set OPENGEN_API_URL for a self-hosted gateway), then run opengen doctor.
3. Ask pi to use the documented CLI for catalog discovery. Keep credentials in the private profile, outside the project.

## Verification Evidence & Cautions

**Important boundaries:** The pi project documents MCP through extensions rather than core support. No extension has been selected or verified; the shell/CLI workflow is also unverified in pi.

## Related Links

- [All Agent Clients & Support Matrix](https://opengen.dev/docs/clients.md)
- [MCP Integration Guide](https://opengen.dev/docs/mcp.md)
- [Quickstart Guide](https://opengen.dev/docs/quickstart.md)
- [Installable Skill (skill.md)](https://opengen.dev/skill.md)
- [AI Index (llms.txt)](https://opengen.dev/llms.txt)
