Skip to main content
Pi is a minimal, extensible coding agent for your terminal (documentation). It connects to UncensoredGPT as a custom OpenAI-compatible endpoint in models.json. Setup takes about a minute.

1. Set your API key

Create a key in the Console if you don’t have one, then export it:
Add the export to your shell profile (~/.bashrc, ~/.zshrc, …) to make it permanent.

2. Add the provider to models.json

Create or edit ~/.pi/agent/models.json (that’s the default agent directory; set PI_CODING_AGENT_DIR if you use a custom one):
apiKey: "$UNCENSOREDGPT_API_KEY" is resolved from the environment at request time — the key itself never lands on disk.

3. Start Pi

Run /model and the UncensoredGPT models appear in the picker. Press Ctrl+S on one to save it as your default.

How model references work

Pi addresses models as <provider>/<model-id>. Because our model IDs already contain a slash (uncensoredgpt/...), the full reference has three segments:
The first segment is the provider key from models.json (uncensoredgpt); the rest is the model ID exactly as the API expects it.

Notes

  • Trim the models array to just the models you use.
  • contextWindow values are the conservative per-model limits from the coding agents overview. Add maxTokens only if you want to cap output tokens explicitly.
  • All models support tool calling and streaming, so agent features work fully.