Skip to content

Custom endpoint documentation gaps for new open-source users #534

Description

@Apocrathia

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:

  1. Fix the config path in models.md and providers.md: ~/.pi/agent/~/.prime/agent/ (or document both, explaining the fork relationship).
  2. 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]."
  3. Add a link from quickstart.md "Next steps" to models.md and custom-provider.md.
  4. Add CLI selection examples to models.md: prime-agent --model my-provider/my-model and prime-agent --provider my-provider.
  5. 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.
  6. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions