Overview
ntrp supports any OpenAI-compatible API endpoint. Register custom models via~/.ntrp/models.json or the /add-model skill.
models.json
Create~/.ntrp/models.json with an array of model definitions:
Fields
| Field | Required | Description |
|---|---|---|
id | Yes | Model identifier (used in config) |
provider | Yes | Must be "custom" |
api_base | Yes | Base URL of the OpenAI-compatible API |
api_key_env | No | Env var name containing the API key |
max_output_tokens | Yes | Maximum output tokens |
max_context_tokens | Yes | Maximum context window |
Using custom models
After adding tomodels.json, set the model in your environment or settings:
/settings.
Providers
OpenRouter
Ollama
api_key_env needed for local Ollama.
vLLM
Interactive setup
Use the/add-model skill in chat for guided model registration: