Summary
The documentation for connecting custom OpenAI-compatible endpoints is technically thorough but hard to discover for new users. With the project going open-source, users will want to bring their own endpoints (Ollama, vLLM, LM Studio, proxies), but the current docs bury this path and have a path discrepancy that will trip people up.
Affected documentation
docs/models.md — config path references throughout
docs/providers.md — "Custom Providers" section and "Auth File" section
docs/quickstart.md — "Authenticate" section and "Next steps"
docs/index.md — "Customization" section navigation
README.md — "Custom providers & models" subsection
What's wrong or missing
1. Config directory name is wrong for prime-agent.
All docs reference ~/.pi/agent/models.json, but prime-agent uses ~/.prime/agent/. For example, docs/models.md opens with:
Add custom providers and models (Ollama, vLLM, LM Studio, proxies) via ~/.pi/agent/models.json.
The README.md mentions ~/.prime/agent/models.json once in passing, but models.md and providers.md consistently use the upstream ~/.pi/agent/ path. This will trip up every new user who follows the docs.
2. The quickstart doesn't mention custom endpoints at all.
docs/quickstart.md only covers /login (subscription) and API keys for built-in providers. There's no breadcrumb from the quickstart to models.md. The "Next steps" section links to providers, settings, keybindings, sessions, and packages — but not to models.md or custom-provider.md.
3. The index page buries custom models under "Customization."
docs/index.md lists "Custom Models" and "Custom Providers" under the Customization section, below Extensions, Skills, Prompt Templates, Themes, and Packages. A user who just wants to use their own model would look under "Providers" or "Start here," not "Customization."
4. No --provider / --model CLI examples for custom providers.
docs/models.md explains how to define a provider in models.json but doesn't show how to select it from the CLI (e.g., prime-agent --model my-provider/my-model or --provider my-provider). The /model command is mentioned, but the provider/model selector syntax isn't documented.
5. No troubleshooting or "common setups" section.
The compat flags are documented as a reference table, but there's no "if you see error X, set flag Y" guide. New users hitting developer role errors or reasoning_effort errors from vLLM/Ollama have to read the full compat table and figure out which flags apply.
6. The /login flow doesn't surface custom providers in the docs.
Custom providers from models.json with an apiKey field appear in the /login provider selector, but the docs don't mention this. Users might not realize they can store their custom endpoint's API key via /login instead of putting it in models.json or an env var.
Suggested fix
In priority order:
- Fix the config path in
models.md and providers.md: ~/.pi/agent/ → ~/.prime/agent/ (or document both, explaining the fork relationship).
- Add a "Custom endpoints" section to
quickstart.md — even just 5 lines: "Want to use your own OpenAI-compatible endpoint (Ollama, vLLM, LM Studio, etc.)? See Custom Models. Minimal example: [3-line JSON snippet]."
- Add a link from
quickstart.md "Next steps" to models.md and custom-provider.md.
- Add CLI selection examples to
models.md: prime-agent --model my-provider/my-model and prime-agent --provider my-provider.
- Add a "Common setups" section to
models.md with ready-to-copy configs for the three most popular cases (Ollama, vLLM, generic OpenAI-compatible proxy) — including the compat flags each typically needs.
- Consider promoting "Custom Models" higher in
index.md — move it from "Customization" to "Start here" or right after "Providers," since using your own model is a first-run concern, not a customization.
Additional context
The underlying models.md and custom-provider.md reference documentation is excellent — the issue is discoverability and the path discrepancy, not content quality. The compat flag reference table is comprehensive; it just needs a "common setups" shortcut for the 80% case.
Related: PR #533 adds the issue template used to file this.
Summary
The documentation for connecting custom OpenAI-compatible endpoints is technically thorough but hard to discover for new users. With the project going open-source, users will want to bring their own endpoints (Ollama, vLLM, LM Studio, proxies), but the current docs bury this path and have a path discrepancy that will trip people up.
Affected documentation
docs/models.md— config path references throughoutdocs/providers.md— "Custom Providers" section and "Auth File" sectiondocs/quickstart.md— "Authenticate" section and "Next steps"docs/index.md— "Customization" section navigationREADME.md— "Custom providers & models" subsectionWhat's wrong or missing
1. Config directory name is wrong for prime-agent.
All docs reference
~/.pi/agent/models.json, but prime-agent uses~/.prime/agent/. For example,docs/models.mdopens with:The
README.mdmentions~/.prime/agent/models.jsononce in passing, butmodels.mdandproviders.mdconsistently use the upstream~/.pi/agent/path. This will trip up every new user who follows the docs.2. The quickstart doesn't mention custom endpoints at all.
docs/quickstart.mdonly covers/login(subscription) and API keys for built-in providers. There's no breadcrumb from the quickstart tomodels.md. The "Next steps" section links to providers, settings, keybindings, sessions, and packages — but not tomodels.mdorcustom-provider.md.3. The index page buries custom models under "Customization."
docs/index.mdlists "Custom Models" and "Custom Providers" under the Customization section, below Extensions, Skills, Prompt Templates, Themes, and Packages. A user who just wants to use their own model would look under "Providers" or "Start here," not "Customization."4. No
--provider/--modelCLI examples for custom providers.docs/models.mdexplains how to define a provider inmodels.jsonbut doesn't show how to select it from the CLI (e.g.,prime-agent --model my-provider/my-modelor--provider my-provider). The/modelcommand is mentioned, but theprovider/modelselector syntax isn't documented.5. No troubleshooting or "common setups" section.
The
compatflags are documented as a reference table, but there's no "if you see error X, set flag Y" guide. New users hittingdeveloperrole errors orreasoning_efforterrors from vLLM/Ollama have to read the full compat table and figure out which flags apply.6. The
/loginflow doesn't surface custom providers in the docs.Custom providers from
models.jsonwith anapiKeyfield appear in the/loginprovider selector, but the docs don't mention this. Users might not realize they can store their custom endpoint's API key via/logininstead of putting it inmodels.jsonor an env var.Suggested fix
In priority order:
models.mdandproviders.md:~/.pi/agent/→~/.prime/agent/(or document both, explaining the fork relationship).quickstart.md— even just 5 lines: "Want to use your own OpenAI-compatible endpoint (Ollama, vLLM, LM Studio, etc.)? See Custom Models. Minimal example: [3-line JSON snippet]."quickstart.md"Next steps" tomodels.mdandcustom-provider.md.models.md:prime-agent --model my-provider/my-modelandprime-agent --provider my-provider.models.mdwith ready-to-copy configs for the three most popular cases (Ollama, vLLM, generic OpenAI-compatible proxy) — including thecompatflags each typically needs.index.md— move it from "Customization" to "Start here" or right after "Providers," since using your own model is a first-run concern, not a customization.Additional context
The underlying
models.mdandcustom-provider.mdreference documentation is excellent — the issue is discoverability and the path discrepancy, not content quality. Thecompatflag reference table is comprehensive; it just needs a "common setups" shortcut for the 80% case.Related: PR #533 adds the issue template used to file this.