Adding Models¶
In this tutorial, you'll explore model catalogs, add models from both Ollama and OpenRouter, and use them in an agent.
Time: ~10 minutes
Prerequisites: Getting Started complete. Verify the daemon is running:
If this errors with "Cannot reach registry", the daemon isn't running.
Two Model Sources¶
VlinderCLI supports two model catalogs:
| Catalog | Runs | Cost | Best for |
|---|---|---|---|
| Ollama | Locally on your machine | Free | Development, privacy, offline work |
| OpenRouter | Cloud API | Pay per token | Larger models, production quality |
Step 1: See What You Have¶
Step 2: Browse Available Models¶
Ollama¶
See what's available locally through Ollama:
Filter by name:
OpenRouter¶
Browse cloud models via OpenRouter:
OpenRouter requires an API key:
Step 3: Add an Ollama Model¶
Pull a model through Ollama first, then register it with Vlinder:
The --catalog ollama flag is optional — Ollama is the default catalog.
Verify it's registered:
Step 4: Add an OpenRouter Model¶
With your API key configured, add a cloud model:
This registers the model without downloading anything — inference happens via the OpenRouter API.
Step 5: Use a Model in Your Agent¶
Open your agent's agent.toml and add the new model to the requirements:
The key (left side) is the alias your agent code uses. The value (right side) is the model's registry name. For simple cases where the alias matches the name, you can use the array form:
Step 6: Remove a Model¶
This deregisters the model from Vlinder. It doesn't delete the Ollama model from disk — you can re-add it anytime.
What You Learned¶
- VlinderCLI has two model catalogs: Ollama (local) and OpenRouter (cloud)
- How to browse available models with
vlinder model available - How to add and remove models with
vlinder model addandvlinder model remove - How to reference models in
agent.tomlby registry name
Next Steps¶
- Your First Agent — scaffold and run your own agent
- Your First Fleet — compose multiple agents with delegation
- Manage Models — embedding models and advanced configuration
- model.toml reference — full manifest schema