Feature Request: Support custom model providers and model selection
Feature Request
Problem
Currently Paseo only supports Gemini models for the agent. Users who want to use other model providers (e.g., OpenAI, Anthropic, Ollama, or other LLM gateways) cannot do so. There is no way to configure a custom model service endpoint or select a different model.
Proposed Solution
Add support for:
- Custom model provider endpoint — Allow users to configure any OpenAI-compatible API endpoint (e.g., `http://localhost:11434/v1` for Ollama, or any LLM gateway/mesh service like LiteLLM, OpenRouter, etc.)
- Custom model selection — Allow users to choose which model to use (e.g., `gpt-4o`, `claude-3-5-sonnet`, `nomic-embed-text`, `qwen2.5-coder-7b`, etc.)
Use Cases
- Offline/local use: Connect to local Ollama instances for zero-cost experimentation
- Cost optimization: Route to cheaper or more specialized models via gateway services
- Enterprise: Connect to internal LLM infrastructure behind a custom endpoint
- Diverse model support: Use the best model for each task (e.g., embedding models for retrieval, coding models for code review, frontier models for reasoning)
Suggested Implementation
Config-based approach in `paseo.config.ts` or environment variables:
```typescript // Option 1: Custom endpoint PASEO_LLM_BASE_URL=https://api.openai.com/v1 PASEO_LLM_API_KEY=sk-... PASEO_LLM_MODEL=gpt-4o
// Option 2: Ollama local PASEO_LLM_BASE_URL=http://localhost:11434/v1 PASEO_LLM_API_KEY=ollama // dummy key for Ollama PASEO_LLM_MODEL=qwen2.5-coder-7b ```
Alternatively, support a `providers` map in config for multi-provider routing.
Priority
Medium — this is a common requirement for any agent framework that aims to be provider-agnostic.
Happy to contribute a PR if this is aligned with the project direction.
You can use cc switch to manage them or proxy
would really like this feature!
This is implemented in the current product.
PR #290 (merge commit) added provider profiles backed by config.json: a profile can extend a built-in agent provider, supply endpoint and credential environment variables, and define the selectable model IDs shown by Paseo. That shipped in v0.1.55.
For Codex specifically, PR #915 (merge commit) wires OPENAI_BASE_URL, OPENAI_API_KEY, and configured model IDs into Codex's OpenAI-compatible provider routing. That shipped in v0.1.75.
The current custom provider configuration guide includes examples for custom Anthropic-compatible backends, OpenAI-compatible Codex endpoints such as OpenRouter, LiteLLM, vLLM, and llama.cpp, multiple provider profiles, custom model lists, and generic ACP agents. Closing this as implemented.
For using your own OpenAI-compatible endpoint, merged PR #9160 adds another option through fx. Install fx on the host, configure your endpoint and models in fx, then add fx from Paseo's provider catalog when your app and host include this change.