Available Models¶
The model field in an agent's frontmatter is written as <provider>/<model-id>, where the provider prefix is one of anthropic, mistral, openai, or ollama.
Example:
The tables below list the models Knosh can use. Only models with tool-use support are shown — models intended solely for embeddings, moderation, or audio are excluded, as Knosh relies on tool calls to do its work.
Anthropic¶
Requires anthropicApiKey in knosh.json, or the ANTHROPIC_API_KEY environment variable.
| Model ID | Frontmatter value | Context |
|---|---|---|
| Claude Haiku 4.5 | anthropic/claude-haiku-4-5 |
200K |
| Claude Sonnet 4 | anthropic/claude-sonnet-4-0 |
200K |
| Claude Sonnet 4.5 | anthropic/claude-sonnet-4-5 |
200K |
| Claude Sonnet 4.6 | anthropic/claude-sonnet-4-6 |
1M |
| Claude Opus 4 | anthropic/claude-opus-4-0 |
200K |
| Claude Opus 4.1 | anthropic/claude-opus-4-1 |
200K |
| Claude Opus 4.5 | anthropic/claude-opus-4-5 |
200K |
| Claude Opus 4.6 | anthropic/claude-opus-4-6 |
200K |
| Claude Opus 4.7 | anthropic/claude-opus-4-7 |
1M |
Mistral¶
Requires mistralApiKey in knosh.json, or the MISTRAL_API_KEY environment variable.
| Model ID | Frontmatter value | Context |
|---|---|---|
| Mistral Small (latest) | mistral/mistral-small-latest |
32K |
| Mistral Medium 3 (latest) | mistral/mistral-medium-latest |
128K |
| Mistral Large 2.1 (latest) | mistral/mistral-large-latest |
128K |
| Magistral Medium 1.2 (latest) | mistral/magistral-medium-latest |
128K |
| Codestral (latest) | mistral/codestral-latest |
256K |
| Devstral Medium (latest) | mistral/devstral-medium-latest |
128K |
OpenAI¶
Requires openaiApiKey in knosh.json, or the OPENAI_API_KEY environment variable.
| Model ID | Frontmatter value | Context |
|---|---|---|
| GPT-4o | openai/gpt-4o |
128K |
| GPT-4o mini | openai/gpt-4o-mini |
128K |
| GPT-4.1 | openai/gpt-4.1 |
1M |
| GPT-4.1 mini | openai/gpt-4.1-mini |
1M |
| GPT-4.1 nano | openai/gpt-4.1-nano |
1M |
| o1 | openai/o1 |
200K |
| o3 | openai/o3 |
200K |
| o3-mini | openai/o3-mini |
200K |
| o4-mini | openai/o4-mini |
200K |
| GPT-5 | openai/gpt-5 |
400K |
| GPT-5 mini | openai/gpt-5-mini |
400K |
| GPT-5 nano | openai/gpt-5-nano |
400K |
| GPT-5 Codex | openai/gpt-5-codex |
400K |
| GPT-5 Pro | openai/gpt-5-pro |
400K |
| GPT-5.1 | openai/gpt-5.1 |
400K |
| GPT-5.1 Codex | openai/gpt-5.1-codex |
400K |
| GPT-5.1 Codex Max | openai/gpt-5.1-codex-max |
400K |
| GPT-5.2 | openai/gpt-5.2 |
400K |
| GPT-5.2 Pro | openai/gpt-5.2-pro |
400K |
| GPT-5.2 Codex | openai/gpt-5.2-codex |
400K |
| GPT-5.3 Codex | openai/gpt-5.3-codex |
400K |
| GPT-5.4 | openai/gpt-5.4 |
1M |
| GPT-5.4 mini | openai/gpt-5.4-mini |
400K |
| GPT-5.4 nano | openai/gpt-5.4-nano |
400K |
| GPT-5.4 Pro | openai/gpt-5.4-pro |
1M |
| GPT-5.5 | openai/gpt-5.5 |
1M |
| GPT-5.5 Pro | openai/gpt-5.5-pro |
1M |
Ollama¶
Ollama lets you run open-weight models locally (or on any reachable host). No API key is required, but you must set ollamaURL in knosh.json to point at your Ollama server.
Use localhost when Ollama is running on the same machine as Knosh. For a remote server, supply the appropriate base URL, for example http://192.168.1.10:11434 or https://ollama.example.com.
The model ID is whatever tag you have pulled in Ollama (e.g. llama3.2, qwen2.5-coder:14b). Write it as:
Because Ollama models are not in Koog's built-in registry, Knosh constructs a minimal model descriptor for them at runtime with tool support enabled. Any model that supports function/tool calling in Ollama should work.