Connect a model
ICAP has no model of its own. It uses a model from a provider that you choose. The procedure on a computer is different from the procedure on a phone or tablet.
On a computer
Section titled “On a computer”The agent on a computer is Pi. Pi is in the plugin. You do not install it.
Log in to a provider
Section titled “Log in to a provider”- Open Settings → ICAP Learning Agent.
- In Model providers, select Log in….
- Select the provider.
- Do one of these:
- Select Account to use a subscription that you have, for example Claude Pro or ChatGPT.
- Type an API key.
- In Model, select the model that the agent uses.
Pi keeps the credential in ~/.pi/agent/auth.json. The Pi command line uses the same file. ICAP does not keep a copy.
Use a model that Pi does not list
Section titled “Use a model that Pi does not list”Use a custom endpoint for Ollama, LM Studio, vLLM, a proxy, or another OpenAI-compatible API.
- In Model providers, select Custom endpoint….
- Type a name, the base URL, the API key and the model IDs.
- Select Save.
Pi keeps the endpoint in ~/.pi/agent/models.json.
On a phone or tablet
Section titled “On a phone or tablet”Obsidian on a phone does not have Node, and Pi needs Node. On a phone, ICAP uses its own agent with the same model libraries.
Add an API key
Section titled “Add an API key”- Open Settings → ICAP Learning Agent.
- In API keys, find your provider. To get a key, select Get a key.
- Type the key.
- In Model, select the model that the agent uses.
Keys are in Obsidian’s keychain on that device. They are not in the vault, and they do not sync. Add a key on each device.
Providers on a phone: Anthropic, OpenAI, Google Gemini, OpenRouter, DeepSeek, Mistral, Groq and xAI.
Add an endpoint
Section titled “Add an endpoint”- In Custom endpoints, find Add endpoint, then select Add….
- Type a name, the base URL and the model IDs. If the server needs a key, turn on Needs an API key and type the key.
- Select Save.
When you save, ICAP checks if the server lets the app stream the reply. If it does not, the reply comes in one piece. You then see “waiting for the complete reply…”.
What a phone cannot do
Section titled “What a phone cannot do”- Log in with a subscription, or use Bedrock or Vertex.
- Use your Pi setup: skills, extensions, MCP servers and
/compact. - Read folders outside the vault.
The model on a phone is a different setting from the model on a computer.
Next: Your first lesson.